/* ===== Gonsure Style - Global CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --primary: #0088eb;
    --primary-light: #7c91ff;
    --primary-dark: #1a35cc;
    --primary-25: #d3daff;
    --primary-50: #E5E9FF;
    --primary-0: #FAFBFF;
    --secondary: #1D7AFC;
    --accent: #7c91ff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-cards-secondary: #eff6ff;
    --text-dark: #000;
    --text-sub: #696a8c;
    --text-muted: #696a8c;
    --text-light: #94a3b8;
    --border: #cfd7ff;
    --border-default: #dee2e6;
    --input-border: #D3DAFF;
    --input-text: #D3D6D6;
    --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: "Rubik", sans-serif;
    direction: rtl;
}

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

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

/* ===== Navbar ===== */
.gonsure-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gonsure-nav .logo {
    height: 24px;
}

.gonsure-nav .nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.gonsure-nav .nav-btn:hover {
    background: var(--primary-dark);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-0) 0%, var(--bg-cards-secondary) 50%, var(--primary-0) 100%);
    padding: 30px 20px 40px;
    text-align: center;
}

.hero-section h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-section h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-section p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.hero-section .hero-img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
}

/* ===== Service Cards ===== */
.services-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

.service-card {
    min-width: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.service-card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card .card-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== Partners Strip ===== */
.partners-strip {
    padding: 16px;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.partners-strip::-webkit-scrollbar {
    display: none;
}

.partners-strip img {
    height: 30px;
    margin: 0 12px;
    opacity: 0.6;
    filter: grayscale(30%);
}

/* ===== Features Section ===== */
.features-section {
    padding: 30px 16px;
}

.features-section .section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.features-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.feature-card {
    background: var(--primary-0);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary-25);
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-50), var(--bg-cards-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===== Buttons ===== */
.btn-gonsure {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-gonsure:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-gonsure:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.btn-gonsure-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-gonsure-outline:hover {
    background: var(--primary);
    color: white;
}

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

.gonsure-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
}

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

.gonsure-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.gonsure-form .form-control,
.gonsure-form .form-select {
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s;
    height: 46px;
    font-family: "Rubik", sans-serif;
    direction: rtl;
}

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

.gonsure-form ::placeholder {
    color: var(--input-text) !important;
    font-size: 13px;
}

/* ===== Tabs ===== */
.gonsure-tabs {
    display: flex;
    background: var(--primary-0);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--primary-25);
}

.gonsure-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.gonsure-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

/* ===== Radio Tabs (استمارة / بطاقة جمركية) ===== */
.radio-tabs {
    display: flex;
    background: var(--primary-0);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--primary-25);
}

.radio-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.radio-tab.active {
    background: var(--primary);
    color: white;
}

.radio-tab input[type="radio"] {
    accent-color: white;
}

/* ===== Service Type Icons ===== */
.service-types {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    margin: -24px 16px 0;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.service-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.service-type-item i {
    font-size: 22px;
    color: var(--text-light);
    transition: color 0.3s;
}

.service-type-item.active i {
    color: var(--primary);
}

.service-type-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.service-type-item.active span {
    color: var(--primary);
}

.service-type-item.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

/* ===== Step Indicator ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 8px;
}

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

.step-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

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

/* ===== Footer ===== */
.gonsure-footer {
    background: var(--bg-dark);
    color: white;
    padding: 30px 16px;
    margin-top: 40px;
}

.gonsure-footer .footer-logo {
    height: 28px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.gonsure-footer p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.7;
}

.gonsure-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.gonsure-footer .footer-links a {
    font-size: 12px;
    color: var(--text-light);
    transition: color 0.3s;
}

.gonsure-footer .footer-links a:hover {
    color: white;
}

.gonsure-footer .social-icons {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.gonsure-footer .social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.gonsure-footer .social-icons a:hover {
    background: var(--primary);
}

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.payment-icons img {
    height: 24px;
    opacity: 0.7;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
}

/* ===== Card Page Styles ===== */
.insurance-card {
    background: linear-gradient(135deg, #0088eb 0%, #1a35cc 50%, #0f1f80 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: center;
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    overflow: hidden;
}

.captcha-container input {
    border: none;
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    height: 46px;
}

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

.captcha-container img {
    height: 46px;
    padding: 4px;
}

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

/* ===== Companies Section ===== */
.companies-section {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    margin: 20px 16px;
}

.companies-section img {
    height: 36px;
}

/* ===== 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;
}

/* ===== 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) {
    .hero-section h1 {
        font-size: 32px;
    }
    
    .services-grid {
        justify-content: center;
    }
    
    .gonsure-form {
        max-width: 500px;
        margin: 0 auto;
    }
}
