/* ─────────────────────────────────────────────
   Tripply365 - التأشيرات - site.css
   ─────────────────────────────────────────────*/

:root {
    /* Override Bootstrap's own theme color so .text-primary/.border-primary/.bg-primary
       utilities (which reference --bs-primary-rgb internally) pick up the brand gold too. */
    --bs-primary: #c9a227;
    --bs-primary-rgb: 201, 162, 39;
    --bs-link-color: #a3811e;
    --bs-link-color-rgb: 163, 129, 30;
    --bs-link-hover-color: #c9a227;
    --bs-link-hover-color-rgb: 201, 162, 39;

    --primary:      #755704;
    --primary-light-accent: #917020;
    --gold:         #c9a227;
    --gold-light:   #e3c465;
    --primary-dark: #5c4403;
    --primary-light:#fbf3df;
    --accent:       #c9a227;
    --success:      #10b981;
    --danger:       #ef4444;
    --warning:      #f59e0b;
    --dark:         #1B1C1C;
    --navy-deep:    #0a1526;
    --navy:         #0f2038;
    --navy-light:   #16304f;
    --body-bg:      #F8F7F2;
    --card-bg:      #ffffff;
    --border:       #D1C5B2;
    --text-muted:   #4E4638;
    --text-light:   #f4f1e8;
    --radius:       12px;
    --shadow:       0 4px 20px rgba(31,25,10,.05);
    --shadow-md:    0 10px 30px rgba(31,25,10,.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background: var(--body-bg);
    color: var(--dark);
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .fw-800 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* ── Utilities ──────────────────────────────── */
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-600 { font-weight: 600; }

/* ── Navbar ─────────────────────────────────── */
#mainNav {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    padding: 12px 0;
}
.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary) !important;
}
.brand-icon { margin-inline-start: 4px; }
.nav-link {
    font-weight: 500;
    color: #374151 !important;
    transition: color .2s;
    padding: 6px 14px !important;
    border-radius: 8px;
}
.nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.user-avatar-sm {
    width: 32px; height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}

/* ── Buttons ────────────────────────────────── */
.btn-primary {
    background-image: linear-gradient(to left, var(--primary), var(--primary-light-accent));
    border-color: var(--primary);
    font-weight: 700; border-radius: 2rem;
    color: #fff;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(117,87,4,.25);
}
.btn-primary:hover { filter: brightness(1.08); border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(117,87,4,.35); color: #fff; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); font-weight: 700; border-radius: 2rem; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn { border-radius: 2rem; }

/* ── Cards ──────────────────────────────────── */
.card {
    border: 1px solid hsla(37,25%,76%,.4);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ── Hero Section ───────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 55%, var(--navy-deep) 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.25; }
.hero p { font-size: 1.1rem; opacity: .85; }
.hero .hero-badge {
    display: inline-block; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px; padding: 6px 16px;
    font-size: 13px; font-weight: 600; margin-bottom: 20px;
}

/* ── Stat Cards ─────────────────────────────── */
.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light-accent));
    border-radius: 1rem;
    padding: 28px;
    color: #fff;
    position: relative; overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute; inset-inline-start: -20px; top: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.stat-card .stat-icon { font-size: 2rem; opacity: .7; }
.stat-card .stat-value { font-size: 2.2rem; font-weight: 800; }
.stat-card .stat-label { opacity: .8; font-size: 13px; }

/* ── Country Cards ──────────────────────────── */
.country-card {
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.country-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.country-card .country-flag { width: 48px; height: 36px; border-radius: 4px; object-fit: cover; }
.country-card .visa-count-badge {
    background: var(--primary-light); color: var(--primary);
    padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600;
}

/* ── Status Badges ──────────────────────────── */
.status-badge {
    padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.status-Pending    { background: #fef3c7; color: #92400e; }
.status-UnderReview{ background: #dbeafe; color: #1e40af; }
.status-Approved   { background: #d1fae5; color: #065f46; }
.status-Rejected   { background: #fee2e2; color: #991b1b; }
.status-Cancelled  { background: #f1f5f9; color: #475569; }
.status-DocumentsRequired { background: #fce7f3; color: #9d174d; }

/* ── Forms ──────────────────────────────────── */
.form-control, .form-select {
    border-radius: .5rem; border: 1.5px solid var(--border);
    padding: 10px 14px; font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.form-label { font-weight: 600; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }

/* ── Page header ────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-light));
    color: #fff; padding: 48px 0 40px;
    margin-bottom: 40px;
}
.page-header h1 { font-size: 2rem; font-weight: 800; margin: 0; }

/* ── Application timeline ───────────────────── */
.timeline { position: relative; padding-inline-end: 32px; }
.timeline::before {
    content: ''; position: absolute; inset-inline-end: 12px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot {
    width: 24px; height: 24px; border-radius: 50%; background: var(--gold);
    position: absolute; inset-inline-end: -32px; top: 2px; display: flex;
    align-items: center; justify-content: center;
    border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold);
}

/* ── Payment card preview ───────────────────── */
.card-visual {
    background: linear-gradient(135deg, var(--gold), var(--navy-deep));
    border-radius: 16px; padding: 28px; color: #fff;
    font-family: 'Courier New', monospace;
    box-shadow: 0 8px 32px rgba(10,21,38,.4);
    position: relative; overflow: hidden; min-height: 180px;
}
.card-visual::before {
    content: ''; position: absolute; inset-inline-start: -30px; top: -30px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.06); border-radius: 50%;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
    background: var(--navy-deep); color: #a9b8cc;
}
.site-footer a:hover { color: #fff !important; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 60px 0 50px; }
    .stat-card { padding: 20px; }
}
