/* ==========================================================================
   forms.css — صفحه‌های فرم (ثبت ملک، درخواست اختصاصی، ورود مشاور)
   ========================================================================== */

/* ---------- سربرگ فرم ---------- */
.submit-head,
.pr-hero {
  padding: 16px 14px;
  border-radius: var(--r-card-lg);
  background: linear-gradient(165deg, #fffdf8, #f6ecdb);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.submit-head h1,
.pr-hero h1 {
  font-size: 19px;
  text-align: start;
  margin-bottom: 6px;
  line-height: 1.65;
}

.submit-head p,
.pr-hero p {
  font-size: 12.5px;
  line-height: 2;
  color: var(--ref-hero-sub-color);
}

/* ---------- ویزارد ---------- */
.wizard-panel[hidden] { display: none; }

.wizard-nav {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 4px;
}

.wizard-nav .btn { width: 100%; }

.wizard-nav .btn[data-prev] { grid-column: 1; }

.wizard-nav[data-step="1"] .btn[data-prev] { display: none; }
.wizard-nav[data-step="1"] { grid-template-columns: 1fr; }

/* انتخاب نوع فایل */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--sadaf-line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sadaf-text);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.choice svg { width: 22px; height: 22px; color: var(--sadaf-gold); }

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

.choice:has(input:checked) {
  border-color: var(--sadaf-gold);
  background: #fdf6e8;
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--sadaf-gold);
  outline-offset: 2px;
}

/* ---------- تب‌های درخواست اختصاصی ---------- */
.pr-tabs { margin-bottom: 12px; }

.panel { display: none; }
.panel.active { display: block; }

/* ---------- حالت موفقیت ---------- */
.success p {
  font-size: 12.5px;
  line-height: 2;
  color: var(--sadaf-muted);
  max-width: 34ch;
}

/* ---------- ورود مشاور ---------- */
.advisorAuthBox {
  padding: 18px 14px;
  border-radius: var(--r-card-lg);
  background: var(--sadaf-card);
  box-shadow: var(--shadow);
}

.advisorAuthBox h1 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 6px;
}

.advisorAuthBox h2 {
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--sadaf-muted);
  font-weight: 600;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #f2ebe0;
  margin-bottom: 16px;
}

.auth-switch button {
  min-height: 40px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sadaf-muted);
}

.auth-switch button[aria-selected="true"] {
  background: #fff;
  color: var(--sadaf-text);
  box-shadow: 0 2px 8px rgba(55, 36, 16, .07);
}

.auth-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.95;
  color: var(--sadaf-muted);
  text-align: center;
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 380px) {
  .submit-head h1,
  .pr-hero h1 { font-size: 17px; }
  .choice-grid { grid-template-columns: 1fr; }
  .advisorAuthBox { padding: 15px 12px; }
}
