/* ========================================
   ŞEFFAF PLAK FİYATLARI — STYLE (WHITE)
   Clean, minimal, light-theme dental funnel
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-body: #f7f8fa;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbfc;

  --border-light: #e8eaef;
  --border-medium: #d1d5dc;

  --accent: #047857;
  --accent-dark: #064e3b;
  --accent-light: #ecfdf5;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);

  --text-primary: #1a1d26;
  --text-secondary: #5f6574;
  --text-muted: #9ca3af;

  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.logo span {
  color: var(--accent);
}
.header-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ── MAIN ── */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 520px;
  padding: 0 20px;
}

/* ── Brand ── */
.brand {
  text-align: center;
  margin-bottom: 24px;
}
.brand h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.brand p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Progress Bar ── */
.progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.progress-segment {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border-light);
  transition: var(--transition);
}
.progress-segment.active {
  background: var(--accent);
}
.progress-segment.completed {
  background: var(--accent);
  opacity: 0.4;
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

/* ── Step Sections ── */
.step {
  display: none;
  animation: fadeSlideIn 0.4s ease-out;
}
.step.active {
  display: block;
}

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

/* ── Step Labels & Titles ── */
.step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.step-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.55;
}

/* ── Option Buttons ── */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.option-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}
.option-btn .icon {
  font-size: 20px;
  flex-shrink: 0;
}
.option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 115, 0.1);
}
.option-btn.selected::after {
  content: '✓';
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

/* ── Severity Sub-Options ── */
.severity-options {
  display: none;
  margin-top: 10px;
  animation: fadeSlideIn 0.35s ease-out;
}
.severity-options.visible {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Select Dropdowns ── */
.select-group {
  margin-bottom: 16px;
}
.select-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
}
.select-wrapper select {
  width: 100%;
  padding: 13px 40px 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.select-wrapper select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 115, 0.12);
}

/* ── Input Fields ── */
.input-group {
  margin-bottom: 16px;
}
.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.input-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
}
.input-group input::placeholder {
  color: var(--text-muted);
}
.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 115, 0.12);
}
.input-group .error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}
.input-group.has-error input {
  border-color: var(--danger);
}
.input-group.has-error .error-msg {
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 115, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-body);
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.btn-group .btn {
  flex: 1;
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 12px 16px;
  background: var(--accent-light);
  border: 1px solid rgba(14, 165, 115, 0.15);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--accent-dark);
  text-align: center;
  margin: 16px 0;
}

/* ── Result Screen ── */
.result-box {
  text-align: center;
  padding: 16px 0;
}
.result-price-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}
.result-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.result-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}
.result-info .icon {
  font-size: 18px;
}
.result-severity {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.result-severity span {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── Thank You ── */
.thankyou {
  text-align: center;
  padding: 20px 0;
}
.thankyou-icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  animation: pulseIn 0.6s ease-out;
}
@keyframes pulseIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.thankyou .thankyou-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.thankyou p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FAQ Section ── */
.faq-section {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.faq-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(14, 165, 115, 0.08);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: var(--transition);
}
.faq-question:hover {
  background: var(--bg-body);
}
.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease;
  margin-left: 12px;
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: var(--bg-body);
}
.faq-answer p {
  padding: 0 20px 20px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FOOTER ── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
}
.site-footer p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  .brand h1 {
    font-size: 19px;
  }
  .step-title {
    font-size: 17px;
  }
  .result-price {
    font-size: 26px;
  }
  .btn {
    padding: 13px 20px;
    font-size: 14px;
  }
  .header-cta {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ── Admin Panel Styles ── */
.admin-container {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  margin: 0 auto;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h1 {
  font-size: 20px;
  font-weight: 700;
}
.admin-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}
.admin-table-wrapper {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  background: var(--bg-body);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.admin-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.admin-table tbody tr:hover {
  background: var(--bg-body);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-actions {
  display: flex;
  gap: 8px;
}
.btn-small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.admin-search {
  margin-bottom: 16px;
}
.admin-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.admin-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 115, 0.12);
}
.admin-search input::placeholder {
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .admin-stats {
    flex-direction: column;
  }
  .admin-table {
    font-size: 12px;
  }
  .admin-table thead th,
  .admin-table tbody td {
    padding: 10px 10px;
  }
}
