/* ==========================================================================
   IRCHAD FOR YOU — Authentication & Orientation Wizard CSS
   ========================================================================== */

/* ── 1. شبكة كارت الدخول (Login Card Grid) ──────────────────────────────── */
.auth-card-grid {
  width: 100%;
  max-width: 1050px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 1 !important;
  transform: none !important;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
  .auth-card-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* العمود الداكن الأيسر للعلامة التجارية */
.auth-branding-col {
  background-color: var(--ink-color);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFF;
  position: relative;
}

.auth-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.auth-branding-title {
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #FFF;
}

.auth-branding-desc {
  font-size: 0.95rem;
  color: #FFFFFF;
  opacity: 1;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.auth-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.auth-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.auth-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* العمود الأيمن لنموذج الدخول */
.auth-form-col {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--ink-color);
  font-family: var(--font-display);
}

.auth-form-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}


/* ── 2. معالج التوجيه وإنشاء الحساب (Orientation Wizard) ───────────────── */
.signup-wizard-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.wizard-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: right;
  opacity: 1 !important;
  transform: none !important;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink-color);
  margin: 0;
}

.wizard-header p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}

.wizard-progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard-progress-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-color);
}

.wizard-progress-line-bg {
  height: 6px;
  background-color: var(--bg-color);
  border-radius: 3px;
  width: 100%;
  overflow: hidden;
}

.wizard-progress-line-fill {
  height: 100%;
  background-color: var(--ink-color);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-body {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn 0.3s ease;
}

.wizard-step-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* شبكة اختيار المجال في المعالج */
.domain-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (max-width: 650px) {
  .domain-selection-grid {
    grid-template-columns: 1fr;
  }
}

.domain-select-card {
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.domain-select-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.domain-select-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.domain-select-card.active {
  border-color: var(--card-theme-color);
  background-color: var(--card-theme-bg);
}

.domain-select-card.active::before {
  background-color: var(--card-theme-color);
}

.domain-select-card.psych {
  --card-theme-color: var(--domain-psych);
  --card-theme-bg: rgba(147, 51, 234, 0.03);
}

.domain-select-card.edu {
  --card-theme-color: var(--domain-edu);
  --card-theme-bg: rgba(217, 119, 6, 0.03);
}

.domain-select-card.speech {
  --card-theme-color: var(--domain-speech);
  --card-theme-bg: rgba(14, 165, 233, 0.03);
}

.domain-select-card.family {
  --card-theme-color: var(--domain-family);
  --card-theme-bg: rgba(22, 163, 74, 0.03);
}

.domain-select-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domain-select-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-color);
}

.domain-select-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background-color: var(--card-theme-color);
  color: var(--white);
}

.domain-select-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

.wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* ── 3. شارات الحقول الأساسية وغير الأساسية (Required vs Optional Badges) ── */
.field-badge {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.field-badge.required {
  background-color: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.field-badge.optional {
  background-color: rgba(100, 116, 139, 0.08);
  color: var(--ink-muted);
  border: 1px solid var(--border-color);
}

.req-star {
  color: #dc2626;
  font-weight: bold;
  margin-right: 0.2rem;
}

.opt-tag {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: normal;
  margin-right: 0.35rem;
}

/* ── 4. Modal استعادة وتعيين كلمة المرور (Forgot Password Modal) ────────── */
.consultation-details-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.consultation-details-modal.open {
  display: flex;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-modal-content {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
