/* Optik Jelas Pandang — style.css */
:root {
  --primary: #4527a0;
  --primary-dark: #311b92;
  --primary-light: #7c4dff;
  --accent: #b39ddb;
  --accent-light: #d1c4e9;
  --bg: #ede7f6;
  --bg-white: #faf8ff;
  --text: #1a1040;
  --text-muted: #5c5078;
  --text-light: #8e82a8;
  --white: #ffffff;
  --success: #2e7d32;
  --border: #d1c4e9;
  --shadow: 0 4px 24px rgba(69,39,160,0.10);
  --shadow-md: 0 8px 32px rgba(69,39,160,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font: -apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 36px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea, select {
  font-family: var(--font);
  font-size: 1rem;
}

/* Demo Bar */
.demo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #4527a0;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.4;
}
.demo-bar a {
  color: #b39ddb;
  font-weight: 600;
  text-decoration: underline;
}
.demo-bar a:hover { color: #fff; }

/* Header & Nav */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 36px;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 40px;
  height: 40px;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Checkbox-hack nav */
#nav-toggle { display: none; }
.nav-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
}
.nav-label span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}
#nav-toggle:checked ~ .nav-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle:checked ~ .nav-label span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ .nav-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
nav ul {
  display: none;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  background: var(--white);
  border-top: 2px solid var(--bg);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  flex-direction: column;
}
#nav-toggle:checked ~ nav ul { display: flex; }
nav ul li a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
nav ul li a:hover, nav ul li a.active {
  color: var(--primary);
  background: var(--bg);
}
nav ul li a.nav-cta {
  margin: 8px 24px 0;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
  padding: 10px 24px;
}
nav ul li a.nav-cta:hover { background: var(--primary-dark); }

@media (min-width: 768px) {
  .nav-label { display: none; }
  nav ul {
    display: flex !important;
    position: static;
    flex-direction: row;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 4px;
    align-items: center;
  }
  nav ul li a { padding: 8px 14px; border-radius: 8px; }
  nav ul li a.nav-cta {
    margin: 0;
    padding: 8px 18px;
    border-radius: 8px;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
  color: var(--white);
  padding: 64px 16px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: inline-block;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.hero-svg { margin: 40px auto 0; max-width: 320px; }

/* Section */
.section { padding: 60px 16px; }
.section-alt { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 520px;
  margin: 0 auto;
}
.section-title .badge {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 56px; height: 56px;
  background: var(--bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.card .price {
  margin-top: 12px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Service cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-3px); }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-card .tag {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 10px;
}

/* Brand cards */
.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.brand-card:hover { transform: translateY(-3px); }
.brand-logo-area {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.5rem;
  font-weight: 900;
}
.brand-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.brand-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Doctor cards */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.doctor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
}
.doctor-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.doctor-card .role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.doctor-card .str {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
  margin: 6px 0;
}
.doctor-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 10px;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
}
.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--bg); }
.badge-open {
  background: #e8f5e9;
  color: var(--success);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-limited {
  background: #fff3e0;
  color: #e65100;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Form */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}
.form-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.radio-group label {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
}
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--primary-dark); }
.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 10px;
  text-align: center;
}

/* Info boxes */
.info-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  margin-bottom: 16px;
}
.info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.info-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}
.contact-item p, .contact-item a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.contact-item a:hover { color: var(--primary); }

/* Map CSS */
.map-css {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}
.map-css::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(69,39,160,0.2), 0 0 0 12px rgba(69,39,160,0.1);
}
.map-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* Guarantee / CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 0.98rem;
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.2s;
}
.btn-white:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 600px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* Guarantee list */
.guarantee-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .guarantee-list { grid-template-columns: repeat(2, 1fr); }
}
.guarantee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
}
.guarantee-dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.guarantee-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 52px 16px 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.page-hero p {
  opacity: 0.88;
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* Tabs (CSS only) */
.tabs input[type=radio] { display: none; }
.tabs-labels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.tabs-labels label {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
#tab1:checked ~ .tabs-labels label[for=tab1],
#tab2:checked ~ .tabs-labels label[for=tab2],
#tab3:checked ~ .tabs-labels label[for=tab3] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content { display: none; }
#tab1:checked ~ .tab-content[data-tab="1"],
#tab2:checked ~ .tab-content[data-tab="2"],
#tab3:checked ~ .tab-content[data-tab="3"] { display: block; }

/* Checklist */
.checklist { margin-top: 12px; }
.checklist li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Notice box */
.notice {
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.notice strong { color: var(--primary); }

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 16px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand .logo-name { color: var(--white); font-size: 1.1rem; }
.footer-brand p {
  font-size: 0.85rem;
  margin-top: 10px;
  line-height: 1.6;
  opacity: 0.8;
}
.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-links ul li {
  margin-bottom: 8px;
}
.footer-links ul li a {
  font-size: 0.85rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-links ul li a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}
