:root {
  --font-family: 'Poppins', sans-serif;
  --primary: #00AEEF;
  --primary-dark: #0D1B3D;
  --accent: #DDF7FF;
  --surface: #ffffff;
  --surface-strong: #f4f5f9;
  --text: #1b1b1b;
  --text-muted: #6c6c7b;
  --shadow: 0 18px 45px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, rgba(0,174,239,0.12), transparent 30%), #f6f7fb;
  color: var(--text);
  font-family: var(--font-family);
}

a { text-decoration: none; color: inherit; }

.container {
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto 40px;
  padding-top: 24px;
}

.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 20;
}

.floating-whatsapp a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: linear-gradient(135deg, #0D1B3D, #00AEEF);
  border-radius: 28px;
  color: white;
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-wrap img {
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hero-brand span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  opacity: 0.85;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  max-width: 14ch;
}

.hero-text {
  max-width: 520px;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-hero {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.18);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.24s ease, background 0.24s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.28);
}

.btn-secondary {
  background: rgba(255,255,255,0.16);
}

.hero-slider {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.slide.active-slide {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(0,0,0,0.52);
  color: white;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.slider-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
}

.slider-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
}

.slider-dots button.active {
  background: white;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.16);
}

.form-shell {
  margin-top: 28px;
}

.form-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.step-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.step-title {
  font-size: 1.45rem;
}

.progress-track {
  width: 100%;
  max-width: 360px;
  height: 12px;
  border-radius: 999px;
  background: #ebeef2;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00AEEF, #0D1B3D);
  transition: width 0.45s ease;
}

.form-card {
  background: white;
  border-radius: 28px;
  padding: 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInCard 0.6s ease forwards;
}

.form-card.active-step {
  display: block;
}

.form-card:not(.active-step) {
  display: none;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(0,174,239,0.1);
  color: var(--primary);
  font-weight: 700;
}

.section-head h3 {
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dfe2e8;
  font-size: 0.97rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,174,239,0.12);
}

.radio-grid {
  display: grid;
  gap: 10px;
}

.payment-card {
  background: #f0fbff;
  border: 1px dashed rgba(0,174,239,0.35);
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
}

.amount-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amount-box strong {
  color: var(--text-muted);
}

#amountDue {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
}

.camera-box {
  grid-column: 1 / -1;
}

.camera-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
}

#video,
.preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview[hidden] {
  display: none;
}

.camera-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.camera-help {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.upload-note {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.payment-methods {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.payment-methods .method {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 18px;
}

.payment-methods .method h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.payment-methods .method p {
  margin: 0;
  color: var(--text-muted);
}

.review-actions {
  margin-top: 18px;
}

button:disabled,
button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary,
.btn-secondary,
.submitBtn,
#reviewBtn {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary,
.submitBtn,
#reviewBtn {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: #f3f3f5;
  color: var(--text);
}

.btn-primary:hover,
.submitBtn:hover,
#reviewBtn:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.form-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.review-panel {
  background: white;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: none;
}

.review-panel.active {
  display: block;
}

.site-footer {
  margin-top: 36px;
  padding: 36px 32px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 32%), linear-gradient(180deg, #5c0909 0%, #210303 100%);
  box-shadow: 0 26px 60px rgba(0,0,0,0.22);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(180px, 1fr));
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.footer-block,
.site-footer .brand-block {
  display: grid;
  gap: 14px;
}

.site-footer .brand-block h4 {
  font-size: 1.28rem;
  line-height: 1.25;
}

.site-footer .brand-block p {
  max-width: 460px;
}

.site-footer .brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: white;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-footer h4,
.site-footer h5 {
  margin-bottom: 8px;
  color: white;
}

.site-footer h5 {
  font-size: 0.98rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.96;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
}

.site-footer a {
  color: #ffb4b4;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-block {
  padding-top: 4px;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #c8c8d0;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  color: #8c8c99;
  font-size: 0.95rem;
}

.review-head {
  margin-bottom: 20px;
}

.review-head h3 {
  font-size: 1.3rem;
}

.review-content {
  display: grid;
  gap: 12px;
}

.review-content table {
  width: 100%;
  border-collapse: collapse;
}

.review-content td {
  padding: 12px;
  border: 1px solid #ebeef2;
}

.review-content td:first-child {
  width: 35%;
  font-weight: 600;
  background: #faf9fb;
}

.summary-note {
  background: #fff5f5;
  border-left: 4px solid var(--primary);
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12,12,12,0.55);
  padding: 18px;
  z-index: 30;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(960px, 100%);
  background: white;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: rgba(0,0,0,0.05);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
}

.modal-content h3 {
  margin: 24px 24px 0;
}

.map-panel iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.hero-popover {
  position: fixed;
  top: 120px;
  right: 24px;
  width: min(360px, 90%);
  background: white;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 40;
  color: var(--text);
}

.hero-popover.active {
  display: block;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .hero-slider {
    min-height: 320px;
  }
  .hero-copy {
    order: 2;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 20px);
    margin-bottom: 28px;
  }

  .hero {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-brand {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-brand h1,
  .hero-text {
    max-width: 100%;
  }

  .hero-text {
    font-size: 0.98rem;
    margin-top: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-hero {
    width: 100%;
  }

  .hero-slider {
    min-height: 260px;
  }

  .slider-nav {
    bottom: 12px;
    padding: 0 12px;
  }

  .slider-button {
    width: 40px;
    height: 40px;
  }

  .form-navigation {
    justify-content: stretch;
  }

  .form-navigation .btn-primary,
  .form-navigation .btn-secondary,
  .form-navigation .submitBtn {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .hero-brand span {
    font-size: 0.74rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-slider {
    min-height: 220px;
  }

  .slider-nav {
    gap: 8px;
  }

  .slider-dots {
    gap: 8px;
  }

  .slider-dots button {
    width: 10px;
    height: 10px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .camera-panel {
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer {
    padding: 28px 20px;
  }

  .footer-bottom {
    margin-top: 18px;
    font-size: 0.92rem;
  }

  .hero-popover {
    top: auto;
    bottom: 18px;
    right: 18px;
    width: calc(100% - 36px);
  }
}
