/* --- تعریف فونت وریبل ایران‌سنس ایکس (IRANSansX Variable) --- */
/* نکته مهم: فایل فونت وریبل را با نام IRANSansX-Variable.woff2 در پوشه static/fonts قرار دهید */

@font-face {
    font-family: 'IRANSansX';
    font-style: normal;
    /* این خط به مرورگر می‌گوید که این فونت تمام وزن‌های بین ۱۰۰ تا ۹۰۰ را دارد */
    font-weight: 100 900; 
    src: url('./static/fonts/IRANSansXV.woff2') format('woff2');
    font-display: fallback;
}
/* -------------------------------------------------------------------------- */
/* 2. VARIABLES                                  */
/* -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --khanoumi-pink: #692a96; 
    --khanoumi-pink-hover: #561e7d; 
    --khanoumi-pink-light: #fbf4ff; 
    --khanoumi-pink-transparent: rgba(105, 42, 150, 0.08); 
    
    /* Accents */
    --discount-orange: #ff6a00; 
    --discount-shadow: rgba(255, 106, 0, 0.25);
    --success-green: #00c851;
    --success-bg: #e0f2f1;

    /* Typography & Layout */
    --text-dark: #2c2c2c;
    --text-light: #5e5e5e; 
    --white: #ffffff;
    --border-color: #f2edf5; 
    --shadow: 0 12px 32px var(--khanoumi-pink-transparent); 
    --radius-normal: 16px; 
    --radius-large: 24px;  
}

/* -------------------------------------------------------------------------- */
/* 3. GLOBAL RESET                               */
/* -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbb2dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--khanoumi-pink); }
::selection { background-color: var(--khanoumi-pink); color: var(--white); }

body {
    font-family: 'IRANSansX', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea, .btn {
    font-family: inherit; font-size: inherit; line-height: inherit;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
section { padding: 32px 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 40px; }
h3 { font-size: 1rem; }
p { color: var(--text-light); margin-bottom: 16px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------------------------- */
/* 4. COMPONENTS                                  */
/* -------------------------------------------------------------------------- */

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--radius-normal);
    text-decoration: none; font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; border: none; font-size: 1rem;
    text-align: center; direction: initial;
}
.btn--primary {
    background-color: var(--khanoumi-pink); color: var(--white);
    box-shadow: 0 4px 15px rgba(105, 42, 150, 0.2);
}
.btn--primary:hover {
    background-color: var(--khanoumi-pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 42, 150, 0.3);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
    background-color: var(--white); color: var(--khanoumi-pink);
    border: 1.5px solid var(--khanoumi-pink); width: 100%;
}
.btn--secondary:hover {
    background-color: var(--khanoumi-pink); color: var(--white);
    box-shadow: 0 4px 12px rgba(105, 42, 150, 0.15);
}
.btn--disabled {
    pointer-events: none; opacity: 0.8;
    background-color: #efefef; color: #9a9a9a;
    border: 1px solid rgba(0,0,0,0.05);
}
.btn.loading { position: relative; color: rgba(255,255,255,0.9); pointer-events: none; opacity: 0.95; }
.btn.loading::after {
    content: ""; position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); width: 16px; height: 16px;
    border-radius: 50%; border: 2px solid rgba(255,255,255,0.28);
    border-top-color: rgba(255,255,255,0.95);
    animation: spin 720ms linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes btn-pop {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-4px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}
.btn.animating { animation: btn-pop 380ms cubic-bezier(.2,.9,.3,1); }

/* --- Header & Logo --- */
.main-header { padding: 10px 0; background: var(--white); border-bottom: 1px solid var(--border-color); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--khanoumi-pink); text-decoration: none; position: relative; }
.logo__img { width: 150px; height: auto; object-fit: contain; display: block; }

/* --- Hero Banner --- */
.hero-banner { padding: 0; background-color: var(--khanoumi-pink-light); position: relative; overflow: hidden; }
.hero-banner__wrapper { position: relative; width: 100%; margin: 0 auto; }
.hero-banner__img { width: 100%; height: auto; display: block; object-fit: cover; }
.scroll-down-btn {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; background: rgba(255, 255, 255, 0.85);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); cursor: pointer;
    transition: background 0.3s; z-index: 10; animation: floatDown 2s infinite ease-in-out;
}
.scroll-down-btn:hover { background: #fff; }
.scroll-down-icon {
    width: 12px; height: 12px;
    border-right: 2px solid var(--khanoumi-pink);
    border-bottom: 2px solid var(--khanoumi-pink);
    transform: rotate(45deg); margin-top: -4px;
}
@keyframes floatDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Cards (General) --- */
.insurance-section { background-color: var(--white); }
.insurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--white); border-radius: var(--radius-large);
    box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.5);
    padding: 24px; display: flex; flex-direction: column;
    justify-content: space-between; transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: visible;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(105, 42, 150, 0.15); }
.card__illustration { width: 100%; height: 180px; border-radius: var(--radius-normal); margin-bottom: 20px; object-fit: contain; }
.card h3 { color: var(--khanoumi-pink); text-align: center; margin-bottom: 12px; }
.card p {
    font-size: 0.95rem; text-align: justify; flex-grow: 1; margin-bottom: 24px;
    color: var(--text-light); overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card__badge {
    position: absolute; top: -10px; left: 16px;
    background-color: var(--discount-orange); color: var(--white);
    padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    z-index: 5; box-shadow: 0 6px 15px var(--discount-shadow); border: 2px solid var(--white);
}

/* Coming Soon & Preregister Specifics */
.card--soon {
    opacity: 0.80; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease; background-color: #fcfcfc;
}
.card--soon .card__badge { background: #a0a0a0; border: 1px solid rgba(255,255,255,0.5); box-shadow: none; }

.cards-actions { text-align: center; margin: 32px 0; }

/* --- Features Section --- */
.features { background-color: var(--khanoumi-pink-light); background-image: linear-gradient(0deg, #fff 0%, #fbf4ff 100%); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-item {
    background: var(--white); padding: 24px; border-radius: var(--radius-normal);
    text-align: center; box-shadow: 0 8px 24px rgba(105, 42, 150, 0.06); transition: transform 0.3s ease;
}
.feature-item:hover { transform: translateY(-5px); }
.feature-item__icon { font-size: 2.5rem; color: var(--khanoumi-pink); margin-bottom: 16px; text-shadow: 0 0 30px rgba(105, 42, 150, 0.3); }

/* --- CTA Banner (Used in Index) --- */
.cta-banner {
    background-color: var(--khanoumi-pink);
    background-image: linear-gradient(110deg, #692a96 0%, #511878 100%);
    border-radius: var(--radius-large); padding: 50px 30px;
    text-align: center; margin: 40px 0; box-shadow: 0 20px 40px rgba(105, 42, 150, 0.25);
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
    background: rgba(255,255,255,0.05); border-radius: 50%; pointer-events: none;
}
.cta-banner h2 { color: var(--white); font-size: 1.8rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.95); max-width: 500px; margin: 0 auto 24px auto; }
.cta-form { display: flex; justify-content: center; gap: 12px; position: relative; z-index: 2; }
.cta-form input {
    padding: 14px 20px; font-family: 'IRANSansX', sans-serif;
    border: 2px solid transparent; border-radius: var(--radius-normal);
    width: 300px; font-size: 1rem; text-align: right; outline: none; transition: border-color 0.3s;
}
.cta-form input:focus { border-color: #cbb2dd; box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }
.cta-form .btn { background-color: var(--white); color: var(--khanoumi-pink); font-weight: 700; }
.cta-form .btn:hover { background-color: #fbf4ff; color: var(--khanoumi-pink-hover); }
.cta-status {
    margin-top: 10px; min-height: 1.25em; font-size: 0.95rem; text-align: center;
    opacity: 0; transform-origin: top; transition: opacity .22s ease, transform .22s ease;
    pointer-events: none; color: var(--white); font-weight: 500;
}
.cta-status.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cta-status.success { color: var(--success-bg); font-weight: 700; }

/* --- Footer --- */
.main-footer { text-align: center; padding: 30px 0; border-top: 1px solid var(--border-color); color: var(--text-light); font-size: 0.9rem; background-color: #fafafa; }


/* ==========================================================================
   NEW STYLES: Pricing Tables & Preregister Form (Added for Pet Insurance)
   ========================================================================== */

/* Pricing Grid */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 40px;
}

/* NEW: Horizontal Scroll Container for 5 Plans (Women's Insurance) */
.pricing-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px 40px 5px; /* Bottom padding for shadow/hover space */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
}

/* Ensure standard pricing card works inside flex container */
.pricing-scroll-container .pricing-card {
    flex: 0 0 300px; /* Fixed width for cards in scroll view */
    scroll-snap-align: center;
    height: auto; /* Full height */
}

/* Custom Scrollbar for the pricing container */
.pricing-scroll-container::-webkit-scrollbar { height: 8px; }
.pricing-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.pricing-scroll-container::-webkit-scrollbar-thumb { background: var(--khanoumi-pink-hover); border-radius: 4px; }

/* Show hint on mobile only */
@media (max-width: 768px) {
    .mobile-hint { display: block !important; }
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    position: relative;
    display: flex; flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(105, 42, 150, 0.1);
    border-color: var(--khanoumi-pink);
}

.pricing-card--featured {
    border-color: var(--khanoumi-pink);
    background-color: #fcf6ff;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(105, 42, 150, 0.15);
}
.pricing-card--featured:hover { transform: scale(1.05) translateY(-8px); }

/* In scroll container, reset scale to avoid cutting off, just use shadow/border */
.pricing-scroll-container .pricing-card--featured {
    transform: none;
    border-width: 3px;
    background-color: var(--khanoumi-pink-light)/* Light pink for women's featured */
}
.pricing-scroll-container .pricing-card--featured:hover {
    transform: translateY(-5px);
}

.pricing-card__title {
    color: var(--text-light); font-size: 1.1rem; margin-bottom: 8px;
}
.pricing-card__price {
    font-size: 1.8rem; font-weight: 800; color: var(--khanoumi-pink);
    margin-bottom: 10px;
}
.pricing-card__unit { font-size: 0.9rem; font-weight: 400; color: var(--text-light); }

.pricing-card__limit {
    background: rgba(105, 42, 150, 0.06);
    color: var(--khanoumi-pink);
    padding: 8px 12px; border-radius: 12px;
    font-weight: 700; margin: 16px 0 24px;
    display: inline-block;
}

.pricing-card__features {
    list-style: none; text-align: right; padding: 0;
    margin-bottom: 24px; flex-grow: 1;
}
.pricing-card__features li {
    margin-bottom: 12px; font-size: 0.9rem; color: var(--text-dark);
    display: flex; align-items: center; gap: 8px;
}
.pricing-card__features li::before {
    content: '✓'; color: var(--success-green); font-weight: bold;
}

/* Extended Form Styles */
.register-section { background-color: #fafafa; padding: 60px 0; }
.form-card {
    background: var(--white);
    max-width: 800px; margin: 0 auto;
    padding: 40px; border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.form-group--full { grid-column: span 2; }

.form-label { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.form-control {
    padding: 14px 16px; border: 2px solid var(--border-color);
    border-radius: var(--radius-normal); font-family: inherit; font-size: 1rem;
    outline: none; transition: all 0.2s; width: 100%;
}
.form-control:focus {
    border-color: var(--khanoumi-pink);
    box-shadow: 0 0 0 4px var(--khanoumi-pink-transparent);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* Radio Buttons/Health Cert */
.radio-group { display: flex; gap: 20px; margin-top: 5px; }
.radio-label {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.radio-label input { accent-color: var(--khanoumi-pink); width: 18px; height: 18px; }

/* -------------------------------------------------------------------------- */
/* 5. MEDIA QUERIES                            */
/* -------------------------------------------------------------------------- */

/* ----- DESKTOP (min-width: 992px) ----- */
@media (min-width: 992px) {
    .insurance-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }
    .insurance-grid > .card { grid-column: span 2; }
    .insurance-grid > .card--wide { grid-column: span 3 !important; }
    .insurance-grid > .card:nth-child(1),
    .insurance-grid > .card:nth-child(2) { grid-column: span 3; }

    .card--wide .card__content-wrapper { display: flex; align-items: center; gap: 20px; }
    .card--wide .card__text { flex: 1; text-align: right; }
    .card--wide .card__text h3 { text-align: right; }
    .card--wide .card__text p { text-align: justify; }
    .card--wide .card__illustration { flex-basis: 200px; height: 150px; margin-bottom: 0; }
}

/* ----- TABLET (max-width: 992px) ----- */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .insurance-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .insurance-grid > .card--wide { grid-column: span 2 !important; }
    
    .card--wide .card__content-wrapper { display: flex; align-items: center; gap: 20px; }
    .card--wide .card__text { flex: 1; text-align: right; }
    .card--wide .card__illustration { flex-basis: 200px; height: 150px; margin-bottom: 0; }
    
    /* Pricing on tablet: stack them */
    .pricing-card--featured { transform: none; }
    .pricing-card--featured:hover { transform: translateY(-8px); }
}

/* ----- MOBILE (max-width: 768px) ----- */
@media (max-width: 768px) {
    body { font-size: 15px; }
    section { padding: 24px 0; }
    .main-header .btn { padding: 8px 16px; font-size: 0.9rem; }
    .logo__img { width: 110px; }
    
    .hero-banner__img { height: auto; object-fit: contain; }
    .scroll-down-btn { width: 38px; height: 38px; bottom: 15px; }

    .insurance-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }
    
    .insurance-grid .card {
        display: grid; 
        min-height: auto; 
        padding: 12px; 
        grid-template-columns: 90px 1fr; 
        grid-template-rows: auto auto auto; 
        column-gap: 8px; 
        align-items: start; direction: ltr;
        border-radius: 20px; 
        grid-column: span 6 !important; 
    }

    .insurance-grid .card--wide, 
    .insurance-grid .card--soon {
        grid-column: span 1; 
    }
    .insurance-grid .card--wide .card__content-wrapper,
    .insurance-grid .card--wide .card__text { display: contents; }
    
    .insurance-grid .card__badge {
        top: -8px; left: 10px; padding: 2px 8px; font-size: 0.75rem; box-shadow: none;
    }
    .insurance-grid .card__illustration {
        grid-column: 1; grid-row: 1 / span 2;
        width: 90px; height: 90px;
        border-radius: 12px; background-color: #f8f8f8;
        margin-bottom: 0;
    }
    .insurance-grid .card h3 {
        grid-column: 2; grid-row: 1;
        direction: rtl; text-align: right; margin: 0; font-size: 1rem;
    }
    .insurance-grid .card p {
        grid-column: 2; grid-row: 2;
        direction: rtl; text-align: justify; margin: 0 0 8px 0; font-size: 0.85rem;
    }
    .insurance-grid .card .btn {
        grid-column: 1 / -1; grid-row: 3;
        justify-self: center; width: 100%; font-size: 0.9rem;
    }
    
    .cta-form { flex-direction: column; align-items: center; width: 100%; }
    .cta-form input, .cta-form .btn { width: 100%; max-width: 400px; }

    /* Form Mobile */
    .form-grid { grid-template-columns: 1fr; }
    .form-group--full { grid-column: span 1; }
    .form-card { padding: 24px 16px; }
}

/* ==========================================================================
   MODAL & TABLE STYLES (Added for Women's Insurance Detail)
   ========================================================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1; visibility: visible;
}

/* Modal Content Box */
.modal-content {
    background-color: var(--white);
    width: 100%; max-width: 900px;
    max-height: 90vh; overflow-y: auto;
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close-btn {
    position: absolute; top: 15px; left: 20px; /* Left because of RTL */
    background: transparent; border: none;
    font-size: 2rem; line-height: 1; cursor: pointer;
    color: var(--text-light); transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--discount-orange); }

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-normal);
    border: 1px solid var(--border-color);
}

.coverage-table {
    width: 100%; border-collapse: collapse; min-width: 600px; /* Force scroll on small screens */
    font-size: 0.95rem;
}

.coverage-table th, .coverage-table td {
    padding: 16px; text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.coverage-table th {
    background-color: #fce4ec; /* Light pink header */
    color: var(--khanoumi-pink);
    font-weight: 700;
    white-space: nowrap;
}

.coverage-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.coverage-table tbody tr:hover {
    background-color: #fbf4ff; /* Highlight row on hover */
}

.coverage-table td strong {
    color: var(--text-dark); display: block; margin-bottom: 4px;
}
.coverage-table td small {
    color: var(--text-light); font-size: 0.85rem;
}

/* Button to trigger modal (Text Link style) */
.btn-text-link {
    background: none; border: none; padding: 0;
    color: var(--khanoumi-pink);
    text-decoration: underline; text-underline-offset: 4px;
    font-size: 0.9rem; cursor: pointer;
    margin-bottom: 16px; display: inline-block;
    transition: color 0.2s;
}
.btn-text-link:hover { color: var(--khanoumi-pink-hover); }

/* Mobile adjustments */
@media (max-width: 768px) {
    .modal-content { padding: 20px 15px; }
    .coverage-table th, .coverage-table td { padding: 12px; font-size: 0.85rem; }
    .modal-close-btn { top: 10px; left: 10px; }
}

/* -------------------------------------------------------------------------- */
/* 3. GLOBAL RESET                               */
/* -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbb2dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--khanoumi-pink); }
::selection { background-color: var(--khanoumi-pink); color: var(--white); }

body {
    font-family: 'IRANSansX', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea, .btn {
    font-family: inherit; font-size: inherit; line-height: inherit;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
section { padding: 32px 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 32px; }
h3 { font-size: 1rem; }
p { color: var(--text-light); margin-bottom: 16px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------------------------- */
/* 4. COMPONENTS                                  */
/* -------------------------------------------------------------------------- */

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: var(--radius-normal); /* Reduced padding */
    text-decoration: none; font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; border: none; font-size: 0.95rem;
    text-align: center; direction: initial;
}
.btn--primary {
    background-color: var(--khanoumi-pink); color: var(--white);
    box-shadow: 0 4px 15px rgba(105, 42, 150, 0.2);
}
.btn--primary:hover {
    background-color: var(--khanoumi-pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 42, 150, 0.3);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
    background-color: var(--white); color: var(--khanoumi-pink);
    border: 1.5px solid var(--khanoumi-pink); width: 100%;
}
.btn--secondary:hover {
    background-color: var(--khanoumi-pink); color: var(--white);
    box-shadow: 0 4px 12px rgba(105, 42, 150, 0.15);
}
.btn--disabled {
    pointer-events: none; opacity: 0.8;
    background-color: #efefef; color: #9a9a9a;
    border: 1px solid rgba(0,0,0,0.05);
}
.btn.loading { position: relative; color: rgba(255,255,255,0.9); pointer-events: none; opacity: 0.95; }
.btn.loading::after {
    content: ""; position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); width: 16px; height: 16px;
    border-radius: 50%; border: 2px solid rgba(255,255,255,0.28);
    border-top-color: rgba(255,255,255,0.95);
    animation: spin 720ms linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes btn-pop {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-4px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}
.btn.animating { animation: btn-pop 380ms cubic-bezier(.2,.9,.3,1); }

/* --- Header & Logo --- */
.main-header { padding: 10px 0; background: var(--white); border-bottom: 1px solid var(--border-color); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--khanoumi-pink); text-decoration: none; position: relative; }
.logo__img { width: 140px; height: auto; object-fit: contain; display: block; } /* Slightly smaller logo */

/* --- Hero Banner --- */
.hero-banner { padding: 0; background-color: var(--khanoumi-pink-light); position: relative; overflow: hidden; }
.hero-banner__wrapper { position: relative; width: 100%; margin: 0 auto; }
.hero-banner__img { width: 100%; height: auto; display: block; object-fit: cover; }
.scroll-down-btn {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; background: rgba(255, 255, 255, 0.85);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); cursor: pointer;
    transition: background 0.3s; z-index: 10; animation: floatDown 2s infinite ease-in-out;
}
.scroll-down-btn:hover { background: #fff; }
.scroll-down-icon {
    width: 12px; height: 12px;
    border-right: 2px solid var(--khanoumi-pink);
    border-bottom: 2px solid var(--khanoumi-pink);
    transform: rotate(45deg); margin-top: -4px;
}
@keyframes floatDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Cards (General) --- */
.insurance-section { background-color: var(--white); }
.insurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } /* Reduced gap */
.card {
    background: var(--white); border-radius: var(--radius-large);
    box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.5);
    padding: 20px; /* Reduced padding */
    display: flex; flex-direction: column;
    justify-content: space-between; transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: visible;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(105, 42, 150, 0.15); }

/* Compact Desktop Images */
.card__illustration { 
    width: 100%; 
    height: 140px; /* Reduced height from 180px */
    border-radius: var(--radius-normal); 
    margin-bottom: 16px; 
    object-fit: contain; 
}

.card h3 { color: var(--khanoumi-pink); text-align: center; margin-bottom: 8px; font-size: 1.05rem; }
.card p {
    font-size: 0.9rem; text-align: justify; flex-grow: 1; margin-bottom: 16px;
    color: var(--text-light); overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.6;
}
.card__badge {
    position: absolute; top: -10px; left: 16px;
    background-color: var(--discount-orange); color: var(--white);
    padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    z-index: 5; box-shadow: 0 6px 15px var(--discount-shadow); border: 2px solid var(--white);
}

/* Coming Soon & Preregister Specifics */
.card--soon {
    opacity: 0.80; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease; background-color: #fcfcfc;
}
.card--soon .card__badge { background: #a0a0a0; border: 1px solid rgba(255,255,255,0.5); box-shadow: none; }

.cards-actions { text-align: center; margin: 32px 0; }

/* --- EXCLUSIVE SERVICES (NEW) --- */
.exclusive-section {
    background-color: #fdf7ff; 
    padding: 30px 0 40px; /* Adjusted padding */
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
/* Title decoration */
.exclusive-header { text-align: center; margin-bottom: 24px; }
.exclusive-header h2 {
    display: inline-block;
    color: var(--khanoumi-pink);
    border-bottom: 3px solid #ffca28; 
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.exclusive-header p { margin-top: 4px; font-size: 0.95rem; }

.exclusive-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card--exclusive {
    border: 2px solid #e1bee7;
    background: #fff;
    flex: 0 1 320px; /* Reduced width */
    box-shadow: 0 10px 25px rgba(105, 42, 150, 0.08);
}
.card--exclusive:hover {
    border-color: var(--khanoumi-pink);
    transform: translateY(-6px) scale(1.01);
}
.card--exclusive .card__badge {
    background: linear-gradient(45deg, #692a96, #9c27b0);
    box-shadow: 0 4px 10px rgba(105, 42, 150, 0.3);
}
/* Reduce image size in exclusive cards */
.card--exclusive .card__illustration { height: 140px; margin-bottom: 12px; }

/* --- Features Section --- */
.features { background-color: var(--khanoumi-pink-light); background-image: linear-gradient(0deg, #fff 0%, #fbf4ff 100%); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-item {
    background: var(--white); padding: 20px; border-radius: var(--radius-normal);
    text-align: center; box-shadow: 0 8px 24px rgba(105, 42, 150, 0.06); transition: transform 0.3s ease;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-item__icon { font-size: 2.2rem; color: var(--khanoumi-pink); margin-bottom: 12px; text-shadow: 0 0 30px rgba(105, 42, 150, 0.3); }

/* --- CTA Banner --- */
.cta-banner {
    background-color: var(--khanoumi-pink);
    background-image: linear-gradient(110deg, #692a96 0%, #511878 100%);
    border-radius: var(--radius-large); padding: 40px 24px;
    text-align: center; margin: 30px 0; box-shadow: 0 20px 40px rgba(105, 42, 150, 0.25);
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
    background: rgba(255,255,255,0.05); border-radius: 50%; pointer-events: none;
}
.cta-banner h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255, 255, 255, 0.95); max-width: 500px; margin: 0 auto 20px auto; font-size: 0.95rem; }
.cta-form { display: flex; justify-content: center; gap: 10px; position: relative; z-index: 2; }
.cta-form input {
    padding: 12px 16px; font-family: 'IRANSansX', sans-serif;
    border: 2px solid transparent; border-radius: var(--radius-normal);
    width: 280px; font-size: 0.95rem; text-align: right; outline: none; transition: border-color 0.3s;
}
.cta-form input:focus { border-color: #cbb2dd; box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }
.cta-form .btn { background-color: var(--white); color: var(--khanoumi-pink); font-weight: 700; padding: 12px 24px; }
.cta-form .btn:hover { background-color: #fbf4ff; color: var(--khanoumi-pink-hover); }
.cta-status {
    margin-top: 10px; min-height: 1.25em; font-size: 0.9rem; text-align: center;
    opacity: 0; transform-origin: top; transition: opacity .22s ease, transform .22s ease;
    pointer-events: none; color: var(--white); font-weight: 500;
}
.cta-status.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cta-status.success { color: var(--success-bg); font-weight: 700; }

/* --- Footer --- */
.main-footer { text-align: center; padding: 24px 0; border-top: 1px solid var(--border-color); color: var(--text-light); font-size: 0.85rem; background-color: #fafafa; }

/* -------------------------------------------------------------------------- */
/* 5. MEDIA QUERIES                            */
/* -------------------------------------------------------------------------- */

/* ----- DESKTOP (min-width: 992px) ----- */
@media (min-width: 992px) {
    .insurance-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
    .insurance-grid > .card { grid-column: span 2; }
    .insurance-grid > .card--wide { grid-column: span 3 !important; }
    .insurance-grid > .card:nth-child(1),
    .insurance-grid > .card:nth-child(2) { grid-column: span 3; }

    .card--wide .card__content-wrapper { display: flex; align-items: center; gap: 16px; }
    .card--wide .card__text { flex: 1; text-align: right; }
    .card--wide .card__text h3 { text-align: right; }
    .card--wide .card__text p { text-align: justify; }
    .card--wide .card__illustration { flex-basis: 180px; height: 130px; margin-bottom: 0; }
}

/* ----- TABLET (max-width: 992px) ----- */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    .insurance-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .insurance-grid > .card--wide { grid-column: span 2 !important; }
    
    .card--wide .card__content-wrapper { display: flex; align-items: center; gap: 16px; }
    .card--wide .card__text { flex: 1; text-align: right; }
    .card--wide .card__illustration { flex-basis: 180px; height: 130px; margin-bottom: 0; }
    
    .exclusive-card { flex: 0 1 48%; }
}

/* ----- MOBILE (max-width: 768px) ----- */
@media (max-width: 768px) {
    body { font-size: 15px; }
    section { padding: 20px 0; }
    .main-header .btn { padding: 6px 14px; font-size: 0.85rem; }
    .logo__img { width: 110px; }
    
    .hero-banner__img { height: auto; object-fit: contain; }
    .scroll-down-btn { width: 38px; height: 38px; bottom: 15px; }

    /* Exclusive Services Mobile: Horizontal Scroll (Optimized) */
    .exclusive-grid {
        display: flex;
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 5px 20px 30px 20px; 
        gap: 12px;
        justify-content: flex-start;
        margin: 0 -20px; 
    }
    .exclusive-grid::after { content: ''; display: block; flex: 0 0 1px; width: 1px; }
    
    .card--exclusive {
        flex: 0 0 75%; /* Reduced width to see next card */
        max-width: 280px;
        scroll-snap-align: center;
        margin-bottom: 0; 
        transform: none !important;
        padding: 16px; /* Compact padding */
    }
    .card--exclusive .card__illustration { 
        height: 120px; /* Smaller image */
        margin-bottom: 10px; 
    }
    .card--exclusive h3 { font-size: 1rem; margin-bottom: 6px; }
    .card--exclusive p { font-size: 0.85rem; margin-bottom: 12px; }

    /* Standard Grid Mobile (Compact Row Layout) */
    .insurance-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 10px;
    }
    
    .insurance-grid .card {
        display: grid; 
        min-height: auto; 
        padding: 10px 12px; /* Very compact padding */
        grid-template-columns: 75px 1fr; /* Smaller icon column */
        grid-template-rows: auto auto auto; 
        column-gap: 10px; 
        align-items: start; direction: ltr;
        border-radius: 16px; 
        grid-column: span 6 !important; 
    }

    .insurance-grid .card--wide, 
    .insurance-grid .card--soon {
        grid-column: span 1; 
    }
    .insurance-grid .card--wide .card__content-wrapper,
    .insurance-grid .card--wide .card__text { display: contents; }
    
    .insurance-grid .card__badge {
        top: -6px; left: 8px; padding: 2px 8px; font-size: 0.7rem; box-shadow: none;
    }
    
    /* Mobile Icon Styling */
    .insurance-grid .card__illustration {
        grid-column: 1; grid-row: 1 / span 2;
        width: 75px; height: 75px; /* Smaller Icon */
        border-radius: 12px; background-color: #f8f8f8;
        margin-bottom: 0;
        padding: 5px; /* Slight padding for inner image */
    }
    
    .insurance-grid .card h3 {
        grid-column: 2; grid-row: 1;
        direction: rtl; text-align: right; margin: 4px 0 0 0; font-size: 0.95rem;
    }
    .insurance-grid .card p {
        grid-column: 2; grid-row: 2;
        direction: rtl; text-align: justify; margin: 4px 0 8px 0; font-size: 0.8rem; line-height: 1.4;
    }
    .insurance-grid .card .btn {
        grid-column: 1 / -1; grid-row: 3;
        justify-self: center; width: 100%; font-size: 0.85rem; padding: 8px; margin-top: 4px;
    }
    
    .cta-form { flex-direction: column; align-items: center; width: 100%; }
    .cta-form input, .cta-form .btn { width: 100%; max-width: 100%; }
}