/* ==========================================================================
   HERO SECTION — scoped styles, built entirely on root.css tokens
   Reference frame size: 1440 x 658
   ========================================================================== */

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 658px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  font-family: var(--font-secondary);
  color: var(--text-main);
  background: var(--body-bg);
}

/* ---------- Single background image (globe + glow + line already baked in) ---------- */
/* Fixed: image now always fills the section edge-to-edge at every viewport
   width, keeps the globe anchored to the right, and never squashes/crops
   awkwardly on resize. */

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  will-change: background-position;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* subtle darken on the left so text always stays readable,
     regardless of screen width / how much of the image is visible */
  background: linear-gradient(
    90deg,
    rgba(4, 12, 32, 0.72) 0%,
    rgba(4, 12, 32, 0.45) 38%,
    rgba(4, 12, 32, 0.12) 62%,
    rgba(4, 12, 32, 0) 78%
  );
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ---------- Content column ---------- */

.hero-content {
  max-width: 640px;
  animation: heroFadeUp 0.8s var(--transition-spring) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfe4ff;
  background: linear-gradient(
    90deg,
    rgba(12, 124, 252, 0.18) 0%,
    rgba(62, 167, 251, 0.08) 100%
  );
  border: 1px solid rgba(62, 167, 251, 0.35);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 20px;
  box-shadow: 0 4px 18px -6px rgba(12, 124, 252, 0.35);
  animation: heroFadeUp 0.6s var(--transition-spring) both;
}

.hero-eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ea7fb;
  box-shadow: 0 0 0 0 rgba(62, 167, 251, 0.55);
  animation: heroEyebrowPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes heroEyebrowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(62, 167, 251, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(62, 167, 251, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(62, 167, 251, 0);     }
}

.hero-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.8vw + 0.6rem, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-white);
  margin: 0 0 14px;
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.05s;
}

.hero-heading-line1 {
  display: block;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  font-style: normal;
}

.hero-heading-line1 i {
  font-style: normal;
}

.hero-heading-line2 {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, #e6f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 20px rgba(12, 124, 252, 0.25);
}

.text-gradient {
  background: linear-gradient(90deg, #3ea7fb 0%, #6dc0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 700;
}

.text-gradient1 {
  background: linear-gradient(90deg, #3ea7fb 0%, #0c7cfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading-underline {
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3ea7fb 0%, #0c7cfc 100%);
  margin: 0 0 22px;
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.08s;
  box-shadow: 0 0 20px rgba(62, 167, 251, 0.55);
}

.hero-description {
  font-size: clamp(0.96rem, 0.4vw + 0.88rem, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0 0 22px;
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.1s;
}

/* ---------- Service pills row ---------- */

.hero-service-pills {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.13s;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.hero-pill i {
  font-size: 0.78rem;
  color: #3ea7fb;
  transition: color var(--transition-normal), transform var(--transition-normal);
}

.hero-pill:hover {
  transform: translateY(-2px);
  background: rgba(12, 124, 252, 0.18);
  border-color: rgba(62, 167, 251, 0.55);
  box-shadow: 0 8px 20px -8px rgba(12, 124, 252, 0.5);
}

.hero-pill:hover i {
  color: #6dc0ff;
  transform: scale(1.15);
}

/* Shown only on tablet/phone (≤1024px) */
.hero-pill--mobile-only {
  display: none;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 38px;
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.15s;
}

.feature-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding-left: 18px;
  transition: transform var(--transition-normal);
}

.feature-item:not(:first-child) {
  border-left: 1px solid var(--border-glass);
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    filter var(--transition-normal);
}

.feature-icon i {
  font-size: 0.92rem;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.12);
}

.feature-text {
  min-width: 0;
}

.feature-text h4 {
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
  line-height: 1.35;
}

.feature-underline {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  margin: 8px 0 10px;
}

.feature-text p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.2s;
}

/* ---------- Stats row ---------- */

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 22px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.25s;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 22px;
  min-width: 0;
  flex: 1;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 22px;
}

.hero-stat-num {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 1.2vw + 0.8rem, 1.7rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff 0%, #6dc0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-plus {
  color: #3ea7fb;
  -webkit-text-fill-color: #3ea7fb;
  margin-left: 1px;
}

.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- Trust line ---------- */

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  animation: heroFadeUp 0.7s var(--transition-spring) both;
  animation-delay: 0.3s;
}

.hero-trust i {
  color: #3ea7fb;
  font-size: 0.85rem;
}

.hero-trust b {
  color: #ffffff;
  font-weight: 700;
}

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal);
}

.btn i {
  font-size: 0.85rem;
  transition: transform var(--transition-normal);
}

.btn-primary {
  background: #014de3;
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
  transition:
    background var(--transition-normal),
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.btn-primary:hover {
  background: linear-gradient(100deg, #014de3 0%, var(--secondary) 100%);
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-glow),
    0 14px 28px -10px rgba(1, 77, 227, 0.55);
}

.btn-primary:hover i {
  transform: translateX(3px);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1.5px solid #003fb1;
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(70, 174, 253, 0.1);
  border-color: rgba(70, 174, 253, 0.7);
  transform: translateY(-3px);
}

.btn-outline:hover i {
  transform: translateX(3px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

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

/* Premium ultra-light breathing zoom for the globe background */
@keyframes heroBgDrift {
  0% {
    transform: scale(1.04);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1.04);
  }
}

.hero-bg-image {
  animation: heroBgDrift 20s ease-in-out infinite;
  transform-origin: right center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-eyebrow,
  .hero-heading,
  .hero-description,
  .hero-features,
  .hero-actions,
  .hero-bg-image {
    animation: none !important;
  }
}

/* ---------- Floating Apply tab (white card + blue pill, matches reference) ---------- */

.apply-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999999;
  display: flex;
  padding: 8px 6px 8px 8px;
  border: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--navbar-bg);
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  overflow: visible;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.apply-tab:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: var(--shadow-glow), 0 0 25px rgba(12, 124, 252, 0.6), var(--shadow-xl);
}

.apply-tab:active {
  transform: translateY(-50%) translateX(-1px);
}

.apply-tab-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0c7cfc 0%, #1e90ff 50%, #0c7cfc 100%);
  background-size: 200% 200%;
  color: var(--text-white);
  overflow: hidden;
  transition: filter var(--transition-normal), transform var(--transition-normal);
  animation: applyGradientShift 3s ease-in-out infinite;
}

/* Shimmer sweep across the pill */
.apply-tab-pill::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
  transform: rotate(20deg);
  animation: applyShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.apply-tab:hover .apply-tab-pill {
  filter: brightness(1.12);
  transform: scale(1.04);
}

.apply-tab-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.apply-tab-arrow {
  font-size: 0.85rem;
  animation: applyArrowBounce 1.8s infinite ease-in-out;
}

.apply-tab-icon {
  font-size: 0.95rem;
  animation: applyIconWiggle 2.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes applyArrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes applyIconWiggle {
  0%, 60%, 100% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(-14deg);
  }
  80% {
    transform: rotate(12deg);
  }
  90% {
    transform: rotate(-6deg);
  }
}

@keyframes applyGradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes applyShimmer {
  0% {
    left: -75%;
  }
  60%, 100% {
    left: 125%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apply-tab,
  .apply-tab-pill,
  .apply-tab-pill::before,
  .apply-tab-arrow,
  .apply-tab-icon {
    animation: none !important;
  }
}

/* ==========================================================================
   OVERLAY + FORM MODAL
   Desktop: docked to the right side (same side as the Apply tab), compact,
   and height-safe so it never collides with the site header/footer.
   Mobile/Tablet: stays centered (right-dock doesn't work on narrow screens).
   ========================================================================== */

.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(6, 14, 34, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-slow),
    visibility var(--transition-slow);
}

.form-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.form-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 28px;
  padding-left: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition-slow),
    visibility var(--transition-slow);
}

.form-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-panel-inner {
  position: relative;
  width: 100%;
  max-width: 330px; /* compact card width on desktop */
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: var(--navbar-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: 14px 14px 12px;
  transform: translateY(24px) scale(0.97);
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow);
}

.form-panel.is-open .form-panel-inner {
  transform: translateY(0) scale(1);
}

/* Hide scrollbar completely for clean modal appearance */
.form-panel-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.form-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}

.form-close i {
  font-size: 0.75rem;
}

.form-close:hover {
  background: var(--error);
  color: #fff;
  transform: rotate(90deg);
}

.form-panel-inner h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--dark-bg);
  text-align: center;
  margin: 0 0 8px;
  padding-right: 20px;
  transition: opacity var(--transition-fast);
}

.form-panel-inner.is-success h3 {
  display: none;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 7px;
}

.consult-form .btn-block {
  padding: 9px 16px;
  font-size: 0.84rem;
}

.form-field {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.form-field > i:not(.select-arrow) {
  position: absolute;
  left: 10px;
  top: 9px;
  z-index: 2;
  font-size: 0.78rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-field i.select-arrow {
  position: absolute;
  right: 12px;
  left: auto;
  top: 9px;
  z-index: 2;
  font-size: 0.72rem;
  color: #94a3b8;
  pointer-events: none;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 34px;
  padding: 4px 10px 4px 30px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  color: var(--dark-bg);
  background: #fff;
  appearance: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-field select {
  color: #64748b;
  cursor: pointer;
  padding-right: 26px;
  border-radius: 14px;
}
.form-field select:valid {
  color: var(--dark-bg);
}

/* Custom Rounded Dropdown Styling */
.custom-select-wrapper {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  height: 34px;
  padding: 4px 32px 4px 30px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  color: #64748b;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
  position: relative;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.custom-select-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger.is-selected {
  color: var(--dark-bg);
}

.custom-select-trigger:focus,
.custom-select-wrapper.is-open .custom-select-trigger {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 170px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.custom-select-wrapper.is-open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 7px 10px;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  color: var(--dark-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-option:hover,
.custom-option.is-active {
  background: #0c7cfc;
  color: #ffffff;
}

.custom-select-options::-webkit-scrollbar {
  width: 4px;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.form-field-textarea textarea {
  width: 100%;
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  color: var(--dark-bg);
  resize: vertical;
  min-height: 36px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field-textarea textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.form-field:focus-within i {
  color: var(--primary);
}

/* ---------- Validation states ---------- */

.form-error {
  display: none;
  width: 100%;
  font-size: 0.7rem;
  color: var(--error);
  margin-top: 4px;
  padding-left: 2px;
}

.form-field.is-invalid input,
.form-field.is-invalid select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-field.is-invalid i {
  color: var(--error) !important;
}

.form-field.is-invalid .form-error {
  display: block;
}

.form-field.is-valid input,
.form-field.is-valid select {
  border-color: var(--success);
}

.form-field.is-valid i {
  color: var(--success) !important;
}

.form-field.is-invalid .form-field-select::after {
  border-color: var(--error);
}

.form-field.is-valid .form-field-select::after {
  border-color: var(--success);
}

/* Empty required field on submit attempt: show the helper text so the user
   knows what's missing, but keep the icon and border neutral (not red) —
   red is reserved for an actually wrong value, not just an empty field. */
.form-field.is-empty-required .form-error {
  display: block;
}

.form-lock-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.64rem;
  color: var(--text-light);
  margin: 0 0 6px;
  text-align: center;
}

.form-lock-note i {
  font-size: 0.68rem;
  flex-shrink: 0;
}

.form-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #0d9268;
  font-size: 0.66rem;
  font-weight: 500;
  margin-bottom: 7px;
}

.form-privacy-note i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.compliance-badges {
  text-align: center;
}

.badges-label {
  display: block;
  font-size: 0.64rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 0.65rem;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-normal);
}

.badge-item i {
  font-size: 0.95rem;
}

.badge-item span {
  font-family: var(--font-primary);
  font-size: 0.64rem;
  font-weight: 600;
  color: #475569;
}

.badge-item:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   RESPONSIVE
   Rebuilt with more breakpoints so the bg image always frames the globe
   correctly and content never collides with the floating Apply tab.
   ========================================================================== */

/* Large laptops / smaller desktops: keep image framing tight on the globe,
   and slightly shrink the right-docked panel's side padding */
@media (max-width: 1300px) {
  .hero-bg-image {
    background-position: 62% center;
  }
  .form-panel {
    padding: 80px 20px;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    height: auto;
    min-height: 600px;
    padding: 70px 6vw 60px;
  }
  .hero-bg-image {
    background-position: 58% center;
  }
  .hero-pill--mobile-only {
    display: inline-flex;
  }
  .hero-features {
    gap: 14px;
  }
  .apply-tab-pill {
    padding: 16px 8px;
  }

  /* Below this, the right-docked panel starts feeling cramped next to the
     globe art — switch to a centered layout instead. */
  .form-panel {
    justify-content: center;
    align-items: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 24px;
  }
  .form-panel-inner {
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    padding: 64px 6vw 80px;
  }
  .hero-bg-image {
    background-position: 70% center;
  }
  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(4, 12, 32, 0.45) 0%,
      rgba(4, 12, 32, 0.8) 50%,
      rgba(4, 12, 32, 0.94) 100%
    );
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-heading-underline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-service-pills {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
  }
  .hero-stat {
    padding-right: 0;
    flex: 0 1 auto;
    min-width: 130px;
    align-items: center;
    text-align: center;
  }
  .hero-stat + .hero-stat {
    border-left: none;
    padding-left: 0;
  }
  .hero-trust {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }
  .hero-features {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
  }
  .feature-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding: 16px 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
  }
  .feature-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .feature-item:not(:first-child) {
    border-left: none;
  }
  .feature-item:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
  }
  .hero-actions {
    justify-content: center;
  }

  .form-panel {
    align-items: flex-start;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
  }
  .form-panel-inner {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 48px 6vw 110px;
    min-height: auto;
  }
  .hero-bg-image {
    background-position: 78% center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-stats {
    gap: 14px;
  }
  .hero-stat {
    min-width: 45%;
  }
  .hero-pill {
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  .apply-tab {
    top: auto;
    bottom: 22px;
    right: 14px;
    transform: none;
    border-radius: var(--radius-full);
    padding: 6px;
    animation: applyTabAttentionMobile 4.5s ease-in-out infinite;
    animation-delay: 2s;
  }
  .apply-tab:hover {
    transform: translateY(-4px) scale(1.05);
  }
  .apply-tab-pill {
    flex-direction: row;
    padding: 12px 18px;
  }
  .apply-tab-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.85rem;
  }
  .apply-tab-arrow {
    display: none;
  }

  @keyframes applyTabAttentionMobile {
    0%, 82%, 100% {
      transform: translateY(0) scale(1) rotate(0deg);
    }
    85% {
      transform: translateY(-6px) scale(1.06) rotate(0deg);
    }
    87% {
      transform: translateY(-6px) scale(1.06) rotate(-3deg);
    }
    89% {
      transform: translateY(-6px) scale(1.06) rotate(3deg);
    }
    91% {
      transform: translateY(-6px) scale(1.06) rotate(-2deg);
    }
    93% {
      transform: translateY(-6px) scale(1.06) rotate(2deg);
    }
    95% {
      transform: translateY(-3px) scale(1.03) rotate(0deg);
    }
  }

  .form-panel {
    align-items: flex-start;
    padding-top: var(--form-panel-top-gap, 70px);
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }
  .form-panel-inner {
    padding: 18px 16px 14px;
    max-height: calc(100vh - var(--form-panel-top-gap, 70px) - 32px);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 6vw 110px;
  }
  .hero-bg-image {
    background-position: 85% center;
  }
  .hero-heading {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }
}

@media (max-width: 380px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   THANK-YOU / SUCCESS VIEW
   Replaces the native browser alert() with an inline confirmation panel
   inside the same modal card.
   ========================================================================== */

.form-view {
  animation: heroFadeUp 0.4s var(--transition-spring) both;
}

.form-view[hidden] {
  display: none !important;
}

.form-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px 4px;
}

.form-success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.form-success-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-bg);
  margin: 0 0 8px;
}

.form-success-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-light);
  margin: 0 0 20px;
  max-width: 30ch;
}

.form-success-view .btn-block {
  padding: 11px 20px;
  font-size: 0.88rem;
}
