.form-page {
  padding-bottom: calc(88px + var(--safe-bottom));
  background: var(--color-bg);
}

.form-body {
  padding: var(--space-md);
}

.form-card {
  background: var(--gradient-surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.form-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card__title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.form-field {
  margin-bottom: var(--space-md);
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.form-field__input,
.form-field__select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 15px;
}

.form-field__input::placeholder {
  color: var(--color-text-muted);
}

.form-field__input:focus,
.form-field__select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 138, 0.15);
}

.form-field__input.is-error,
.form-field__select.is-error {
  border-color: var(--color-danger);
}

.form-field__picker {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--color-text);
}

.form-field__picker.is-placeholder {
  color: var(--color-text-muted);
}

.form-field__picker-arrow {
  color: var(--color-text-muted);
  font-size: 12px;
}

.form-field__doctor {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

.form-field__doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.form-field__doctor-name {
  font-weight: 600;
  font-size: 16px;
}

.form-field__doctor-role {
  font-size: 12px;
  color: var(--color-primary);
}

.textarea-wrap {
  position: relative;
}

.form-field__textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  resize: none;
  outline: none;
  line-height: 1.65;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 138, 0.15);
}

.textarea-wrap__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: var(--space-sm);
}

.char-count {
  font-size: 12px;
  color: var(--color-text-muted);
}

.service-info {
  padding: 16px;
  margin: 0 var(--space-md) var(--space-md);
  background: var(--gradient-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.service-info__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-info__title::before {
  content: "ℹ";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.service-info__item {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.service-info__phone {
  font-size: 13px;
  color: var(--color-primary-dark);
  margin-top: var(--space-md);
  font-weight: 600;
  padding: 10px 12px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
}

.submit-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: var(--space-md) 20px;
  padding-bottom: calc(var(--space-md) + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  z-index: 50;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(240, 245, 242, 0.96);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
}

.success-overlay__icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
}

.success-overlay__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.success-overlay__desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.doctor-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md);
  padding: 14px 16px;
  background: var(--gradient-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.doctor-banner__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  overflow: visible;
}

.doctor-banner__avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #eef5f1;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(76, 175, 138, 0.15);
}

.doctor-banner__avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.doctor-banner__verified {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 20px;
  height: 20px;
  background: linear-gradient(145deg, #ffb04a 0%, #ff9226 100%);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(255, 146, 38, 0.4);
}

.doctor-banner__name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.doctor-banner__tag {
  font-size: 10px;
  padding: 2px 8px;
  background: #fff4e8;
  color: #e07b2a;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(224, 123, 42, 0.15);
}

.doctor-banner__hospital {
  font-size: 13px;
  color: var(--color-hospital);
  font-weight: 600;
}

.gender-group {
  display: flex;
  gap: 12px;
}

.gender-option {
  flex: 1;
  cursor: pointer;
}

.gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option__text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

.gender-option input:checked + .gender-option__text {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(76, 175, 138, 0.12);
}

.gender-option:active .gender-option__text {
  transform: scale(0.98);
}
