﻿/* =========================================
   Rise Platform - Design System
   Assets/CSS/styles.css
   ========================================= */

/* ── Variables ── */
:root {
  --navy: #0c1e3c;
  --navy-mid: #122649;
  --navy-light: #1a3560;
  --gold: #c9960c;
  --gold-light: #e8b84b;
  --gold-pale: #f5e4a8;
  --cream: #faf6ed;
  --cream-dark: #f0e8d4;
  --text-main: #1a1209;
  --text-muted: #5c4a2a;
  --white: #ffffff;
  --card-shadow: 0 4px 32px rgba(12, 30, 60, 0.10);
  --success: #28a745;
  --error: #dc3545;
  --border: #ddd;
  --border-light: #ccc;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', serif;
  background: var(--cream);
  color: var(--text-main);
  direction: rtl;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ── Form Card ── */
.form-card {
  max-width: 500px;
  margin: 120px auto 50px;
  padding: 35px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.form-card h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-card p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-card-wide {
  max-width: 600px;
}

/* ── Page Container ── */
.page-container {
  max-width: 1100px;
  margin: 100px auto 50px;
  padding: 0 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 8px;
  padding: 12px 24px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(201, 150, 12, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 150, 12, 0.4);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-light);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 150, 12, 0.08);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--white);
  color: var(--text-main);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 12, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
  font-size: 0.9rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c4a2a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.form-group select[dir='rtl'] {
  background-position: right 14px center;
  padding-left: 14px;
  padding-right: 36px;
}

/* ── Password Toggle ── */
.password-container {
  display: flex;
  align-items: center;
  position: relative;
}

.password-container input {
  flex: 1;
  padding-left: 60px;
}

.password-container input[dir='rtl'] {
  padding-left: 14px;
  padding-right: 60px;
}

.toggle-pwd {
  position: absolute;
  right: 14px;
  cursor: pointer;
  
  color: var(--gold);
  user-select: none;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(201, 150, 12, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.toggle-pwd:hover {
  background: rgba(201, 150, 12, 0.18);
}

[dir='rtl'] .toggle-pwd {
  right: auto;
  left: 14px;
}

/* ─ Phone Group ── */
.phone-group {
  display: flex;
  gap: 10px;
  flex-direction: row-reverse;
}

.phone-group select {
  flex: 0 0 150px;
  min-width: 0;
}

.phone-group input {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Full Name Group ── */
.full-name-group {
  display: flex;
  gap: 10px;
  flex-direction: row-reverse;
}

.full-name-group input {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
  display: block;
}

.alert-error {
  background: #fde8e8;
  color: var(--error);
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #e6f7ee;
  color: var(--success);
  border: 1px solid #c3e6cb;
}

/* ── Back Link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
}

.back-link:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ── Link Effect ── */
.btn-link-effect {
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
}

.btn-link-effect:hover {
  background: rgba(12, 30, 60, 0.08);
  transform: translateY(-1px);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(40, 167, 69, 0.12);
  color: var(--success);
}

.badge-gold {
  background: rgba(201, 150, 12, 0.15);
  color: var(--gold);
}

.badge-muted {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
}

.badge-navy {
  background: rgba(12, 30, 60, 0.1);
  color: var(--navy);
}

.badge-available {
  background: #e6f7ee;
  color: var(--success);
}

.badge-unavailable {
  background: #f8e6e6;
  color: var(--error);
}

/* ── Subject Tags ── */
.subject-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f9f6f0;
  color: var(--text-muted);
  border: 1px solid #e0d5c0;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* ── Avatars ── */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.avatar-lg {
  width: 70px;
  height: 70px;
  font-size: 1.6rem;
}

.avatar-xl {
  width: 120px;
  height: 120px;
  font-size: 2rem;
}

.avatar-gold {
  background: var(--gold-light);
}

.avatar-cream {
  background: var(--cream-dark);
}

.avatar-navy {
  background: var(--navy);
  color: var(--gold-light);
}

.avatar-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Noto Naskh Arabic', serif;
}

/* ── Section Layout ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 150, 12, 0.1);
  border: 1px solid rgba(201, 150, 12, 0.3);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-card {
    padding: 25px 20px;
    margin: 100px auto 40px;
  }

  .full-name-group {
    flex-direction: column;
  }

  .phone-group {
    flex-direction: column;
  }

  .phone-group select {
    flex: 1;
  }

  .page-container {
    padding: 0 12px;
  }
}

/* ── Utility ── */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

/* ── Interactive Elements ── */
a,
button,
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="radio"],
label[for],
.clickable,
[onclick] {
  cursor: pointer;
}



textarea,
input,
select {
  font-family: 'Tajawal';
}