/* India Visa — Main CSS (Cairo font, RTL, light theme) */

:root {
    --primary: #1A8C7F;
    --primary-dark: #156F66;
    --primary-light: #E8F5F2;
    --secondary: #D4A853;
    --bg: #F4FAF8;
    --surface: #FFFFFF;
    --text: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --info: #0EA5E9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-sm { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ============ Header ============ */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    font-size: 18px;
}
.logo-mark {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}
.nav a:hover { color: var(--primary); text-decoration: none; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}
.btn-secondary {
    background: var(--secondary);
    color: #fff;
}
.btn-secondary:hover { background: #B8923D; color: #fff; }
.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg); }
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-block { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ============ Cards ============ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.card-lg { padding: 32px; }

/* ============ Forms ============ */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.form-label .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 140, 127, 0.12);
}
.form-control.is-invalid {
    border-color: var(--danger);
}
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 13px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236B7280' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }

/* ============ Alerts ============ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    border: 1px solid;
    font-size: 14px;
}
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-warning { background: #FFFBEB; border-color: #FCD34D; color: #92400E; }
.alert-danger  { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ============ Visa Types Grid ============ */
.visa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
.visa-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}
.visa-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.visa-card .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}
.visa-card .price-unit {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}
.visa-card h3 { margin: 0 0 8px; font-size: 20px; }
.visa-card ul { list-style: none; padding: 0; margin: 16px 0; }
.visa-card li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.visa-card li::before {
    content: '✓';
    color: var(--primary);
    margin-left: 8px;
    font-weight: 700;
}

/* ============ Hero ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    padding: 60px 0;
    text-align: center;
}
.hero h1 { font-size: 36px; margin: 0 0 12px; color: var(--text); }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 24px; }

/* ============ Footer ============ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
}
.footer-grid h4 { color: var(--text); font-size: 15px; margin: 0 0 12px; }
.footer-grid a { color: var(--text-muted); display: block; padding: 4px 0; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
}

/* ============ Stepper ============ */
.stepper {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 36px;
    position: relative;
    padding: 0 20px;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 40px;
    left: 40px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}
.step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 6px;
}
.step.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.step.completed .step-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.step-label { font-size: 12px; color: var(--text-muted); }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* ============ Status badge ============ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* ============ Tables ============ */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table th, .table td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.table th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text);
}
.table tr:last-child td { border-bottom: none; }

/* ============ Utilities ============ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .nav { gap: 16px; }
    .nav a { font-size: 14px; }
}
