*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --blue: #0978ef;
  --blue-dark: #0562cc;
  --blue-light: #e8f3ff;
  --navy: #07242f;
  --navy-2: #0a1f44;
  --text-muted: #5a6a85;
  --border-card: #dce9f8;
  --orange: #c9621a;
  --white: #fff;
  --radius-card: 20px;
  --radius-input: 12px;
}
body {
  font-family: "Poppins", sans-serif;
  background: #f5f9ff;
  margin: 0;
}

/* ───── HERO SECTION ───── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f0f7ff;
  padding: 80px 0 60px;
}

/* BG image layer with overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(240, 247, 255, 0.96) 0%,
      rgba(232, 243, 255, 0.9) 55%,
      rgba(9, 120, 239, 0.08) 100%
    ),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1600&q=80")
      center/cover no-repeat;
  z-index: 0;
}

/* Floating decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 420px;
  height: 420px;
  background: #0978ef;
  top: -120px;
  right: -80px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 300px;
  height: 300px;
  background: #014392;
  bottom: -80px;
  left: -60px;
  animation: blobFloat 11s ease-in-out infinite reverse;
}
.blob-3 {
  width: 180px;
  height: 180px;
  background: #0978ef;
  bottom: 120px;
  right: 340px;
  animation: blobFloat 6s ease-in-out infinite 2s;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.07);
  }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(9, 120, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 120, 239, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── LEFT SIDE ── */
.hero-left {
  animation: fadeInLeft 0.8s ease both;
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f3ff;
  color: #0978ef;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 1.5px solid #b3d8fb;
  animation: fadeInLeft 0.8s ease 0.1s both;
}
.hero-badge i {
  font-size: 13px;
}

.hero-heading {
  font-family: "Urbanist", sans-serif;
  font-size: 62px;
  font-weight: 800;
  line-height: 1.1;
  color: #07242f;
  margin-bottom: 22px;
  animation: fadeInLeft 0.8s ease 0.15s both;
}
.hero-heading .blue {
  color: #0978ef;
}
.hero-heading .line-2 {
  display: block;
}

.hero-desc {
  font-size: 15px;
  color: #5a6a85;
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: 36px;
  animation: fadeInLeft 0.8s ease 0.2s both;
}
.hero-desc strong {
  color: #c9621a;
  font-weight: 600;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  animation: fadeInLeft 0.8s ease 0.25s both;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-family: "Urbanist", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #07242f;
  line-height: 1;
}
.stat-num span {
  color: #0978ef;
}
.stat-label {
  font-size: 11px;
  color: #5a6a85;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  background: #dce9f8;
  align-self: stretch;
  margin: 4px 0;
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInLeft 0.8s ease 0.3s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0978ef;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(9, 120, 239, 0.3);
}
.btn-primary:hover {
  background: #0562cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(9, 120, 239, 0.4);
}
.btn-primary i {
  font-size: 16px;
  transition: transform 0.25s;
}
.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #07242f;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid #dce9f8;
  cursor: pointer;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.25s;
}
.btn-ghost:hover {
  border-color: #0978ef;
  background: #fff;
  transform: translateY(-2px);
}
.btn-ghost i {
  color: #0978ef;
  font-size: 16px;
}

/* Trust badges */
.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  animation: fadeInLeft 0.8s ease 0.35s both;
}
.trust-avatars {
  display: flex;
}
.trust-avatars .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: linear-gradient(135deg, #0978ef, #014392);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
}
.trust-avatars .av:first-child {
  margin-left: 0;
}
.trust-text {
  font-size: 12px;
  color: #5a6a85;
  line-height: 1.4;
}
.trust-text strong {
  color: #07242f;
  font-weight: 600;
}

/* ── RIGHT SIDE: FORM ── */
.hero-right {
  animation: fadeInRight 0.8s ease 0.1s both;
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #dce9f8;
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow:
    0 20px 60px rgba(9, 120, 239, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0978ef, #014392);
  border-radius: 24px 24px 0 0;
}

.form-header {
  margin-bottom: 24px;
}
.form-title {
  font-family: "Urbanist", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #07242f;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 13px;
  color: #5a6a85;
  line-height: 1.6;
}

/* Input groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.form-group.no-mb {
  margin-bottom: 0;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #0a1f44;
  letter-spacing: 0.3px;
}

.input-wrap {
  position: relative;
}
.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #a0aec0;
  pointer-events: none;
  transition: color 0.2s;
}
.input-wrap.ta i {
  top: 16px;
  transform: none;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  color: #07242f;
  background: #f7faff;
  border: 1.5px solid #dce9f8;
  border-radius: 10px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  appearance: none;
}
.form-input::placeholder {
  color: #a0aec0;
  font-size: 13px;
}
.form-input:focus {
  border-color: #0978ef;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 120, 239, 0.12);
}
.form-input:focus + i,
.form-input:focus ~ i,
.input-wrap:focus-within i {
  color: #0978ef;
}
/* fix icon order — icon is before input visually, after in DOM */
.input-wrap input,
.input-wrap textarea,
.input-wrap select {
  order: 1;
}
.input-wrap i {
  order: 2;
}

/* reorder: icon first in DOM for sibling trick */
.form-input {
  display: block;
}

.form-textarea {
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  color: #07242f;
  background: #f7faff;
  border: 1.5px solid #dce9f8;
  border-radius: 10px;
  outline: none;
  resize: vertical;
  min-height: 96px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  line-height: 1.6;
}
.form-textarea::placeholder {
  color: #a0aec0;
  font-size: 13px;
}
.form-textarea:focus {
  border-color: #0978ef;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 120, 239, 0.12);
}

/* Validation states */
.form-input.error,
.form-textarea.error {
  border-color: #e53e3e;
  background: #fff5f5;
}
.form-input.success,
.form-textarea.success {
  border-color: #38a169;
  background: #f0fff4;
}
.error-msg {
  font-size: 11px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
  align-items: center;
  gap: 4px;
}
.error-msg.show {
  display: flex;
}
.error-msg i {
  font-size: 11px;
}

/* Phone with country code */
.phone-row {
  display: flex;
  gap: 8px;
}
.phone-code-select {
  padding: 12px 10px 12px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #07242f;
  background: #f7faff;
  border: 1.5px solid #dce9f8;
  border-radius: 10px;
  outline: none;
  width: 100px;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.phone-code-select:focus {
  border-color: #0978ef;
  box-shadow: 0 0 0 3px rgba(9, 120, 239, 0.12);
}
.phone-input-wrap {
  flex: 1;
}

/* Select field */
.form-select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  color: #07242f;
  background: #f7faff;
  border: 1.5px solid #dce9f8;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a85' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-select:focus {
  border-color: #0978ef;
  box-shadow: 0 0 0 3px rgba(9, 120, 239, 0.12);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #0978ef, #014392);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    opacity 0.25s;
  box-shadow: 0 6px 24px rgba(9, 120, 239, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(9, 120, 239, 0.45);
}
.btn-submit:hover::before {
  opacity: 1;
}
.btn-submit:active {
  transform: scale(0.98);
}
.btn-submit i {
  font-size: 17px;
  transition: transform 0.25s;
}
.btn-submit:hover i {
  transform: translateX(4px);
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-submit.loading .spinner {
  display: block;
}
.btn-submit.loading .btn-text {
  display: none;
}
.btn-submit.loading .btn-icon {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
  animation: fadeUp 0.4s ease both;
}
.form-success.show {
  display: block;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: #e8f3ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-icon i {
  font-size: 28px;
  color: #0978ef;
}
.success-title {
  font-family: "Urbanist", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #07242f;
  margin-bottom: 8px;
}
.success-msg {
  font-size: 13px;
  color: #5a6a85;
  line-height: 1.6;
}

.privacy-note {
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.privacy-note i {
  font-size: 12px;
  color: #0978ef;
}

/* ── FLOATING BADGE ── */
.float-badge {
  position: absolute;
  top: 28px;
  right: -16px;
  background: #fff;
  border: 1.5px solid #dce9f8;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: floatBadge 4s ease-in-out infinite;
  z-index: 3;
}
@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.float-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-badge-icon i {
  font-size: 18px;
  color: #0978ef;
}
.float-badge-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #07242f;
}
.float-badge-text span {
  font-size: 11px;
  color: #5a6a85;
}

.float-badge-2 {
  position: absolute;
  bottom: 32px;
  left: -20px;
  background: #fff;
  border: 1.5px solid #dce9f8;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: floatBadge 5s ease-in-out infinite 1s;
  z-index: 3;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-heading {
    font-size: 50px;
  }
  .hero-inner {
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .hero {
    padding: 60px 0 50px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }
  .hero-heading {
    font-size: 44px;
  }
  .hero-left {
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .trust-row {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .float-badge,
  .float-badge-2 {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero-heading {
    font-size: 34px;
  }
  .form-card {
    padding: 24px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .stat-divider {
    display: block;
    width: 1px;
    height: 40px;
    background: #dce9f8;
    align-self: stretch;
    margin: 0;
  }
  .btn-primary,
  .btn-ghost {
    font-size: 13px;
    padding: 12px 20px;
  }
  .hero-badge {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}
@media (max-width: 400px) {
  .hero-heading {
    font-size: 28px;
  }
  .hero-inner {
    padding: 0 16px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
