/* Tevbe Terapisi form – marka uyumlu adım adım tasarım */
:root {
  --navy: #202f44;
  --navy-soft: #394d5d;
  --gold: #bd9755;
  --gold-soft: #c49a6c;
  --cream: #fff3d3;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --line: #e4e4e4;
  --text: #202f44;
  --muted: #5c6b7a;
  --radius: 6px;
  --max: 820px;
  --font: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* Üst bar */
.form-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.form-topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.form-brand img {
  height: 48px;
  width: auto;
}
.form-brand span { display: none; }

.form-progress-wrap[hidden] {
  display: none !important;
}

body.is-intro .form-top-meta span {
  color: var(--muted);
}
.form-top-meta {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.form-top-meta strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

/* Progress */
.form-progress-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 14px;
}
.form-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.form-progress-label strong {
  color: var(--navy);
  font-weight: 600;
}
.form-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.form-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.25s ease;
}

/* Shell */
.form-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 120px;
}

.step-panel {
  display: none;
  animation: stepIn 0.28s ease;
}
.step-panel.is-active {
  display: block;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.step-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.step-desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.info-list {
  margin: 0 0 18px;
  padding-left: 1.15em;
}
.info-list li {
  margin-bottom: 10px;
  color: var(--text);
}
.info-block {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: transparent;
}
.info-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

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

.label-with-icon {
  display: block;
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.label-with-icon:first-child {
  margin-top: 0;
}
.label-with-icon i {
  color: var(--gold);
  margin-right: 8px;
  width: 1.1em;
  text-align: center;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(189, 151, 85, 0.18);
}
.is-invalid {
  border-color: #bb0404 !important;
  box-shadow: 0 0 0 3px rgba(187, 4, 4, 0.12) !important;
}
.field-error {
  display: none;
  margin: 4px 0 10px;
  font-size: 13px;
  color: #bb0404;
}
.field-error.is-visible {
  display: block;
}

.section-heading {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.checkbox-group,
.vertical-checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .checkbox-group {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-group label,
.vertical-checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.checkbox-group label:hover,
.vertical-checkbox-group label:hover {
  border-color: var(--gold-soft);
}
.checkbox-group label:has(input:checked),
.vertical-checkbox-group label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(189, 151, 85, 0.08);
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  border: 2px solid var(--navy-soft);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--navy);
  border-color: var(--navy);
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.scrollable-table {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scrollable-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  background: var(--bg);
}
.scrollable-table th,
.scrollable-table td {
  padding: 10px 12px;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.scrollable-table th {
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
.scrollable-table td:first-child {
  font-weight: 500;
  color: var(--navy);
  min-width: 160px;
}
.scrollable-table tr:last-child td {
  border-bottom: none;
}
.scrollable-table input[type="checkbox"],
.scrollable-table input[type="radio"] {
  display: block;
  margin: 0 auto;
}

/* Sticky actions */
.form-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.form-actions-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.form-actions-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: #fff;
}
.btn-secondary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn-secondary:hover:not(:disabled) {
  filter: brightness(0.97);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--navy);
}

.form-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.form-footer a {
  color: var(--navy);
}

.modern-alert {
  position: fixed;
  bottom: 88px;
  right: 16px;
  max-width: 320px;
  background: #fff;
  border-left: 3px solid var(--gold);
  color: var(--text);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--gold);
  z-index: 60;
  font-size: 14px;
}

@media (max-width: 640px) {
  .form-brand span { display: none; }
  .form-actions-inner {
    flex-wrap: wrap;
  }
  .btn {
    flex: 1 1 auto;
  }
}
