/* Custom Variables */
:root {
  --primary-green: #31B889;
  --scfhs-green: #00C08B;
  --neutral-grey: #6D7C7C;
  --neutral-white: #FDFEFF;
  --primary-blue: #578bff;
  --dark-blue: #303d79;
  --text-blue: #22407d;
  --scfhs-blue: #00416B;
  --scfhs-grad: linear-gradient(to right, var(--scfhs-blue) 0%, var(--scfhs-green) 100%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation */
.custom-navbar {
  background: rgba(64, 70, 70, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* padding: 20px 122px; */
  z-index: 1000;
}

.navbar-logo {
  max-height: 41px;
  /* width: 62.09px; */
}

/* Hero Section */
.hero-section {
  height: 866px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-image: url('../images/strategy/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  padding: 266px 0;
  z-index: 2;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 72px;
}

.hero-icon {
  width: 114px;
  height: 110px;
}

.hero-info {
  gap: 21px;
}

.info-card {
  padding: 0;
}

.info-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.info-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.section {
  padding: 107px 0;
}

/* Goals Section */
.goals-section {
  padding: 107px 0;
  background: white;
}

.section-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 64px;
}

.gradient-text {
  background: linear-gradient(90deg, #578bff 0%, #303d79 51.442%, #578bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 200%;
}

.goal-card {
  background-image: url('../images/strategy/card-bg.png'), url('../images/strategy/card-bg-decor.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  padding: 40px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  /* min-height: 400px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.goal-card .card-body {
  position: relative;
  z-index: 2;
  padding: 0;
  flex: unset;
}

.goal-icon {
  width: 100px;
  height: 100px;
  /* margin: 0 auto 32px auto; */
  position: relative;
}

.goal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goal-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.goal-list {
  list-style: none;
  padding: 0;
  color: var(--text-blue);
  font-size: 18px;
  line-height: 1.6;
}

.goal-list li {
  position: relative;
  padding-inline-start: 27px;
  margin-bottom: 16px;
}

.goal-list li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--text-blue);
  font-weight: bold;
}

.goal-list li:last-child {
  margin-bottom: 0;
}

/* Quote Section */
.quote-section {
  background-image: url('../images/strategy/quote-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 107px 0;
  min-height: 650px;
  display: flex;
  align-items: center;
}

.quote-image {
  padding: 0 40px;
}

.quote-content {
  padding: 0 40px;
}

.quote-main-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
}

.quote-subtitle {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.quote-text {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
}

.quote-author {
  margin-top: 2rem;
}

.author-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.author-title {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 0;
}

/* Video Section */
.video-section {
  padding: 107px 0;
  background: white;
}

.video-container {
  max-width: 1287px;
  margin: 0 auto;
}

.ratio {
  max-height: 600px;
}

/* Footer */
.footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-text {
  color: #9ca8a8;
  font-size: 16px;
}

.social-links img {
  height: 16px;
  width: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  /* .custom-navbar {
      padding: 20px 60px;
  } */
  
  .hero-title {
      font-size: 48px;
  }
  
  .section-title {
      font-size: 48px;
  }
  
  .quote-main-title {
      font-size: 48px;
  }
  
  .quote-subtitle {
      font-size: 26px;
  }
  
  .quote-text {
      font-size: 26px;
  }
  
  .author-name {
      font-size: 20px;
  }
  
  .author-title {
      font-size: 16px;
  }
}

@media (max-width: 992px) {
  .hero-content {
      padding: 150px 0;
  }
  
  .hero-title {
      font-size: 40px;
      margin-bottom: 40px;
  }
  
  .hero-info {
      margin-top: 40px;
  }
  
  .section-title {
      font-size: 40px;
  }
  
  .goal-card {
      margin-bottom: 30px;
  }
  
  .quote-main-title {
      font-size: 40px;
  }
  
  .quote-subtitle {
      font-size: 22px;
  }
  
  .quote-text {
      font-size: 22px;
  }
  
  .author-name {
      font-size: 18px;
  }
  
  .author-title {
      font-size: 14px;
  }
  
  .video-placeholder {
      height: 400px;
  }
  
  .play-button {
      width: 120px;
      height: 120px;
  }
}

@media (max-width: 768px) {
  /* .custom-navbar {
      padding: 15px 30px;
  } */
  
  .hero-section {
      height: auto;
      min-height: 100vh;
  }
  
  .hero-content {
      padding: 120px 0 60px 0;
  }
  
  .hero-title {
      font-size: 32px;
      text-align: center;
  }
  
  .hero-icon {
      display: none;
  }
  
  .info-card {
      text-align: center;
      margin-bottom: 30px;
  }
  
  .section-title {
      font-size: 32px;
      text-align: center;
  }
  
  .goal-title {
      font-size: 28px;
  }
  
  
  .quote-content {
      margin-top: 40px;
  }
  
  .quote-main-title {
      font-size: 28px;
  }
  
  .quote-subtitle {
      font-size: 18px;
  }
  
  .quote-text {
      font-size: 16px;
  }
  
  .author-name {
      font-size: 16px;
  }
  
  .author-title {
      font-size: 12px;
  }
  
  .video-placeholder {
      height: 300px;
  }
  
  .play-button {
      width: 80px;
      height: 80px;
  }
  
  .footer .row {
      text-align: center;
  }
  
  .footer .col-md-6:last-child {
      margin-top: 20px;
  }
}

@media (max-width: 576px) {
  /* .custom-navbar {
      padding: 10px 20px;
  } */
  
  .goals-section,
  .quote-section,
  .video-section {
      padding: 60px 0;
  }
  
  .hero-title {
      font-size: 28px;
  }
  
  .section-title {
      font-size: 28px;
  }
  
  .goal-card {
      padding: 40px 20px;
  }
  
  .goal-title {
      font-size: 24px;
  }
  
  .goal-list {
      font-size: 16px;
  }
  
  .quote-main-title {
      font-size: 24px;
  }
  
  .quote-subtitle {
      font-size: 16px;
  }
  
  .quote-text {
      font-size: 14px;
  }
  
  .author-name {
      font-size: 14px;
  }
  
  .author-title {
      font-size: 11px;
  }
}


/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Bootstrap Fixes */
[dir="rtl"] .me-4 {
  margin-left: 1rem;
  margin-right: unset !important;
}

[dir="rtl"] .ms-4 {
  margin-left: unset;
  margin-right: 1rem !important;
}

/* Bootstrap Icons RTL Fix */
[dir="rtl"] .bi {
  font-family: "bootstrap-icons" !important;
  direction: ltr;
  display: inline-block;
}

/* Social Links Styling */
.social-links a {
  transition: color 0.3s ease;
}

.social-links a:hover i {
  color: var(--primary-blue) !important;
}

/* Webform Confirmation Modal Styles */
.webform-confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.webform-confirmation-modal.show {
  opacity: 1;
  visibility: visible;
}

.webform-confirmation-modal [data-drupal-messages] {
  max-width: 700px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  animation: modalSlideIn 0.4s ease-out;
}

.webform-confirmation-modal [role="contentinfo"] {
  background-image: url('../images/strategy/confirm-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.webform-confirmation-modal--title {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: white;
  /* margin-bottom: 24px; */
  /* background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 51.442%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; */
  position: relative;
}

.webform-confirmation-modal--title::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  background-image: url('../images/strategy/confirm.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto 24px auto;
  animation: confirmBounce 0.6s ease-out 0.3s both;
}

.webform-confirmation-modal--content {
  font-size: 20px;
  line-height: 1.6;
  color: white;
  font-weight: 500;
}

/* Close button */
.webform-confirmation-modal::before {
  content: "×";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: var(--text-blue);
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.webform-confirmation-modal::before:hover {
  background: var(--primary-blue);
  color: white;
}

/* Modal animations */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes confirmBounce {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide default status messages styling */
.webform-confirmation-modal .visually-hidden {
  display: none !important;
}

/* Responsive modal design */
@media (max-width: 768px) {
  .webform-confirmation-modal [role="contentinfo"] {
    padding: 40px 30px;
    margin: 20px;
  }
  
  .webform-confirmation-modal--title {
    font-size: 24px;
  }
  
  .webform-confirmation-modal--title::before {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }
  
  .webform-confirmation-modal--content {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .webform-confirmation-modal [role="contentinfo"] {
    padding: 30px 20px;
    margin: 15px;
  }
  
  .webform-confirmation-modal--title {
    font-size: 20px;
  }
  
  .webform-confirmation-modal--content {
    font-size: 14px;
  }
}


/* Contact Section Styling */
.contact-section {
    background: var(--neutral-white);
    padding: 107px 0;
}

.form-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 51.442%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 200%;
}

.form-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-blue);
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Webform Container */
.webform-submission-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 32px;
    background: var(--neutral-white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-image: url('../images/strategy/card-bg.png'), url('../images/strategy/card-bg-decor.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    text-align: start!important
}

.webform-submission-form .col-sm-8.offset-sm-4 {
    text-align: start!important;
}

/* Required field indicator */
.webform-required {
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
    color: var(--neutral-grey);
    position: relative;
    z-index: 2;
}

.webform-required .form-required::before {
    content: "*";
    color: var(--primary-green);
    margin-left: 0.25rem;
}

/* Form elements container */
.webform-element--title-inline {
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

/* Labels */
.webform-element--title-inline label {
    display: block;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text-blue);
    font-size: 18px;
}

.form-required::after {
    content: " *";
    color: red;
}

/* Input fields */
.webform-element--title-inline input[type="text"],
.webform-element--title-inline input[type="email"],
.webform-element--title-inline textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-blue);
}

.webform-element--title-inline input[type="text"]:focus,
.webform-element--title-inline input[type="email"]:focus,
.webform-element--title-inline textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--neutral-white);
    box-shadow: 0 0 0 3px rgba(87, 139, 255, 0.1);
}

/* Textarea specific */
.webform-element--title-inline textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Submit button container */
.form-actions {
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-actions .row {
    margin: 0;
}

/* Submit button */
.webform-button--submit {
    background: var(--scfhs-blue);
    color: var(--neutral-white);
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.webform-button--submit:hover {
    transform: translateY(-2px);
    background: var(--scfhs-grad);
    box-shadow: 0 10px 20px rgba(87, 139, 255, 0.3);
}

.webform-button--submit:active {
    transform: translateY(0);
}

/* Webform Confirmation Styles */
.webform-confirmation {
    text-align: center;
    padding: 64px 40px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease-out;
}

.webform-confirmation__message {
    margin-bottom: 40px;
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-blue);
    font-weight: 500;
    position: relative;
    background-image: url('/{{ base_path ~ directory }}/images/strategy/confirm-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 4px solid var(--primary-green);
    padding: 32px;
    border-radius: 12px 0 0 12px;
}

.webform-confirmation__message::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background-image: url('/{{ base_path ~ directory }}/images/strategy/confirm.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 24px auto;
    animation: checkmarkBounce 0.6s ease-out 0.3s both;
}

@keyframes checkmarkBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.webform-confirmation__back {
    margin-top: 40px;
}

.webform-confirmation__back a {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 51.442%, var(--primary-blue) 100%);
    color: var(--neutral-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 18px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.webform-confirmation__back a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(87, 139, 255, 0.3);
    color: var(--neutral-white);
    text-decoration: none;
}

.webform-confirmation__back a:active {
    transform: translateY(0);
}

/* Animation for form appearance */
.webform-submission-form {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder styling */
.webform-element--title-inline input::placeholder,
.webform-element--title-inline textarea::placeholder {
    color: var(--neutral-grey);
    opacity: 0.7;
}

/* Form validation messages */
.form-item .form-text {
    margin-top: 8px;
    font-size: 14px;
    color: var(--neutral-grey);
}

.form-item .error {
    color: #e74c3c;
}

/* Error states */
.webform-element--title-inline input.error,
.webform-element--title-inline textarea.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

/* Success states */
.webform-element--title-inline input.valid,
.webform-element--title-inline textarea.valid {
    border-color: var(--primary-green);
    background-color: rgba(49, 184, 137, 0.05);
}

/* Loading state for submit button */
.webform-button--submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .form-title {
        font-size: 40px;
    }
    
    .webform-submission-form {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .form-title {
        font-size: 32px;
        text-align: center;
    }
    
    .form-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .webform-submission-form {
        padding: 32px 20px;
        margin: 0 1rem;
    }
    
    .webform-element--title-inline input[type="text"],
    .webform-element--title-inline input[type="email"],
    .webform-element--title-inline textarea {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .webform-element--title-inline label {
        font-size: 16px;
    }
    
    .webform-button--submit {
        padding: 12px 32px;
        font-size: 16px;
    }
    
    .webform-confirmation {
        padding: 40px 20px;
    }
    
    .webform-confirmation__message {
        font-size: 18px;
        padding: 24px;
    }
    
    .webform-confirmation__message::before {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .webform-confirmation__back a {
        padding: 12px 32px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .form-title {
        font-size: 28px;
    }
    
    .form-description {
        font-size: 14px;
    }
    
    .webform-element--title-inline label {
        font-size: 14px;
    }
    
    .webform-element--title-inline input[type="text"],
    .webform-element--title-inline input[type="email"],
    .webform-element--title-inline textarea {
        font-size: 14px;
    }
    
    .webform-button--submit {
        font-size: 14px;
        min-width: 150px;
    }
    
    .webform-confirmation__message {
        font-size: 16px;
    }
}

/* RTL support for Arabic text */
[dir="rtl"] .webform-confirmation__message {
    border-right: none;
    border-left: 4px solid var(--primary-green);
    border-radius: 0 12px 12px 0;
}
