/* ============================================================
   HERO FORM — White card, VYOM brand
   Theme: white bg · #0069ff border/shadow/accents ·
   logo-gradient hairline (orange → teal → blue → purple)
   Drop-in replacement, same class names, zero JS changes.
   ReCAPTCHA: keep default light theme (no data-theme attr).
   ============================================================ */

/* Hero Section with VPS Server Image Background */
.hero-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
}

/* ---------- Panel ---------- */
.hero-form-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 26px 24px 24px;
  border-radius: 18px;
  z-index: 2;

  background-color: #ffffff;
  border: 1px solid rgba(0, 105, 255, 0.18);
  /* box-shadow:
    0 24px 60px -16px rgba(0, 105, 255, 0.28),
    0 6px 16px rgba(0, 105, 255, 0.10),
    0 1px 3px rgba(11, 18, 32, 0.06); */
    box-shadow:
    0 24px 60px -16px rgba(255, 107, 107, 0.30), /* #ff6b6b */
    0 18px 45px -14px rgba(254, 202, 87, 0.25),  /* #feca57 */
    0 12px 35px -12px rgba(72, 219, 251, 0.22),  /* #48dbfb */
    0 8px 25px -10px rgba(255, 159, 243, 0.18),  /* #ff9ff3 */
    0 4px 15px rgba(84, 160, 255, 0.15);         /* #54a0ff */
}

/* signature accent: hairline in the logo's colors across the top */
.hero-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg,
    #ff9500 0%,
    #2dd4a8 32%,
    #0069ff 62%,
    #a855f7 100%);
  pointer-events: none;
  z-index: 3;
}

/* very soft blue glow inside top edge — keeps the card from feeling flat */
.hero-form-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(0, 105, 255, 0.045) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* legacy decor spans — retired */
.hero-form-container .corner-decor,
.hero-form-container .corner-decor-2 {
  display: none;
}

/* ---------- Header ---------- */
.hero-form-header {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  text-align: left;
}

.hero-form-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* the old "rule" span = live status light */
.hero-form-eyebrow-rule {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: heroStatusPulse 2.4s ease-out infinite;
}

@keyframes heroStatusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-form-eyebrow-text {
  font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #0069ff;
  text-transform: uppercase;
}

.hero-form-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0b1220;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.hero-form-title-accent {
  color: #0069ff;
}

.hero-form-subtitle {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.hero-form-subtitle strong {
  color: #0b1220;
  font-weight: 700;
}

/* ---------- Rows & groups ---------- */
.hero-form-body {
  position: relative;
  z-index: 1;
}

.hero-form-body .hero-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.hero-form-body .hero-form-group {
  margin-bottom: 12px;
  position: relative;
}

/* ---------- Fields ---------- */
.hero-form-body .hero-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  min-height: 50px;
  position: relative;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-form-body .hero-field:hover {
  border-color: #cbd5e1;
}

.hero-form-body .hero-field:focus-within {
  border-color: #0069ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 105, 255, 0.14);
}

.hero-form-body .hero-field-icon {
  flex-shrink: 0;
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.hero-form-body .hero-field:focus-within .hero-field-icon {
  color: #0069ff;
}

.hero-form-body .hero-field-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* monospace labels = technical voice */
.hero-form-body .hero-field-label {
  display: block;
  margin: 0;
  font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #64748b;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-form-body .hero-required {
  color: #0069ff;
  font-weight: 700;
}

/* ---------- Inputs ---------- */
.hero-form-body .hero-form-control {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #0b1220;
  line-height: 1.35;
  font-family: inherit;
  min-height: 20px;
}

.hero-form-body .hero-form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-weight: 400;
}

/* ---------- Phone (intl-tel-input) ---------- */
.hero-form-body .hero-field--phone .hero-field-body {
  padding-left: 0;
}

.hero-form-body .hero-field--phone .iti {
  position: static !important;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-form-body .hero-field--phone .iti__tel-input,
.hero-form-body .hero-field--phone input[type="tel"].hero-form-control {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.95rem;
  color: #0b1220;
  font-family: inherit;
  line-height: 1.4;
  min-height: 22px;
  height: auto !important;
  box-shadow: none !important;
  outline: none !important;
}

.hero-form-body .hero-field--phone .hero-field-label {
  padding-left: 0;
}

.hero-form-body .hero-field--phone .iti__country-container {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  bottom: auto;
  height: auto;
  flex: 0 0 auto;
  z-index: 2;
}

.hero-form-body .hero-field--phone .iti__selected-country,
.hero-form-body .hero-field--phone .iti__selected-country-primary {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  height: 100%;
  transition: opacity 0.15s ease;
  box-shadow: none !important;
}

.hero-form-body .hero-field--phone .iti__selected-dial-code {
  font-size: 0.9rem;
  color: #0b1220;
  font-weight: 600;
}

.hero-form-body .hero-field--phone .iti__arrow {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #64748b;
  margin-left: 2px;
}

/* ---------- Service (custom select) ---------- */
.hero-form-body .hero-field--service {
  cursor: pointer;
}

.hero-form-body .hero-field--service .hero-field-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.8rem;
  pointer-events: none;
  transition: all 0.25s ease;
}

.hero-form-body .hero-field--service:focus-within .hero-field-chevron,
.hero-form-body .hero-field--service.hero-select-open .hero-field-chevron {
  color: #0069ff;
}

.hero-form-body .hero-field--service.hero-select-open .hero-field-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.hero-form-body .hero-field--service.hero-select-enhanced select.hero-form-control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-form-body .hero-custom-select__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0b1220;
  line-height: 1.4;
  min-height: 24px;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.hero-form-body .hero-custom-select__value {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-form-body .hero-custom-select__value[data-placeholder="true"] {
  color: #94a3b8;
}

.hero-form-body .hero-custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0, 105, 255, 0.22), 0 4px 12px rgba(11, 18, 32, 0.06);
  padding: 6px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 15;
  list-style: none;
  margin: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.hero-form-body .hero-field--service.hero-select-open .hero-custom-select__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-form-body .hero-custom-select__option {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #0b1220;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-weight: 500;
  user-select: none;
}

.hero-form-body .hero-custom-select__option:hover,
.hero-form-body .hero-custom-select__option.hero-custom-select__option--active {
  background: rgba(0, 105, 255, 0.07);
  color: #0069ff;
}

.hero-form-body .hero-custom-select__option--selected {
  background: rgba(0, 105, 255, 0.12);
  color: #0069ff;
  font-weight: 600;
}

/* ---------- Message ---------- */
.hero-form-body .hero-field--message {
  align-items: flex-start;
  padding-bottom: 32px;
}

.hero-form-body .hero-field--message .hero-field-icon {
  padding-top: 12px;
}

.hero-form-body .hero-field--message textarea.hero-form-control {
  resize: none;
  min-height: 60px;
  max-height: 120px;
  line-height: 1.4;
}

.hero-form-body .hero-char-counter {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 500;
  pointer-events: none;
}

.hero-form-body .hero-char-counter strong {
  color: #0069ff;
  font-weight: 700;
}

/* ---------- Error states ---------- */
.hero-form-body .hero-field:has(.hero-form-control.error) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.hero-form-body .hero-field:has(.hero-form-control.error) .hero-field-icon {
  color: #ef4444;
}

.hero-form-body .hero-field--phone:has(.iti__tel-input.error),
.hero-form-body .hero-field--phone:has(input[type="tel"].error) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.hero-form-body .hero-error-message {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  z-index: 6;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-form-body .hero-error-message::before {
  content: '\26A0  ';
  font-weight: 700;
  margin-right: 2px;
}

/* ---------- ReCAPTCHA ---------- */
.hero-form-body .hero-recaptcha-group {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.hero-form-body .hero-recaptcha-group .hero-error-message {
  position: static;
  margin-top: 8px;
  white-space: normal;
}

.hero-form-body .g-recaptcha {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(1);
  transform-origin: center top;
  width: 304px;
  max-width: 100%;
  min-height: 78px;
  margin: 0 auto;
  overflow: visible;
}

.hero-form-body .g-recaptcha > div { margin: 0 auto; }
.hero-form-body .g-recaptcha iframe { max-width: 100%; display: block; margin: 0 auto; }

/* ---------- Submit ---------- */
.hero-form-body .hero-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(180deg, #1a82ff 0%, #0069ff 55%, #0057d6 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow:
    0 10px 26px -8px rgba(0, 105, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-align: center;
  font-family: inherit;
  letter-spacing: -0.005em;
}

.hero-form-body .hero-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -10px rgba(0, 105, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.04);
}

.hero-form-body .hero-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px -6px rgba(0, 105, 255, 0.4);
}

.hero-form-body .hero-btn-submit:focus-visible {
  outline: 2px solid #0069ff;
  outline-offset: 2px;
}

.hero-form-body .hero-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.hero-form-body .hero-btn-submit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.hero-form-body .hero-btn-submit:hover .hero-btn-submit-arrow {
  transform: translateX(2px);
}

/* ---------- Trust strip ---------- */
.hero-form-body .hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-form-body .hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-form-body .hero-trust-item .fa-lock {
  color: #94a3b8;
  font-size: 0.8rem;
}

.hero-form-body .hero-trust-sep {
  color: #cbd5e1;
}

/* ---------- Loading overlay ---------- */
.hero-form-body .hero-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-form-body .hero-loading-overlay.hero-loading-active {
  display: flex;
  animation: heroFadeIn 0.2s ease;
}

.hero-form-body .hero-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e2e8f0;
  border-top-color: #0069ff;
  border-radius: 50%;
  animation: heroSpin 0.75s linear infinite;
}

@keyframes heroSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-form-body .hero-loading-text {
  margin: 16px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b1220;
}

/* ---------- Success panel ---------- */
.hero-form-body .hero-success-panel {
  text-align: center;
  padding: 32px 20px 24px;
  min-height: 240px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: heroFadeIn 0.35s ease;
}

.hero-form-body .hero-success-panel.hero-success-active {
  display: flex;
}

.hero-form-body .hero-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  animation: heroSuccessPulse 0.6s ease;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

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

.hero-form-body .hero-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b1220;
  margin: 0 0 0.6rem;
}

.hero-form-body .hero-success-desc {
  font-size: 0.9rem;
  color: #475569;
  margin: 0 0 1.5rem;
  line-height: 1.55;
  max-width: 320px;
}

.hero-form-body .hero-btn-close-success {
  background: linear-gradient(180deg, #1a82ff 0%, #0069ff 55%, #0057d6 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 32px -10px rgba(0, 105, 255, 0.5);
  font-family: inherit;
}

.hero-form-body .hero-btn-close-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(0, 105, 255, 0.6);
  filter: brightness(1.04);
}

.hero-form-body .hero-btn-close-success:active {
  transform: translateY(0);
}

/* ---------- Error message box ---------- */
.hero-form-body .hero-error-message-box {
  display: none;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  color: #dc2626;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
}

.hero-form-body .hero-error-message-box::before {
  content: '\26A0  ';
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-form-eyebrow-rule {
    animation: none;
  }
  .hero-form-body .hero-btn-submit,
  .hero-form-body .hero-btn-close-success,
  .hero-form-body .hero-btn-submit-arrow {
    transition: none;
  }
  .hero-form-body .hero-btn-submit:hover,
  .hero-form-body .hero-btn-close-success:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-form-container {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .hero-form-container {
    max-width: 100%;
    margin-top: 20px;
  }

  .hero-form-body .hero-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-form-body .hero-form-group,
  .hero-form-body .hero-form-row > .hero-form-group {
    margin-top: 16px;
    margin-bottom: 0;
  }

  .hero-form-body .hero-form-row > .hero-form-group:first-child {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .hero-form-container {
    padding: 20px;
  }

  .hero-form-body .g-recaptcha {
    transform: scale(0.85);
    margin-bottom: -10px;
  }
}

@media (max-width: 360px) {
  .hero-form-body .g-recaptcha {
    transform: scale(0.74);
    margin-bottom: -18px;
  }
}