/* General appointment form — G8-centre */

.appointment-hero {
  padding: 48px 0 24px;
  background: linear-gradient(165deg, #f0f6ff 0%, #fff 55%);
}

.appointment-hero--center {
  text-align: center;
}

.appointment-hero--center .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.appointment-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.appointment-section {
  padding: 24px 0 72px;
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.appointment-layout__visual {
  max-width: 340px;
}

.appointment-layout__visual img {
  width: 100%;
  max-height: 380px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg, 16px);
}

.appointment-layout--callback {
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  max-width: 1040px;
}

.appointment-layout--callback .appointment-layout__visual {
  max-width: 480px;
}

.appointment-layout--callback .appointment-layout__visual img {
  max-height: none;
}

.appointment-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line, #e8ecf4);
  border-radius: var(--radius-lg, 16px);
  padding: 28px 28px 24px;
  box-shadow: 0 8px 32px rgba(15, 20, 35, 0.08);
}

.appointment-card__lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2, #4b5563);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, #e8ecf4);
}

.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.appointment-form--classic {
  grid-template-areas:
    "name phone"
    "dept doctor";
}

.appointment-field--name { grid-area: name; }
.appointment-field--phone { grid-area: phone; }
.appointment-field--dept { grid-area: dept; }
.appointment-field--doctor { grid-area: doctor; }

.appointment-form--stack {
  grid-template-columns: 1fr;
}

.appointment-card--narrow {
  max-width: 520px;
}

.appointment-form__full {
  grid-column: 1 / -1;
}

.appointment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appointment-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a1d26);
}

.appointment-field input,
.appointment-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line, #e8ecf4);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.appointment-field select:disabled {
  background: var(--surface, #f4f6fb);
  color: var(--muted, #6b7280);
  cursor: not-allowed;
}

.appointment-field input:focus,
.appointment-field select:focus {
  outline: none;
  border-color: var(--blue, #4593ff);
  box-shadow: 0 0 0 3px rgba(69, 147, 255, 0.15);
}

.appointment-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2, #4b5563);
  cursor: pointer;
}

.appointment-check input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue, #4593ff);
}

.appointment-check a {
  color: var(--blue, #4593ff);
}

.appointment-form__error {
  color: #d14343;
  font-size: 13px;
  margin: 0;
}

.appointment-form__success {
  color: #1d8a4b;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  padding: 20px 0;
  text-align: center;
}

.booking-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line, #e8ecf4);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.booking-field select:focus {
  outline: none;
  border-color: var(--blue, #4593ff);
  box-shadow: 0 0 0 3px rgba(69, 147, 255, 0.15);
}

@media (max-width: 900px) {
  .appointment-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .appointment-layout__visual {
    order: 2;
  }
}

@media (max-width: 640px) {
  .appointment-card {
    padding: 24px 20px;
  }

  .appointment-form,
  .appointment-form--classic {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "phone"
      "dept"
      "doctor";
  }
}
