:root {
  --blue-900: #042A46;
  --blue-800: #064069;
  --blue-700: #0A5A90;
  --blue-100: #E6F3FA;
  --cyan: #39A7E8;
  --ice: #F0F8FC;
  --ink: #11283B;
  --muted: #5F7A93;
  --line: #D9E4EF;
  --paper: #ffffff;
  --soft: #F4F9FC;
  --shadow: 0 22px 70px rgba(4, 42, 70, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 232, 228, 0.85);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 148px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue-800);
}

.header-cta,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-cta,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue-800), #1B81C9);
  box-shadow: 0 12px 26px rgba(10, 90, 144, 0.24);
}

.secondary-btn,
.ghost-btn {
  color: var(--blue-800);
  background: white;
  border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  min-height: calc(100vh - 84px);
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px) 56px;
  background:
    radial-gradient(circle at top right, rgba(57, 167, 232, 0.24), transparent 34%),
    linear-gradient(180deg, #f4f9fc 0%, #e6f3fa 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.booking-header h2 {
  margin: 0;
  color: var(--blue-900);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 10px 14px;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 28px;
  filter: drop-shadow(0 30px 34px rgba(4, 42, 70, 0.16));
}

.floating-card {
  position: absolute;
  right: 18px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.floating-card span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 78px clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.booking-header h2 {
  font-size: clamp(30px, 4.6vw, 52px);
}

.flow-grid,
.branch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-grid article,
.branch-grid article,
.summary-card,
.booking-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(4, 42, 70, 0.08);
}

.flow-grid article {
  padding: 24px;
}

.flow-grid span {
  color: var(--cyan);
  font-size: 34px;
  font-weight: 900;
}

.flow-grid h3,
.branch-grid h3,
.summary-card h3 {
  margin: 14px 0 8px;
  color: var(--blue-900);
}

.flow-grid p,
.branch-grid p,
.mini-copy,
.payment-note {
  color: var(--muted);
  line-height: 1.7;
}

.services-section {
  background: #ffffff;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-chip {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  padding: 12px;
  cursor: pointer;
  overflow: hidden;
}

.service-chip.is-active {
  border-color: var(--blue-700);
  box-shadow: 0 18px 42px rgba(10, 90, 144, 0.16);
}

.service-chip img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  border-radius: 16px;
}

.service-chip span,
.service-chip strong {
  display: block;
  padding-inline: 6px;
}

.service-chip span {
  margin-top: 14px;
  color: var(--blue-900);
  font-weight: 900;
}

.service-chip strong {
  margin-top: 6px;
  color: var(--blue-700);
  font-size: 13px;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  padding: 78px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(rgba(4, 42, 70, 0.92), rgba(4, 42, 70, 0.9)),
    url("https://sbdental.co.id/assets/images/about-us.png") center/cover;
}

.booking-panel,
.summary-card {
  padding: clamp(22px, 4vw, 36px);
}

.booking-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.step-indicator {
  display: flex;
  gap: 8px;
}

.step-indicator span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.step-indicator span.is-active {
  color: white;
  background: var(--blue-800);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 18px;
  color: var(--blue-900);
  font-size: 22px;
  font-weight: 900;
}

.form-step {
  display: none;
}

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

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfffd;
  color: var(--ink);
  outline: none;
  padding: 14px 15px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(57, 167, 232, 0.18);
}

.wide-field {
  grid-column: 1 / -1;
}

.payment-grid {
  display: grid;
  gap: 12px;
}

.payment-option {
  grid-template-columns: auto 1fr;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfffd;
}

.payment-option input {
  width: auto;
  margin-top: 3px;
}

.payment-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.payment-note {
  margin: 18px 0 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.submit-btn {
  display: none;
}

.summary-card {
  position: sticky;
  top: 104px;
  align-self: start;
}

.summary-label {
  margin: 0;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-card dl {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}

.summary-card dt {
  color: var(--muted);
}

.summary-card dd {
  margin: 0;
  color: var(--blue-900);
  font-weight: 900;
  text-align: right;
}

.summary-total {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  background: var(--ice);
  padding: 18px;
}

.summary-total span {
  color: var(--muted);
}

.summary-total strong {
  color: var(--blue-900);
  font-size: 28px;
}

.branch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branch-grid article {
  overflow: hidden;
}

.branch-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.branch-grid h3,
.branch-grid p {
  padding-inline: 22px;
}

.branch-grid p {
  margin-bottom: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 140px;
}

@media (max-width: 980px) {
  .hero,
  .booking-shell {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .service-strip,
  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .floating-card {
    position: static;
    margin-top: -12px;
  }

  .field-grid,
  .flow-grid,
  .service-strip,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .booking-header,
  .form-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }
}

/* Midtrans Simulation Modal */
.midtrans-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.midtrans-card {
  width: 100%;
  max-width: 380px;
  background: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.midtrans-header {
  background: #042A46;
  color: white;
  padding: 16px 20px;
}

.midtrans-merchant {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.midtrans-amount {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.midtrans-copy-icon {
  font-size: 14px;
  opacity: 0.7;
  cursor: pointer;
}

.midtrans-order-id {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.midtrans-rincian {
  margin-left: auto;
  color: #39A7E8;
  font-weight: 600;
  cursor: pointer;
}

.midtrans-timer {
  background: #e6f3fa;
  color: #064069;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-bottom: 1px solid #d9e4ef;
}

.midtrans-body {
  padding: 0 16px 16px;
  overflow-y: auto;
  background: #f7f7f7;
}

.midtrans-section-title {
  font-size: 12px;
  color: #757575;
  margin: 16px 0 8px 4px;
}

.midtrans-method-btn {
  width: 100%;
  background: white;
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-align: left;
}

.midtrans-method-btn:hover {
  background: #fafafa;
}

.midtrans-method-info strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.midtrans-logos {
  display: flex;
  align-items: center;
  gap: 6px;
}

.midtrans-logos img {
  height: 14px;
}

.midtrans-more-logos {
  font-size: 11px;
  color: #666;
  font-weight: 600;
}

.midtrans-chevron {
  color: #999;
  font-weight: bold;
}
