.form-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding-block: var(--spacing-2xl);
}

.form-card {
  width: min(100%, 540px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  padding: var(--spacing-xl);
}

.form-head {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.form-head p {
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: var(--spacing-md);
}

.field {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 7px;
}

.field label {
  color: var(--text-secondary);
  font-weight: var(--font-weight-semibold);
}

.required {
  color: var(--accent-pink);
}

.input,
.select,
.textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(251, 227, 238, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: rgba(63, 13, 36, 0.74);
  padding: 12px 13px;
  transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

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

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent-pink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(251, 227, 238, 0.12);
}

.field.error .input,
.field.error .select,
.field.error .textarea {
  border-color: var(--danger);
}

.field.success .input,
.field.success .select,
.field.success .textarea {
  border-color: var(--success);
}

.field-error {
  min-height: 18px;
  color: #ffb4b4;
  font-size: var(--extra-small);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
}

.checkbox-row input {
  margin-top: 7px;
  accent-color: var(--accent-pink);
}

.form-message {
  display: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: var(--small);
}

.form-message.show {
  display: block;
}

.form-message.success {
  color: #d9fbea;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.form-message.error {
  color: #ffd7d7;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.phone-input-group {
  display: flex;
  gap: 10px;
}

.phone-input-group .select {
  width: 140px;
  flex-shrink: 0;
}

.phone-input-group .input {
  flex: 1;
}

@media (max-width: 480px) {
  .phone-input-group {
    flex-direction: column;
    gap: 7px;
  }
  .phone-input-group .select {
    width: 100%;
  }
}

/* ═══════════════════════════════════════
   Rating Modal — Soft Rating Prompt
   ═══════════════════════════════════════ */

/* Body scroll lock while modal is open */
body.rating-modal-open {
  overflow: hidden;
}

/* Full-screen overlay */
.rating-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 0, 15, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.rating-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Card */
.rating-card {
  width: min(100%, 380px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(168deg, #4a1230 0%, var(--bg-primary) 100%);
  border: 1px solid rgba(251, 227, 238, 0.18);
  border-radius: 16px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(251, 227, 238, 0.06) inset;
  transform: translateY(24px) scale(0.96);
  transition: transform 300ms ease;
}

.rating-modal-overlay.is-visible .rating-card {
  transform: translateY(0) scale(1);
}

/* Title */
.rating-card-title {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.3;
}

/* Subtitle */
.rating-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

/* Stars row */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
  direction: ltr;
}

/* Individual star button */
.rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.16);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease, text-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.rating-star:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}

/* Hover preview on desktop */
.rating-star.is-previewed {
  color: rgba(255, 209, 102, 0.5);
}

/* Selected / filled state */
.rating-star.is-filled {
  color: #FFD166;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.45);
}

.rating-star:active {
  transform: scale(0.9);
}

/* Star label */
.rating-star-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Hint message (shown when clicking submit without rating) */
.rating-hint {
  font-size: 12px;
  color: #ffb4b4;
  min-height: 18px;
  margin-bottom: 4px;
  transition: opacity 200ms ease;
}

.rating-hint:empty {
  opacity: 0;
}

/* Action buttons */
.rating-actions {
  display: grid;
  gap: 10px;
}

/* Primary button */
.rating-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #A43163, #870C46);
  color: #fff;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  font-family: inherit;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 14px rgba(135, 12, 70, 0.35);
}

.rating-primary:hover {
  background: linear-gradient(135deg, #b8396f, #A43163);
  box-shadow: 0 6px 20px rgba(135, 12, 70, 0.45);
  transform: translateY(-1px);
}

.rating-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(135, 12, 70, 0.3);
}

.rating-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Secondary (skip) button */
.rating-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(251, 227, 238, 0.14);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  font-family: inherit;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.rating-skip:hover {
  color: var(--text-primary);
  background: rgba(251, 227, 238, 0.06);
  border-color: rgba(251, 227, 238, 0.22);
}

/* Success message */
.rating-success-msg {
  color: var(--success);
  font-size: var(--small);
  font-weight: var(--font-weight-semibold);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.rating-success-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Login page back link */
.login-back-link {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--small);
  padding-top: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.login-back-link:hover {
  color: var(--accent-pink);
}

/* Breadcrumb inside form-head */
.form-head .breadcrumb {
  justify-content: center;
  margin-bottom: var(--spacing-md);
}
