/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
p {
  font-size: 1rem; /* 16px */
  margin-bottom: 1em;
  line-height: 1.5;
}

li {
  font-size: 1rem; /* Slightly smaller than paragraphs */
  line-height: 1rem;
  line-height: 1.5;
}
/* Bruna Font Declaration */
@font-face {
  font-family: "Bruna";
  src: url("./fonts/BrunaRegular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bruna";
  src: url("./fonts/BrunaBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bruna";
  src: url("./fonts/BrunaLight.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #001a33;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  font-family: "Bruna", sans-serif;
}

.rtl {
  font-family: "Cairo", sans-serif;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.hero {
  height: auto;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form Section */
.form-section {
  background-color: #00f500; /* Updated green color */
  padding: 50px 0;
  margin-top: -0.5em;
}

.form-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
}

.form-container {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  width: 55%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Enhanced outer box shadow */
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: rgb(1 5 92) 5px 5px, rgb(1 5 92) 10px 10px, rgb(1 5 92) 15px 15px;
  margin-top: 9em;
}

.form-container h2 {
  color: #01055c;
  margin-bottom: 25px;
  font-size: 2.5rem;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
}

/* Form Group Layout */
.form-group {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #01055c;
  width: 30%;
  padding-right: 10px;
}

.form-group input,
.form-group select {
  width: 70%;
  padding: 12px 15px;
  border: 1px solid #01055c;
  border-radius: 30px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
  height: 3.5em;
}

.form-group input::placeholder,
.form-group select::placeholder {
  font-weight: 300; /* Light font for placeholders */
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #00f500;
}

.required {
  color: #f44336;
}

/* Phone input with verify button */
.phone-input-container {
  display: flex;
  width: 70%;
  position: relative;
}

.phone-input-container input {
  width: 100%;
  padding-right: 90px; /* Make room for the verify button */
}

.verify-btn {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #01055c;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 5px 30px;
  height: 100%;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.verify-btn:hover {
  background-color: #000c3d;
}

/* Gender Toggle */
.gender-toggle-group {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.gender-toggle-container {
  width: 70%;
  display: flex;
  justify-content: flex-start;
}

.rtl .gender-toggle-container {
  margin-right: 0;
}

.gender-toggle {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
}

.gender-option {
  z-index: 2;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 25px;
  font-weight: 500;
  transition: color 0.3s;
  gap: 5px;
}

.gender-option.female {
  color: #9c27b0;
}

.gender-option.male {
  color: #2196f3;
}

.toggle-slider {
  position: absolute;
  left: 5px;
  top: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background-color: #fff;
  border-radius: 25px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.gender-option.active {
  color: #fff;
  font-weight: 600;
  background: #01055c;
  z-index: 3;
}

.gender-toggle .gender-option.male.active ~ .toggle-slider {
  transform: translateX(calc(100% + 5px));
}

/* Checkbox Group */
.checkbox-group {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9b9b9b;
  justify-content: flex-start; /* Ensure it aligns to the left */
}

.checkbox-container {
  display: flex;
  width: 100%;
  gap: 10px;
  justify-content: flex-start; /* Ensure left alignment */
}

.checkbox-container input[type="checkbox"] {
  width: auto;
  height: 18px;
  margin-right: 0;
  margin-left: 10px;
  margin-top: 4px;
}

.checkbox-container label {
  font-size: 0.85rem;
  margin-bottom: 0;
  width: auto;
  flex: 1;
  color: #9b9b9b;
  font-weight: 400; /* Remove bold styling */
}

.terms-link,
.privacy-link {
  color: #01055c; /* Change to blue color */
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  /* font-weight: normal; Ensure links are not bold */
}

/* Submit Button */
.submit-btn {
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  background: white;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Add these new CSS classes for phone and email validation */
.input-error {
  border-color: #f44336 !important;
}

.error-message {
  color: #f44336;
  font-size: 0.8rem;
  margin-top: 5px;
  width: 100%;
  display: block; /* Always display error messages */
}

/* For LTR (English) */
.error-message.ltr {
  text-align: left;
  margin-left: 30%;
}

/* For RTL (Arabic) */
.error-message.rtl {
  text-align: right;
  margin-right: 30%;
}

/* Form Styles */
.submit-btn {
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  background: white;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.form-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #9b9b9b;
  margin-top: 15px;
}

/* Promo Content */
.promo-content {
  width: 38%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.promo-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Footer */
footer {
  background-color: #01f401;
  color: #666;
  padding: 3px 0;
  font-size: 0.8rem;
  margin-top: -5px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #000;
}

.copyright,
.company-info,
.privacy-policy {
  margin: 5px 0;
  font-size: 0.8rem;
}

.privacy-policy a {
  color: #000;
  text-decoration: none;
}
.footer-ar-img {
  width: 40%;
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  max-height: fit-content;
  margin: 3rem auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalOpen 0.4s;
}

.success-content {
  text-align: center;
  max-width: 500px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1001;
}
.close-modal-ar {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1001;
}

.close-modal:hover {
  color: #000;
}

.modal h2 {
  color: #01055c;
  margin-bottom: 20px;
  font-weight: 700;
}

.modal-body {
  margin-bottom: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #01055c;
  font-weight: 600;
}

.modal-body p {
  margin-bottom: 10px;
}

.modal-btn {
  padding: 10px 25px;
  background-color: #00f500;
  color: #01055c;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 15px;
  display: inline-block;
  font-family: inherit;
}

.modal-btn:hover {
  background-color: #00c853;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #00f500;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
}

/* Overlay and Popup Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup {
  background: url("./access-granted.svg");
  padding: 20px;
  border-radius: 50px;
  text-align: center;
  width: 450px;
  max-width: 90%;
  position: relative;
  font-family: inherit;
}

.popup h2 {
  font-size: 20px;
  font-weight: bold;
  color: #01055c;
  margin-bottom: 10px;
}

.overlay .popup .close-btn-access {
  position: absolute;
  top: 70px; /* Adjust to align properly */
  right: 18px;
  font-size: 18px;
  cursor: pointer;
  background-color: #01055c;
  color: white;
  width: 25px; /* Set width */
  height: 25px; /* Set height */
  border-radius: 50%; /* Makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none; /* Removes default border */
}
.overlay .popup-ar .close-btn-access {
  position: absolute;
  top: 70px; /* Adjust to align properly */
  left: 18px;
  font-size: 18px;
  cursor: pointer;
  background-color: #01055c;
  color: white;
  width: 25px; /* Set width */
  height: 25px; /* Set height */
  border-radius: 50%; /* Makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none; /* Removes default border */
}

.highlight {
  background: #00f500;
  font-weight: bold;
  padding: 5px;
  display: inline-block;
  width: 100%;
  border-radius: 5px;
  font-size: 12px !important;
}

.popup-footer {
  margin-top: 92px;
  margin-bottom: 0;
  color: #01055c;
  font-weight: bold;
}

/* Heart Animation */
.heart-container {
  margin: 20px auto;
  text-align: center;
}

.heart-animation {
  display: inline-block;
  font-size: 40px;
  color: #cb266e; /* Pink heart color */
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.heart {
  color: #cb266e; /* Pink heart color */
  font-size: 18px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 35px;
  font-size: 25px;
  cursor: pointer;
}

.absolute-text {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #01055c;
  font-size: 26px;
  background-color: #00f500;
  padding: 5px 10px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.absolute-text:hover {
  background-color: #01055c;
  color: #01f401;
}

.bluebg {
  margin-top: -11rem;
}

.bluebg img {
  max-width: 100%;
  min-height: 200px;
}

/* Verification Form */
.verification-form {
  margin: 20px 0;
  text-align: center;
}

.verification-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #01055c;
  border-radius: 30px;
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 2px;
  font-family: inherit;
}

#recaptcha-container {
  margin: 15px auto;
  display: flex;
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    height: 60dvh;
  }

  .form-section .container {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .form-container,
  .promo-content {
    margin-top: 5rem;
    width: 100%;
  }
  .footer-ar-img {
    width: 50%;
  }
  .form-container {
    margin-top: 0;
    width: 100%;
  }
  button.submit-btn img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .form-group label,
  .form-group input,
  .form-group select,
  .gender-toggle-container {
    width: 100%;
    margin-left: 0;
  }
  .footer-ar-img {
    width: 100%;
  }

  .rtl .gender-toggle-container {
    margin-right: 0;
  }

  .form-group {
    margin-bottom: 20px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 40vh;
  }
  .absolute-text {
    font-size: 1em;
  }
  .form-container,
  .promo-content {
    margin-top: 5em;
    width: 100%;
  }
  .phone-input-container {
    width: 100%;
  }
  .form-container {
    margin-top: 0;
    width: 100%;
  }
  button.submit-btn img {
    max-width: 200px;
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .overlay .popup {
    background: url("./access-granted.svg") no-repeat center center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    height: 200px;
    position: relative;
    font-family: inherit;
    color: white;
  }
  .overlay .popup h1 {
    margin-top: 30px;
    font-size: 16px;
    font-weight: bolder;
    color: #01055c;
    margin-bottom: 0;
  }
  .overlay .popup h5 {
    font-size: 12px;
    font-weight: bold;
    color: #01055c;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .overlay .popup .popup-footer {
    margin-top: 48px;
    margin-bottom: 0;
    color: #01055c;
    font-weight: bold;
    font-size: 12px;
  }
  .overlay .popup .close-btn-access {
    display: none;
  }
  
  .overlay .popup-ar {
    background: url("./access-granted-ar.svg") no-repeat center center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    height: 200px;
    position: relative;
    font-family: inherit;
    color: white;
  }
  .overlay .popup-ar h1 {
    margin-top: 113px;
    font-size: 16px;
    font-weight: bolder;
    color: #01055c;
    margin-bottom: 10px;
  }
  .overlay .popup-ar h5 {
    font-size: 12px;
    font-weight: bold;
    color: #01055c;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .overlay .popup-ar .popup-footer {
    margin-top: 48px;
    margin-bottom: 0;
    color: #01055c;
    font-weight: bold;
    font-size: 12px;
  }
  .overlay .popup-ar .close-btn-access {
  display: none;
  }
}
.bgvector {
  background: url(./pattern.png);
  margin-top: -5.1em;
}
.modal-body h2 {
  margin-top: 20px;
  margin-bottom: 0px;
}

#nationality {
  padding: "5px";
  appearance: none;
  direction: ltr;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2301055c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 24px;
  padding-right: 40px;
  cursor: pointer;
}

#dob {
  background-color: #fff;
  /* width: 100vh; */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Enhanced Success Modal Styles */
.success-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: block;
}

.success-content {
  text-align: center;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 0;
}

.success-content h2 {
  color: #01055c;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.success-banner {
  background-color: #00f500;
  margin: 20px -30px 0;
  padding: 15px;
  position: relative;
}

.success-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.1;
  z-index: 0;
}

.success-banner p {
  color: #01055c;
  font-weight: bold;
  margin: 0;
  position: relative;
  z-index: 1;
}

.popup-footer {
  font-size: 1.2rem;
  color: #01055c;
}

/* Enhanced Heart Animation */
.heart-container {
  margin: 20px auto;
  text-align: center;
}

.heart-animation {
  display: inline-block;
  font-size: 40px;
  color: #ff1493; /* Brighter pink heart color */
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.3);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.3);
  }
  60% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.heart {
  color: #ff1493; /* Matching heart color */
  font-size: 18px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/* Phone Input */
.phone-input-container input {
  width: 100%;
  padding-right: 90px;
}

/* Popup Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup {
  background: url("./access-granted.svg") no-repeat center center;
  background-size: cover;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 550px;
  min-height: 375px;
  position: relative;
  color: white;
}
.popup-ar {
  background: url("./access-granted-ar.svg") no-repeat center center;
  background-size: cover;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 550px;
  min-height: 375px;
  position: relative;
  color: white;
}

.popup h1 {
  margin-top: 85px;
  font-size: 24px;
  font-weight: bold;
  color: #01055c;
  margin-bottom: 10px;
}
.popup-ar h1{
  margin-top: 85px;
  font-size: 24px;
  font-weight: bold;
  color: #01055c;
  margin-bottom: 10px;
}

.popup h5 {
  font-size: 18px;
  font-weight: bold;
  color: #01055c;
}
.popup-ar h5 {
  font-size: 18px;
  font-weight: bold;
  color: #01055c;
}

.highlight {
  background: #00f500;
  font-weight: bold;
  padding: 10px;
  display: inline-block;
  width: 100%;
  border-radius: 5px;
  font-size: 14px !important;
  color: #01055c !important;
}

.popup-footer {
  font-size: 20px;
  color: #01055c;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .form-container,
  .promo-content {
    width: 100%;
  }
  .popup {
    width: 95%;
    min-height: auto;
  }
}

/* Add these styles to fix RTL issues for Arabic version */

/* Fix input direction for Arabic */
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  direction: rtl;
  text-align: right;
}

/* Fix placeholder direction for Arabic */
html[lang="ar"] input::placeholder,
html[lang="ar"] textarea::placeholder {
  direction: rtl;
  text-align: right;
}

/* Fix select dropdown icon position for Arabic */
html[lang="ar"] #nationality {
  background-position: left 15px center;
  padding-right: 15px;
  padding-left: 40px;
}

/* Phone input container modifications */
html[lang="ar"] .phone-input-container {
  direction: ltr; /* Keep LTR for phone numbers */
  display: flex;
  flex-direction: row-reverse; /* Reverse the order for Arabic */
}

html[lang="ar"] .phone-input-container input {
  direction: ltr; /* Keep LTR for phone numbers */
  text-align: left;
  padding-left: 8em; /* Make room for verify button on left */
  padding-right: 15px;
}

/* Fix verify button position in Arabic */
html[lang="ar"] .verify-btn {
  right: auto;
  left: 0;
}

/* Fix checkbox alignment in Arabic */
html[lang="ar"] .checkbox-container input[type="checkbox"] {
  margin-right: 0;
  margin-left: 10px;
  margin-top: 4px;

}

/* Email input specific styles */
.email-container {
  width: 70%;
}

.email-error {
  color: #f44336;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
  width: 100%;
}
.phone-error {
  color: #f44336;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
  width: 100%;
}
/* For LTR (English) */
.error-message.ltr {
  text-align: left;
  margin-left: 30%;
}

/* For RTL (Arabic) */
.error-message.rtl {
  text-align: right;
  margin-right: 30%;
}

@media (max-width: 768px) {
  .email-container {
    width: 100%;
  }
}

