/* ==========================================================================
   Amerika Ofisi — Ön görüşme planlama sayfası
   --------------------------------------------------------------------------
   styles.css'teki tasarım değişkenlerini ve bileşenleri (buton, etiket,
   logo) kullanır; burada yalnızca bu sayfaya özel parçalar vardır.
   1. Sayfa iskeleti      3. Takvim              5. Hareket
   2. Form (tek soru)     4. Sonuç ekranı        6. Duyarlı tasarım
   ========================================================================== */

/* 1. Sayfa iskeleti ------------------------------------------------------- */
.bk {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(70% 55% at 50% 0%, rgb(var(--brand-rgb) / 0.14), transparent 70%), var(--bg);
}

.bk::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgb(11 19 36 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(11 19 36 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 10%, transparent 75%);
}

.bk-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 4px;
  background: rgb(var(--brand-rgb) / 0.14);
}

.bk-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--brand-600), var(--brand));
  transition: width 0.5s var(--ease);
}

.bk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.bk-top-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bk-top-link:hover {
  color: var(--ink);
  background: rgb(11 19 36 / 0.045);
}

.bk-top-link .icon {
  width: 18px;
  height: 18px;
}

.bk-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px) var(--gutter) clamp(64px, 9vh, 112px);
}

kbd {
  font-family: inherit;
  font-weight: 650;
}

/* Programla odaklanan başlıklar çerçeve göstermez */
[tabindex="-1"]:focus {
  outline: none;
}

/* 2. Form (tek soru) ------------------------------------------------------ */
.tf {
  width: min(100%, 720px);
}

.tf-welcome {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.tf-title {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.tf-lead {
  max-width: 600px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--text);
}

.tf-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tf-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
}

.tf-facts .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
}

.tf-q {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
}

.tf-num {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  font-size: 16px;
  font-weight: 650;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}

.tf-num .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.tf-question {
  font-size: clamp(23px, 2.9vw, 31px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.tf-req {
  margin-left: 3px;
  color: var(--brand-600);
}

.tf-desc {
  margin-top: 10px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
}

.tf-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tf-field {
  display: grid;
  gap: 4px;
}

.tf-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-700);
}

.tf-input {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 2px solid rgb(var(--brand-rgb) / 0.38);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--brand-800);
  caret-color: var(--brand-600);
  transition: border-color 0.2s ease;
}

.tf-body > .tf-input {
  margin-top: 30px;
}

.tf-input::placeholder {
  color: rgb(var(--brand-rgb) / 0.5);
  opacity: 1;
}

.tf-input:focus {
  outline: none;
  border-bottom-color: var(--brand-600);
}

.tf-input[aria-invalid="true"] {
  border-bottom-color: var(--no);
}

.tf-textarea {
  min-height: 52px;
  max-height: 40vh;
  resize: none;
  overflow-y: auto;
}

.tf-phone {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 30px;
}

.tf-cc {
  flex: none;
  height: 52px;
  padding: 0 34px 0 12px;
  border: 1px solid rgb(var(--brand-rgb) / 0.38);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  font: inherit;
  font-size: 17px;
  font-weight: 550;
  color: var(--brand-800);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.tf-cc:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.tf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
}

.tf-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.tf-hint .icon {
  width: 14px;
  height: 14px;
}

.tf-hint--below {
  margin-top: 10px;
}

.tf-error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 12px 7px 10px;
  border-radius: 8px;
  background: var(--no-bg);
  color: #b42318;
  font-size: 14.5px;
  font-weight: 550;
}

.tf-error[hidden] {
  display: none;
}

.tf-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d92d20;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.tf-consent {
  max-width: 520px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--subtle);
}

.tf-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Seçenekler */
.tf-choices {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin-top: 28px;
}

.tf-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgb(var(--brand-rgb) / 0.42);
  border-radius: 12px;
  background: rgb(var(--brand-rgb) / 0.07);
  color: var(--brand-800);
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tf-choice:hover {
  background: rgb(var(--brand-rgb) / 0.13);
}

.tf-choice kbd {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(var(--brand-rgb) / 0.55);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  color: var(--brand-700);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tf-choice-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tf-choice-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.tf-choice-text em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 600;
  color: var(--brand-700);
}

.tf-choice-text small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.tf-choice-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
  color: var(--brand-600);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.tf-choice[aria-checked="true"] {
  border-color: var(--brand-600);
  background: rgb(var(--brand-rgb) / 0.16);
  box-shadow: inset 0 0 0 1px var(--brand-600);
}

.tf-choice[aria-checked="true"] kbd {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}

.tf-choice[aria-checked="true"] .tf-choice-check {
  opacity: 1;
  transform: none;
}

.tf-choice.is-blink {
  animation: tf-blink 0.36s steps(2, jump-none) 2;
}

/* Sağ alttaki önceki / sonraki düğmeleri */
.tf-nav {
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  z-index: 50;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px rgb(var(--brand-rgb) / 0.7);
}

.tf-nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  background: var(--brand);
  color: #fff;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.tf-nav button + button {
  border-left: 1px solid rgb(255 255 255 / 0.28);
}

.tf-nav button:hover {
  background: var(--brand-hover);
}

.tf-nav button:disabled {
  cursor: default;
  opacity: 0.5;
  background: var(--brand);
}

.tf-nav .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

/* 3. Takvim --------------------------------------------------------------- */
.cal {
  width: min(100%, 1080px);
}

.cal-card {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.cal-info {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border-right: 1px solid var(--line-soft);
}

.cal-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  height: 34px;
  margin: -6px 0 8px -8px;
  padding: 0 12px 0 6px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  color: var(--brand-700);
  transition: background-color 0.2s ease;
}

.cal-back:hover {
  background: var(--brand-50);
}

.cal-back .icon {
  width: 18px;
  height: 18px;
}

.cal-org {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}

.cal-title {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.cal-meta {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.cal-meta li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
  color: var(--ink-2);
}

.cal-meta .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--muted);
}

.cal-meta-pick {
  color: var(--brand-700) !important;
}

.cal-meta-pick .icon {
  color: var(--brand-600) !important;
}

.cal-desc {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

.cal-main {
  position: relative;
  padding: 28px 28px 26px;
}

.cal-h {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.cal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 28px;
  margin-top: 20px;
}

.cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cal-month-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
}

.cal-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--brand-700);
  background: var(--brand-50);
  transition: background-color 0.2s ease;
}

.cal-nav:hover:not(:disabled) {
  background: var(--brand-100);
}

.cal-nav:disabled {
  cursor: default;
  background: transparent;
  color: var(--subtle);
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-weekdays {
  margin-bottom: 6px;
}

.cal-weekdays span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 50px;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
}

.cal-day.is-available {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cal-day.is-available:hover {
  background: var(--brand-100);
}

.cal-day.is-selected,
.cal-day.is-selected:hover {
  background: var(--brand-600);
  color: #fff;
}

.cal-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}

.cal-tz {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}

.cal-tz .icon {
  width: 18px;
  height: 18px;
}

.cal-tz select {
  min-width: 0;
  max-width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687185' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 8px center / 15px no-repeat;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.cal-times {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cal-times-day {
  margin-bottom: 14px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 38px;
  color: var(--ink);
}

/* Liste kaydırılabilir; alttaki yumuşak geçiş devamı olduğunu gösterir */
.cal-slots {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 392px;
  margin-right: -6px;
  padding: 0 6px 28px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}

.cal-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.slot {
  display: flex;
  gap: 8px;
}

.slot-btn,
.slot-confirm {
  height: 50px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.slot-btn {
  flex: 1 1 100%;
  border: 1px solid rgb(var(--brand-rgb) / 0.6);
  background: var(--surface);
  color: var(--brand-700);
  transition: flex-basis 0.25s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.slot-btn:hover {
  border-color: var(--brand-600);
  box-shadow: inset 0 0 0 1px var(--brand-600);
}

.slot.is-selected .slot-btn {
  flex-basis: 50%;
  border-color: var(--ink-2);
  background: var(--ink-2);
  box-shadow: none;
  color: #fff;
}

.slot-confirm {
  display: none;
  flex: 1 1 50%;
  padding: 0 10px;
}

.slot.is-selected .slot-confirm {
  display: inline-flex;
  animation: slot-in 0.25s var(--ease);
}

.slot-confirm-time {
  display: none;
}

.cal-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--brand-50);
  font-size: 14.5px;
  color: var(--brand-800);
}

.cal-status[hidden] {
  display: none;
}

.cal-status.is-error {
  background: var(--no-bg);
  color: #b42318;
}

.cal-status .icon {
  width: 18px;
  height: 18px;
}

.cal-status button {
  margin-left: auto;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cal-loading .cal-grid,
.cal-loading .cal-slots {
  opacity: 0.45;
  pointer-events: none;
}

.is-busy {
  pointer-events: none;
  opacity: 0.7;
}

.btn-danger {
  background: #d92d20;
  color: #fff;
  box-shadow: 0 1px 2px rgb(11 19 36 / 0.12), 0 8px 20px -10px rgb(217 45 32 / 0.7);
}

.btn-danger:hover {
  background: #b42318;
}

/* 4. Sonuç ekranı --------------------------------------------------------- */
.done {
  width: min(100%, 600px);
}

.done-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(32px, 5vw, 48px) clamp(22px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 10px rgb(var(--brand-rgb) / 0.14), 0 12px 24px -10px rgb(var(--brand-rgb) / 0.9);
  animation: done-pop 0.6s var(--ease) both;
}

.done-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.6;
}

.done-icon.is-info {
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: 0 0 0 10px rgb(var(--brand-rgb) / 0.08);
}

.done-icon.is-muted {
  background: var(--bg-alt);
  color: var(--muted);
  box-shadow: 0 0 0 10px rgb(11 19 36 / 0.04);
}

.done-title {
  margin-top: 8px;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.035em;
}

.done-lead {
  max-width: 460px;
  font-size: 16.5px;
  color: var(--text);
}

.done-lead a,
.done-foot a {
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: underline;
  text-decoration-color: var(--brand-200);
  text-underline-offset: 3px;
}

.done-details {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 4px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  text-align: left;
}

.done-details[hidden] {
  display: none;
}

.done-details > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.done-details dt .icon {
  width: 20px;
  height: 20px;
  color: var(--brand-600);
}

.done-details dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ink);
}

.done-details dd small {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.done-actions[hidden],
.done-links [hidden] {
  display: none;
}

.done-cancel {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  text-align: left;
}

.done-cancel[hidden] {
  display: none;
}

.done-cancel .done-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.done-cancel-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.done-cancel-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  resize: vertical;
}

.done-cancel-input:focus {
  outline: 2px solid var(--brand-600);
  outline-offset: 1px;
}

.done-foot {
  max-width: 440px;
  font-size: 14px;
  color: var(--muted);
}

.done-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-top: -4px;
}

/* 5. Hareket -------------------------------------------------------------- */
.tf-step.is-entering,
[data-view].is-entering {
  animation: tf-in 0.5s var(--ease) both;
}

.tf-step.is-leaving {
  animation: tf-out 0.22s ease-in both;
}

@keyframes tf-in {
  from {
    opacity: 0;
    transform: translateY(var(--from, 28px));
  }
}

@keyframes tf-out {
  to {
    opacity: 0;
    transform: translateY(var(--to, -28px));
  }
}

@keyframes tf-blink {
  50% {
    background: rgb(var(--brand-rgb) / 0.3);
  }
}

@keyframes tf-shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.tf-error.is-shake {
  animation: tf-shake 0.3s ease;
}

@keyframes slot-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
}

@keyframes done-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-step.is-entering,
  .tf-step.is-leaving,
  [data-view].is-entering,
  .done-icon {
    animation: none;
  }
}

/* 6. Duyarlı tasarım ------------------------------------------------------ */
@media (max-width: 960px) {
  .cal {
    width: min(100%, 640px);
  }

  .cal-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cal-info {
    gap: 10px;
    padding: 22px 22px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .cal-title {
    font-size: 23px;
  }

  .cal-desc {
    display: none;
  }

  .cal-main {
    padding: 22px;
  }

  .cal-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .cal-times-day {
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .cal-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .slot.is-selected .slot-btn {
    display: none;
  }

  .slot.is-selected .slot-confirm {
    flex-basis: 100%;
    gap: 6px;
  }

  .slot-confirm-time {
    display: inline;
  }

  .slot-confirm-time::after {
    content: " ·";
  }
}

@media (max-width: 640px) {
  .tf-nav {
    display: none;
  }

  .tf-q {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .tf-num {
    height: auto;
  }

  .tf-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .tf-hint:not(.tf-hint--below) {
    display: none;
  }

  .tf-actions .btn-lg,
  .tf-welcome .btn-lg {
    width: 100%;
  }

  .tf-phone {
    gap: 10px;
  }

  .tf-cc {
    height: 48px;
    padding-left: 10px;
    font-size: 16px;
  }

  .tf-choice {
    min-height: 56px;
    padding-inline: 10px 12px;
  }

  .tf-choice-text strong {
    font-size: 16px;
  }

  .cal-main {
    padding: 20px 16px 18px;
  }

  .cal-info {
    padding: 18px 16px;
  }

  .cal-weekdays,
  .cal-grid {
    gap: 4px;
  }

  .cal-day {
    font-size: 14.5px;
  }

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