/* ===== NBO Style - Global CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary: #0047BA;
    --primary-light: #3D7FDB;
    --primary-dark: #003494;
    --primary-25: #B3CFEF;
    --primary-50: #E8F0FE;
    --primary-0: #F0F5FF;
    --secondary: #00843D;
    --accent: #CE1126;
    --bg-light: #F8FAFC;
    --bg-white: #ffffff;
    --bg-dark: #0A1628;
    --bg-cards-secondary: #E8F0FE;
    --text-dark: #1E293B;
    --text-sub: #475569;
    --text-muted: #6B7280;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --border-default: #E2E8F0;
    --input-border: #CBD5E1;
    --input-text: #94A3B8;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Tajawal", system-ui, -apple-system, sans-serif;
    direction: rtl;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navbar ===== */
.tameeni-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tameeni-nav .logo {
    height: 40px;
}

.tameeni-nav .nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tameeni-nav .nav-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #002B7A);
}

/* ===== Buttons ===== */
.btn-tameeni {
    background: linear-gradient(135deg, #0047BA, #003494);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 71, 186, 0.3);
    font-family: "Tajawal", system-ui, sans-serif;
}

.btn-tameeni:hover {
    background: linear-gradient(135deg, #003494, #002B7A);
    transform: translateY(-1px);
}

.btn-tameeni:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Form Styles ===== */
.tameeni-form-container {
    background: var(--bg-light);
    padding: 30px 16px;
    min-height: 60vh;
}

.tameeni-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.tameeni-form .form-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tameeni-form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.tameeni-form .form-control,
.tameeni-form .form-select {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    transition: all 0.3s;
    height: 50px;
    font-family: "Tajawal", system-ui, sans-serif;
    direction: rtl;
    color: var(--text-dark);
}

.tameeni-form .form-control:focus,
.tameeni-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.1);
    outline: none;
}

.tameeni-form ::placeholder {
    color: #CBD5E1 !important;
    font-size: 13px;
}

/* ===== Step Indicator ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 8px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 71, 186, 0.2);
}

.step-dot.completed {
    background: var(--secondary);
}

/* ===== Footer ===== */
.tameeni-footer {
    background: #0A1628;
    color: white;
    padding: 20px 16px;
    margin-top: 40px;
    text-align: center;
}

.tameeni-footer .footer-logo {
    height: 32px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tameeni-footer p {
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.7;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 11px;
    color: #64748B;
    text-align: center;
}

/* ===== Nafath Page ===== */
.nafath-container {
    text-align: center;
    padding: 40px 20px;
}

.nafath-container .nafath-logo {
    height: 40px;
    margin-bottom: 24px;
}

.nafath-container h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.nafath-container .nafath-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.nafath-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary);
    border-radius: 20px;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0 30px;
    background: linear-gradient(135deg, var(--primary-0), var(--primary-50));
}

.nafath-timer {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.nafath-timer span {
    color: var(--primary);
    font-weight: 700;
}

/* ===== Card Page Styles ===== */
.insurance-card {
    background: linear-gradient(135deg, #0047BA 0%, #003494 50%, #002B7A 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 20px 16px;
}

.insurance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.insurance-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.insurance-card .card-logo {
    height: 24px;
    filter: brightness(0) invert(1);
}

.insurance-card .card-type {
    font-size: 11px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.insurance-card .card-info {
    position: relative;
    z-index: 1;
}

.insurance-card .card-label {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.insurance-card .card-value {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.insurance-card .card-number {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin: 16px 0;
    position: relative;
    z-index: 1;
}

.insurance-card .card-footer-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* ===== Captcha ===== */
.captcha-container {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 56px;
}

.captcha-container input {
    border: none;
    flex: 1;
    padding: 12px 14px;
    font-size: 14px;
    height: 100%;
    min-width: 0;
}

.captcha-container input:focus {
    outline: none;
}

.captcha-container img {
    height: 100%;
    min-width: 130px;
    width: 130px;
    object-fit: contain;
    padding: 4px 8px;
    background: var(--primary-50);
    border-right: 1.5px solid var(--border);
}

/* ===== Agreement Text ===== */
.agreement-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0;
    line-height: 1.7;
}

/* ===== Utility ===== */
.text-primary-g {
    color: var(--primary) !important;
}

.bg-primary-g {
    background-color: var(--primary) !important;
}

.mb-g {
    margin-bottom: 12px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .tameeni-form {
        max-width: 500px;
        margin: 0 auto;
    }
}
