/* Prevent body scroll when modal is open */
body.eiModal_open {
  overflow: hidden;
  height: 100vh;
}

/* Overlay */
.eiModal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

/* Hide modal when inactive */
.eiModal_overlay:not(.active) {
  display: none;
}

/* Modal Container */
.eiModal_container {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  font-family: 'Roboto', sans-serif;
}

/* Close Button */
.eiModal_close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  color: #111;
  appearance: none;
  -webkit-appearance: none;
}

/* Form Side */
.eiModal_form-side {
  width: 60%;
  padding: 53px;
  overflow-y: auto;
  max-height: 85vh;
}

.eiModal_form-side h2 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 30px;
}

.eiModal_form-side p {
  font-size: 16px;
  line-height: 24px;
}

.eiModal_heading {
    font-family: 'PT Serif', serif;
    font-weight: normal;
}

.eiModal_subheading {
  margin-bottom: 3.5rem;
}

/* Form Styling */
.error__list__container {
    position: absolute;
    left: -10000%;
}
.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
}

.requiredIndicator {
    color: #FF0000;
}

.form-group label {
  display: flex;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group .radio {
  gap: 4px;
}

.form-group input:not([type="radio"]) {
  height: 37px;
  width: 100%;
  padding: 14px;
  border: 1px solid #dcdcdc;
  font-size: 14px;
  box-sizing: border-box;
  border-radius: 2px;
}

.radio-group {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    border-width: 0;
    padding-block: 0;
    padding-inline: 0;
}

.radio-group legend {
    margin-bottom: 1rem;
}

.form-group input[type="radio"] {
    width: 18px;
    height: 18px;
}

.disclaimer-container {
  margin-top: 3rem;
}

.disclaimer {
  font-size: 12px !important;
  margin-bottom: 1.5rem;
}

.input__error {
    display: none;
}

.error__message {
    color: #FF0000;
    font-size: 14px;
    margin-top: .5rem;
}

.validation__input.hasError {
    border: 1px solid #FF0000;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  height: 54px;
  padding: 16px;
  border: none;
  border-radius: 2px;
  background: #0968D9;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.submit-btn:hover {
  opacity: 0.9;
}

#eiModal_form .lds-ring {
    display: none;
    position: relative;
    bottom: 23px;
    left: -100px;
}
#eiModal_form .lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    top: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #ffffff transparent transparent transparent;
}
#eiModal_form .lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
#eiModal_form .lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
#eiModal_form .lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Image Side */
.eiModal_image-side {
  width: 40%;
  display: flex;
}

.eiModal_image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {

  .eiModal_overlay {
    padding: 0;
  }

  .eiModal_container {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    display: block;
  }

  /* Form becomes full screen */
  .eiModal_form-side {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding: 70px 24px 40px;
    overflow-y: auto;
  }

  /* Hide image completely */
  .eiModal_image-side {
    display: none;
  }

  .eiModal_close {
    top: 20px;
    right: 20px;
    font-size: 36px;
  }

  /* Stack inputs */
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

