.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(290px, 0.62fr);
  gap: 22px;
  align-items: start;
}

.form-card,
.appointment-info {
  padding: 25px;
  border-radius: 9px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.service-fieldset legend {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.72;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field textarea {
  min-height: 135px;
  resize: vertical;
}

.field-help {
  margin-top: -1px;
  color: var(--muted);
  font-size: 12px;
}

.service-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.service-fieldset legend {
  margin-bottom: 9px;
}

.required-note {
  margin-left: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-option {
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.service-option:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.service-option:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.service-option input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.service-option span {
  display: block;
}

.service-option strong {
  display: block;
  color: var(--heading);
  font-size: 13px;
}

.service-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.field-error {
  min-height: 16px;
  color: var(--error-text);
  font-size: 12px;
  font-weight: 650;
}

.request-notice {
  margin-top: 20px;
  padding: 15px 17px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-left: 4px solid var(--brand);
  border-radius: 7px;
}

.request-notice strong {
  display: block;
  color: var(--heading);
  font-size: 14px;
}

.request-notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 18px;
}

.form-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: none;
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.status.show {
  display: block;
}

.status.success {
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}

.status.error {
  color: var(--error-text);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
}

.appointment-info {
  position: sticky;
  top: 106px;
}

.appointment-info h2 {
  margin: 0;
  color: var(--heading);
  font-size: 23px;
  line-height: 1.2;
}

.info-list {
  margin-top: 17px;
}

.info-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row strong {
  display: block;
  color: var(--muted-strong);
  font-size: 13px;
}

.info-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.priority-row strong {
  color: var(--brand);
}

@media (max-width: 860px) {
  .appointment-layout {
    grid-template-columns: 1fr;
  }

  .appointment-info {
    position: static;
  }
}

@media (max-width: 620px) {
  .form-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .service-option {
    min-height: auto;
  }
}
