/* ================================================================
   STANDOUT SECTION + MODAL
   All selectors prefixed .standout- or .so- to avoid collisions.
   ================================================================ */

/* -----------------------------------------------------------
   1.  STANDOUT SECTION  (red hero band)
   ----------------------------------------------------------- */
.standout-section {
  position: relative;
  background: #DD1E3F;
  padding: 110px 40px 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.standout-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.standout-heading {
  font-family: 'Roboto Slab', serif;
  font-size: 64px;
  font-weight: 200;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 28px;
  letter-spacing: -0.5px;
}

.standout-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 52px;
  letter-spacing: 0.02em;
}

.standout-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.standout-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 16px 36px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease;
  white-space: nowrap;
}

.standout-btn--outline {
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid #ffffff;
}

.standout-btn--outline:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

/* -----------------------------------------------------------
   2.  MODAL OVERLAY — transparent dim backdrop only
       The dark background lives on .so-modal-body (the card),
       not on the full-screen overlay, so no black side bands.
   ----------------------------------------------------------- */
.so-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0, 0, 0, 0.55);   /* semi-transparent backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;

  /* slide-up from bottom */
  opacity: 0;
  transform: translateY(60px);
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.so-modal-overlay.so-modal--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Close button — positioned relative to the card */
.so-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  z-index: 2;
}

.so-modal-close:hover {
  opacity: 1;
}

/* The actual dark card — dark bg is here, not on the overlay */
.so-modal-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  background: rgba(8, 4, 4, 0.97);
  padding: 56px 48px 48px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

/* LEFT: heading area */
.so-modal-left {
  padding-top: 55px;
}

.so-modal-left h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 48px;
  font-weight: 200;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 20px;
}

.so-modal-left h2 span {
  color: #DD1E3F;
}

.so-modal-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* -----------------------------------------------------------
   3.  FORM STYLES — scoped to .so-form
   ----------------------------------------------------------- */
.so-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.so-form-field {
  margin-bottom: 12px;
}

.so-form-field label {
  /* display: block; */
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0px;
}

/* Override global input/textarea ONLY inside .so-form */
.so-form input[type="text"],
.so-form input[type="email"],
.so-form input[type="tel"],
.so-form textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease;
  height: auto;
  min-height: 44px;
  box-sizing: border-box;
}

.so-form textarea {
  resize: none;
  min-height: 80px;
}

.so-form input[type="text"]:focus,
.so-form input[type="email"]:focus,
.so-form input[type="tel"]:focus,
.so-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.55);
}

.so-form input::placeholder,
.so-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Attach row for roles form */
.so-attach-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
}

.so-attach-row input[type="text"] {
  flex: 1;
  border: none;
  border-radius: 0;
  min-height: unset;
  height: 100%;
}

.so-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  border-left: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.so-attach-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* reCAPTCHA — same scale trick as original */
.so-recaptcha-wrap {
  margin-bottom: 12px;
  transform: scale(0.88);
  transform-origin: left center;
}

/* Form actions — image buttons same as original .img-btn */
.so-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* intl-tel-input overrides inside modal */
.so-form .iti {
  width: 100%;
}

.so-form .iti__flag-container {
  border-right: 1.5px solid rgba(255, 255, 255, 0.15);
}

.so-form .iti__selected-dial-code {
  color: rgba(255, 255, 255, 0.6);
}

.so-form .iti__arrow {
  border-top-color: rgba(255, 255, 255, 0.6);
}

/* -----------------------------------------------------------
   4.  RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 768px) {
  .standout-section {
    padding: 80px 24px 90px;
  }

  .standout-heading {
    font-size: 44px;
  }

  .standout-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .standout-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .so-modal-overlay {
    padding: 20px 16px;
    align-items: center;
    overflow-y: auto;
  }

  .so-modal-body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 24px 32px;
    max-width: 100%;
  }

  .so-recaptcha-wrap {
    transform: scale(0.78);
    transform-origin: left top;
  }

  .so-form-actions {
    flex-direction: row;
    align-items: flex-start;
  }

  .so-modal-left h2 {
    font-size: 34px;

  }
}