/* ===================================
   Reut Bitton Website - Styles
   =================================== */

/* --- CSS Variables --- */
:root {
    --navy: #0f1c2e;
    --navy-light: #1a2d47;
    --navy-dark: #0a1420;
    --white: #ffffff;
    --white-soft: #f8f9fc;
    --gold: #c9a962;
    --gold-light: #e0c989;
    --gold-dark: #a8893f;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.65);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Heebo', sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Noto Sans Hebrew', sans-serif; font-weight: 700; }
.hero-tagline, .page-header h1, .section-title, .service-card h3, 
.benefit-card h3, .skill-card h4, .offering-card h3, .faq-question,
.benefits-title, .about-text h2, .about-text h3, .step-content h3,
.lectures-hero h1, .audience-card h3, .unique-list li strong,
.contact-section h2, .footer h4 {
    font-family: 'Noto Sans Hebrew', sans-serif;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
    padding: 1rem 2rem; background: transparent; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(15, 28, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.nav-container {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { height: 60px; transition: var(--transition); }
.nav-logo:hover { transform: scale(1.05); }
.nav-logo-link { 
    display: flex; 
    align-items: center; 
    height: 60px; 
    transition: var(--transition);
    order: -1;
}
.nav-logo-link:hover { transform: scale(1.05); }
.nav-logo-link .reut-logo-container { height: 100%; }
.nav-logo-link .reut-logo-symbol,
.nav-logo-link .reut-logo-name { height: 100%; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }

/* Language selector positioning: end of navbar (via order) */
.language-selector.desktop-only { order: 1; }
.nav-link {
    font-size: 0.95rem; font-weight: 400; color: var(--text-light);
    position: relative; padding: 0.5rem 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 0; height: 2px; background: var(--gold); transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--white); }
.nav-link.active {
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
}
.nav-link.active::after { display: none; }

/* Loading Screen */
.loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
    opacity: 0; visibility: hidden;
}
.loading-logo {
    width: min(300px, 60vw);
    animation: pulse 1.5s ease-in-out infinite;
}
.loading-logo-container {
    width: min(300px, 60vw);
    animation: pulse 1.5s ease-in-out infinite;
    display: flex;
    justify-content: center;
}
.loading-logo-container .reut-logo-container {
    width: 100%;
}
.loading-text {
    color: var(--gold); margin-top: 1.5rem;
    font-size: 1rem; letter-spacing: 2px;
}
.loading-spinner {
    width: 40px; height: 40px; margin-top: 1.5rem;
    border: 3px solid rgba(201, 169, 98, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Mobile Menu --- */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 10px; z-index: 1001;
}
.hamburger span { width: 25px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
    display: none; position: fixed; top: 0; right: -100%;
    width: 100%; height: 100vh; background: var(--navy-dark);
    z-index: 999; transition: var(--transition); padding: 100px 2rem 2rem;
}
.mobile-menu.active { right: 0; }
.mobile-menu .nav-link { display: block; font-size: 1.3rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu .nav-link.active { 
    color: var(--gold); 
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    border-radius: 0;
}

/* Mobile Language Selector inside menu */
.mobile-language-selector {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 169, 98, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-language-selector label {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-language-selector .language-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-language-selector select {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
}

/* Desktop only language selector */
.desktop-only {
    display: flex;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    /* More prominent hamburger on mobile */
    .hamburger {
        display: flex;
        padding: 12px;
        border: 1px solid rgba(201, 169, 98, 0.4);
        border-radius: 8px;
        background: rgba(201, 169, 98, 0.1);
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
        background: var(--gold);
    }
    
    .hamburger:hover,
    .hamburger.active {
        background: rgba(201, 169, 98, 0.2);
        border-color: var(--gold);
    }
}

/* --- Hero Section --- */
.hero-main {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 2rem; position: relative; background: var(--navy);
}
.hero-main::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero-logo-large { width: min(500px, 80vw); animation: fadeInUp 1s ease-out; }
.hero-logo-container { 
    width: min(500px, 80vw); 
    animation: fadeInUp 1s ease-out; 
    display: flex;
    justify-content: center;
}
.hero-logo-container .reut-logo-container {
    width: 100%;
}
.hero-phone-large {
    font-size: 1.4rem; color: var(--gold); margin-top: 1.5rem;
    direction: ltr; animation: fadeInUp 1s ease-out 0.3s both;
}
.hero-phone-large a { color: var(--gold); }
.hero-phone-large a:hover { color: var(--gold-light); }
.scroll-indicator {
    position: absolute; bottom: 2rem; animation: bounce 2s infinite; cursor: pointer;
}
.scroll-indicator svg { width: 30px; height: 30px; color: var(--text-muted); transition: var(--transition); }
.scroll-indicator:hover svg { color: var(--gold); }

/* --- Hero Content Section --- */
.hero-content {
    min-height: auto; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.hero-tagline {
    font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700;
    margin-bottom: 0.5rem; color: var(--gold);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--white);
    margin-bottom: 1.5rem; font-weight: 300;
}
.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted);
    max-width: 750px; margin-bottom: 1rem; line-height: 1.9;
}
.hero-closing {
    font-size: 1.1rem; color: var(--gold-light); font-style: italic;
    margin-bottom: 1.5rem;
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 2.5rem 2rem; background: var(--navy-light);
}
.benefits-container {
    max-width: 1100px; margin: 0 auto;
}
.benefits-title {
    text-align: center; font-size: 2.5rem; color: var(--gold);
    margin-bottom: 2.5rem; font-weight: 700;
}
.benefits-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background: var(--navy); padding: 2rem; border-radius: 15px;
    border: 1px solid rgba(201, 169, 98, 0.15);
    transition: var(--transition);
}
.benefit-card:hover {
    border-color: rgba(201, 169, 98, 0.4);
    transform: translateY(-3px);
}
.benefit-icon {
    width: 50px; height: 50px; margin-bottom: 1rem;
    color: var(--gold);
}
.benefit-card h3 {
    font-size: 1.7rem; color: var(--white); margin-bottom: 0.6rem; font-weight: 700;
}
.benefit-card p {
    color: var(--text-muted); line-height: 1.7;
}

/* --- Buttons --- */
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn {
    padding: 1rem 2rem; border-radius: 50px; font-size: 1rem;
    font-weight: 500; cursor: pointer; transition: var(--transition);
    border: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover {
    background: var(--gold-light); transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
}
.btn-secondary { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-3px); }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease-out forwards; }
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

/* --- Page Header --- */
.page-header {
    padding: 110px 2rem 40px; text-align: center;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
    position: relative;
}
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.3rem; font-weight: 700; line-height: 1.15; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.15rem; }

/* --- Section Styles --- */
.section { padding: 50px 2rem; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.2rem; color: var(--gold); font-weight: 700; }
.section-text { font-size: 1.05rem; color: var(--text-light); line-height: 1.9; }

/* Punctuation-based line break: hidden on desktop, shown on mobile */
.page-header h1 .punct-break,
.page-header h1 br.punct-break { display: none; }
@media (max-width: 768px) {
    .page-header h1 br.punct-break { display: block; }
    .page-header h1 { line-height: 1.1; }
}

/* --- Services Grid --- */
.services-grid {
    display: grid; 
    grid-template-columns: repeat(6, 1fr); /* 6 עמודות למרווח טוב */
    gap: 1.5rem; 
    margin-top: 2.5rem;
}

/* כל כרטיס תופס 2 עמודות */
.services-grid .service-card {
    grid-column: span 2;
}

/* הכרטיס ה-4 מתחיל מעמודה 2 (ממורכז) */
.services-grid .service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

/* הכרטיס ה-5 מתחיל מעמודה 4 */
.services-grid .service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.service-card {
    background: var(--navy-light); 
    border-radius: 16px; 
    padding: 2rem;
    transition: var(--transition); 
    border: 1px solid rgba(255,255,255,0.05);
    position: relative; 
    overflow: hidden;
    /* הפיכה ל-flexbox לגובה אחיד של כפתורים */
    display: flex;
    flex-direction: column;
}
.service-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    border-radius: 0 16px 0 80%;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 98, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}
.service-card-image {
    width: 100%; height: 160px; object-fit: cover;
    border-radius: 10px; margin-bottom: 1.2rem;
    filter: grayscale(30%); transition: var(--transition);
}
.service-card:hover .service-card-image { filter: grayscale(0%); }
.service-card h3 { font-size: 1.7rem; margin-bottom: 0.8rem; color: var(--white); font-weight: 700; }
.service-card p { color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.7; font-size: 0.95rem; }
.service-card .note { font-size: 0.85rem; color: var(--gold-light); font-style: italic; margin-bottom: 1rem; }
.service-card .btn { 
    width: 100%; 
    justify-content: center; 
    font-size: 0.95rem; 
    padding: 0.9rem 1.5rem; 
    margin-top: auto; /* דוחף את הכפתור לתחתית */
}

/* --- Steps Section --- */
.steps { display: flex; flex-direction: column; gap: 1.8rem; margin-top: 2.5rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-number {
    width: 55px; height: 55px; min-width: 55px; border-radius: 50%;
    background: var(--gold); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; font-family: 'Noto Sans Hebrew', sans-serif;
}
.step-content h3 { font-size: 1.7rem; margin-bottom: 0.5rem; font-weight: 700; }
.step-content p { color: var(--text-muted); line-height: 1.7; }

/* --- FAQ --- */
.faq-list { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1.3rem 0; }
.faq-question {
    font-size: 1.5rem; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; color: var(--white);
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--gold); transition: var(--transition); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    color: var(--text-muted); line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 400px; padding-top: 1rem; }

/* --- About Section --- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-image { display: flex; justify-content: center; align-items: flex-start; }
.about-image img { 
    max-width: 280px; 
    max-height: 360px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    filter: drop-shadow(0 15px 30px rgba(201, 169, 98, 0.15)); 
}
.about-text h2 { font-size: 2rem; margin-bottom: 1.2rem; color: var(--gold); font-weight: 700; }
.about-text p { color: var(--text-light); margin-bottom: 1.2rem; line-height: 1.8; }
.about-role { color: var(--text-muted) !important; font-style: italic; }
.about-list { margin: 1.5rem 0; }
.about-list li {
    color: var(--text-light); padding: 0.4rem 0; padding-right: 1.3rem;
    position: relative; list-style: none; font-size: 0.95rem;
}
.about-list li::before { content: '◆'; position: absolute; right: 0; top: 0.6rem; color: var(--gold); font-size: 0.5rem; }

/* --- Skills Cards --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.skill-card {
    background: var(--navy-light); padding: 1.5rem; border-radius: 12px;
    border: 1px solid rgba(201, 169, 98, 0.1);
}
.skill-card h4 { color: var(--gold); margin-bottom: 0.5rem; font-size: 1.5rem; font-weight: 700; }
.skill-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* --- Lectures Page --- */
.lectures-hero-image {
    max-width: 450px;
    margin: -20px auto 2.5rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.lectures-hero-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 25%;
}
.lectures-intro { font-size: 1.1rem; color: var(--text-light); line-height: 1.9; margin-bottom: 2rem; }
.custom-note {
    background: var(--navy-light); padding: 1.5rem; border-radius: 10px;
    border-right: 3px solid var(--gold); margin-bottom: 2.5rem;
}
.audiences-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.audience-card {
    background: var(--navy-light); padding: 1.3rem; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
.audience-card h4 { color: var(--gold); margin-bottom: 0.4rem; font-size: 1.4rem; font-weight: 700; }
.audience-card p { color: var(--text-muted); font-size: 0.9rem; }
.offerings-section { margin-top: 3rem; }
.offering-card {
    background: var(--navy-light); padding: 2rem; border-radius: 12px;
    margin-bottom: 1.5rem; border: 1px solid rgba(201, 169, 98, 0.15);
}
.offering-card h3 { color: var(--gold); margin-bottom: 0.8rem; font-size: 1.7rem; font-weight: 700; }
.offering-card p { color: var(--text-light); }

/* --- Contact Section --- */
.contact-hero-image {
    max-width: 350px;
    margin: -20px auto 2rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.contact-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}
.contact-section { background: var(--navy-light); padding: 50px 2rem 70px; }
.contact-container { max-width: 750px; margin: 0 auto; text-align: center; }
.contact-container h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.contact-container > p { color: var(--text-muted); margin-bottom: 2.5rem; }
.contact-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.contact-form { background: var(--navy); padding: 2.5rem; border-radius: 16px; text-align: right; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: 0.4rem; color: var(--text-light); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.9rem; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; background: var(--navy-light); color: var(--white);
    font-family: 'Heebo', sans-serif; font-size: 1rem; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 1.1rem; }
.contact-info { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); font-size: 0.9rem; }

/* --- Footer --- */
footer { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-main {
    max-width: 1100px; margin: 0 auto; padding: 40px 2rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.footer-brand img { height: 60px; }
.footer-logo-container { height: 60px; display: flex; align-items: center; }
.footer-logo-container .reut-logo-container { height: 100%; }
.footer-brand-text { display: flex; flex-direction: column; gap: 0.2rem; align-items: center; margin-top: 25px; }
.footer-brand-text span { color: var(--text-muted); font-size: 0.85rem; line-height: 1.2; }
.footer-phone { color: var(--gold); font-size: 1rem; direction: ltr; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact-btns { 
    display: flex; gap: 0.8rem; align-items: center; justify-content: center;
}
.footer-contact-btns a {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: var(--text-muted); transition: var(--transition);
}
.footer-contact-btns a:hover { background: var(--gold); color: var(--navy); }
.footer-contact-btns svg { width: 18px; height: 18px; }
.footer-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,255,255,0.15);
    margin: 0 0.5rem;
}
.footer-social { 
    display: flex; gap: 0.8rem; align-items: center;
}
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: var(--text-muted); transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 18px 2rem; text-align: center; }
.footer-quote { color: var(--text-muted); font-style: italic; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-legal { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a, .footer-legal span { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--gold); }

/* --- Fixed WhatsApp Button --- */
.whatsapp-fixed {
    position: fixed; bottom: 25px; left: 25px; width: 55px; height: 55px;
    background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 999; transition: var(--transition);
}
.whatsapp-fixed:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
.whatsapp-fixed svg { width: 28px; height: 28px; fill: white; }

/* --- Modal --- */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.85); z-index: 2000;
    align-items: center; justify-content: center; padding: 2rem;
    overflow: hidden;
}
.modal.active { display: flex; overflow: hidden; }
.modal-content {
    background: var(--navy); border-radius: 16px; padding: 2.5rem;
    max-width: 650px; max-height: 80vh; overflow-y: auto; overflow-x: hidden; position: relative;
    box-sizing: border-box; width: 100%;
    -webkit-overflow-scrolling: touch;
}
.modal-close {
    position: absolute; top: 1rem; left: 1rem; background: none;
    border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer;
}
.modal-close:hover { color: var(--gold); }
.modal-content h2 { margin-bottom: 1.2rem; color: var(--gold); font-size: 1.5rem; }
.modal-content p, .modal-content li { color: var(--text-light); margin-bottom: 0.8rem; line-height: 1.7; font-size: 0.95rem; }
.modal-content h3 { color: var(--white); margin: 1.5rem 0 0.8rem; font-size: 1.1rem; }
.modal-content ul { padding-right: 1.2rem; }

/* --- Page visibility --- */
.page { 
    display: none; 
    width: 100%;
    min-height: 100vh;
}
.page.active { 
    display: block !important; 
    visibility: visible !important;
    opacity: 1 !important;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute; top: -40px; right: 0;
    background: var(--gold); color: var(--navy);
    padding: 8px 16px; z-index: 10000;
    text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 0; }

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
    outline: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, 
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed; bottom: 25px; right: 25px;
    width: 50px; height: 50px;
    background: var(--navy-light); border: 2px solid var(--gold);
    border-radius: 50%; cursor: pointer; z-index: 998;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.accessibility-btn:hover { background: var(--gold); }
.accessibility-btn:hover svg { stroke: var(--navy); }
.accessibility-btn svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; }

/* Accessibility Panel */
.accessibility-panel {
    position: fixed; bottom: 85px; right: 25px;
    background: var(--navy-light); border: 1px solid var(--gold);
    border-radius: 12px; padding: 1.5rem;
    width: 280px; z-index: 998;
    display: none; flex-direction: column; gap: 1rem;
}
.accessibility-panel.active { display: flex; }
.accessibility-panel h3 {
    color: var(--gold); font-size: 1.1rem; margin-bottom: 0.5rem;
    text-align: center;
}
.accessibility-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.accessibility-option:last-child { border-bottom: none; }
.accessibility-option span { color: var(--text-light); font-size: 0.9rem; }
.accessibility-option button {
    background: var(--navy); border: 1px solid var(--gold);
    color: var(--gold); padding: 0.4rem 0.8rem; border-radius: 5px;
    cursor: pointer; font-size: 0.85rem; transition: var(--transition);
}
.accessibility-option button:hover { background: var(--gold); color: var(--navy); }
.accessibility-option button.active { background: var(--gold); color: var(--navy); }

/* High Contrast Mode */
body.high-contrast { 
    --navy: #000000; --navy-light: #1a1a1a; --navy-dark: #000000;
    --text-light: #ffffff; --text-muted: #e0e0e0;
}
body.high-contrast .service-card, body.high-contrast .benefit-card,
body.high-contrast .skill-card, body.high-contrast .audience-card {
    border-color: var(--gold);
}

/* Large Text Mode */
body.large-text { font-size: 120%; }
body.large-text h1 { font-size: 2.5rem; }
body.large-text h2 { font-size: 2rem; }
body.large-text h3 { font-size: 1.5rem; }
body.large-text p, body.large-text li { font-size: 1.15rem; }

/* Links Highlight Mode */
body.highlight-links a { text-decoration: underline !important; }
body.highlight-links a:hover { text-decoration: underline double !important; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Responsive - Tablet --- */
@media (max-width: 992px) {
    /* שינוי גריד השירותים ל-2 עמודות בטאבלטים */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .services-grid .service-card {
        grid-column: span 2;
    }
    /* מרכוז משבצת אחרונה בודדת */
    .services-grid .service-card:nth-child(5) {
        grid-column: 2 / span 2;
    }
    
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-image { order: -1; }
    .about-list li { padding-right: 0; }
    .about-list li::before { display: none; }
    .footer-main { flex-direction: column; text-align: center; }
    .footer-brand { flex-direction: column; }
    .footer-nav { justify-content: center; }
    .footer-contact-btns { justify-content: center; flex-wrap: wrap; }
    .footer-divider { 
        flex-basis: 100%;
        height: 0;
        width: 100%;
        margin: 0;
    }
    .footer-social { justify-content: center; }
}

/* --- Responsive - Mobile --- */
@media (max-width: 768px) {
    /* AGGRESSIVE FIX for Chrome mobile page display bug */
    .page {
        display: none !important;
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        background: transparent !important;
        z-index: 1 !important;
    }
    
    .page.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* SPECIFIC FIX for contact page - ZOOM ISSUE */
    #page-contact {
        background: var(--navy) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        transform: scale(1) !important;
        transform-origin: top right !important;
        position: relative !important;
    }
    
    #page-contact.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #page-contact * {
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100% !important;
    }
    
    /* Fix contact containers */
    #page-contact .contact-section,
    #page-contact .contact-container,
    #page-contact .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    #page-contact form {
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    /* Prevent honeypot from causing scroll */
    #page-contact .honeypot-field,
    #page-contact #website {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
    }
    
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
        /* Keep the background from theme-refresh.css */
    }
    
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }
    .services-grid { 
        grid-template-columns: 1fr; 
    }
    /* איפוס ה-grid-column למובייל */
    .services-grid .service-card,
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: span 1;
    }
    .benefits-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .audiences-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; text-align: center; align-items: center; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .contact-buttons { flex-direction: column; align-items: center; }
    .contact-buttons .btn { width: 100%; max-width: 300px; }
    .footer-legal { flex-direction: column; gap: 0.5rem; }
    .whatsapp-fixed { bottom: 18px; left: 18px; width: 50px; height: 50px; }
    .mobile-break { display: block; }


/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Styles */
.form-checkbox {
    margin: 1.5rem 0;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--gold);
    flex-shrink: 0;
}
.checkbox-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}
.form-link {
    color: var(--gold);
    text-decoration: underline;
    transition: var(--transition);
}
.form-link:hover {
    color: var(--gold-light);
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}
.form-message.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #e57373;
}

/* Submit Button Loading State */
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--navy);
    transform: rotate(90deg);
}

.modal-body {
    padding: 50px 40px 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.modal-body h2 {
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-body h3 {
    color: var(--gold-light);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.modal-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-right: 3px solid var(--gold);
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.modal-body li {
    padding: 0.8rem 0 0.8rem 1.5rem;
    position: relative;
    color: var(--text-muted);
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-body li:last-child {
    border-bottom: none;
}

.modal-body li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-size: 1.2rem;
}

.modal-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 50px 25px 25px;
    }
    
    .modal-body h2 {
        font-size: 1.8rem;
    }
    
    .modal-body h3 {
        font-size: 1.3rem;
    }
}


/* Youth Notice Info Box */
.youth-notice {
    margin: 1.5rem 0;
}

.info-box {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    color: var(--text-light);
    line-height: 1.6;
}

.info-content strong {
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.info-link {
    color: var(--gold);
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.info-link:hover {
    color: var(--gold-light);
}

/* Honeypot - completely hidden */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}


/* ============================================
   PARENTS CONSENT FORM STYLES
   ============================================ */

.consent-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-dark) 100%);
}

.consent-header {
    background: var(--navy-dark);
    padding: 2rem 0;
    border-bottom: 2px solid var(--gold);
}

.consent-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.back-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--gold-light);
}

.consent-header h1 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.consent-header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Email Form Section */
.email-form-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.email-box {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.email-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.email-content h3 {
    color: var(--gold);
    margin: 0 0 0.5rem 0;
}

.email-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.inline-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
}

.inline-form input[type="email"]:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Consent Form Section */
.consent-form-section {
    padding: 3rem 0;
}

.consent-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.section-intro {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.required {
    color: var(--gold);
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* Checkbox List */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 169, 98, 0.3);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--gold);
}

.checkbox-item span {
    color: var(--text-muted);
    line-height: 1.6;
}

.checkbox-item strong {
    color: var(--gold-light);
    display: inline;
}

.signature-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Consent Footer */
.consent-footer {
    background: var(--navy-dark);
    padding: 2rem 0;
    border-top: 2px solid rgba(201, 169, 98, 0.2);
    text-align: center;
    color: var(--text-muted);
}

.consent-footer a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.consent-footer a:hover {
    color: var(--gold-light);
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .consent-header h1 {
        font-size: 2rem;
    }
    
    .email-box {
        flex-direction: column;
        text-align: center;
    }
    
    .inline-form {
        flex-direction: column;
        width: 100%;
    }
    
    .inline-form input[type="email"],
    .inline-form button {
        width: 100%;
    }
    
    .consent-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
}


/* ============================================
   CONSENT MODAL STYLES
   ============================================ */

/* Large Modal for Forms */
.modal-large {
    max-width: 900px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem !important;
}

/* Custom scrollbar for modal */
.modal-large::-webkit-scrollbar {
    width: 8px;
}

.modal-large::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-large::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.modal-large::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* Consent Form Sections */
.form-section-modal {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.form-section-modal:last-of-type {
    border-bottom: none;
}

.form-section-modal h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Form Groups in Modal */
.consent-modal-form .form-group {
    margin-bottom: 1.5rem;
}

.consent-modal-form .form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.consent-modal-form .form-group input[type="text"],
.consent-modal-form .form-group input[type="email"],
.consent-modal-form .form-group input[type="tel"],
.consent-modal-form .form-group input[type="date"],
.consent-modal-form .form-group input[type="number"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.consent-modal-form .form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.consent-modal-form .form-group input::placeholder {
    color: var(--text-muted);
}

/* Form Row for side-by-side fields */
.consent-modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .consent-modal-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Radio Groups */
.consent-modal-form .radio-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

.consent-modal-form .radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}

.consent-modal-form .radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* Checkbox List in Modal */
.checkbox-list-modal {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.checkbox-item-modal {
    display: flex !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    padding: 1rem;
    background: rgba(201, 169, 98, 0.05);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-item-modal:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: rgba(201, 169, 98, 0.3);
}

.checkbox-item-modal input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    cursor: pointer;
    accent-color: var(--gold);
    flex-shrink: 0 !important;
}

.checkbox-item-modal span {
    color: var(--text-light) !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
}

.checkbox-item-modal strong {
    color: var(--gold);
    display: inline;
}

/* Modal Form Message */
#consentMessage {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
}

#consentMessage.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #81c784;
}

#consentMessage.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #e57373;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .modal-large {
        padding: 1.5rem !important;
        max-height: 90vh;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-section-modal h3 {
        font-size: 1.3rem;
    }
}


/* Signature Canvas Styles */
.signature-box {
    margin-bottom: 1.5rem;
}

.signature-box canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .signature-box canvas {
        width: 100%;
        height: 120px;
    }
}

/* Prevent horizontal overflow globally */
* {
    box-sizing: border-box;
}

input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box;
}

.modal-content *, .consent-modal-content * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Language Selector --- */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: rgba(10, 22, 40, 0.9) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a962' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.5rem center !important;
    padding-left: 1.8rem !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding-right: 0.8rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: var(--transition) !important;
    min-width: 100px !important;
}

html[dir="ltr"] .language-selector select {
    background-position: right 0.5rem center !important;
    padding-left: 0.8rem !important;
    padding-right: 1.8rem !important;
}

.language-selector select:hover {
    background-color: rgba(201, 169, 98, 0.15) !important;
    border-color: var(--gold) !important;
}

.language-selector select:focus {
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.3) !important;
}

.language-selector select option {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 0.5rem !important;
}

.lang-buttons {
    display: flex;
    gap: 0.3rem;
}

.lang-btn {
    padding: 0.3rem 0.6rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-muted);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 169, 98, 0.1);
}

/* --- Global Select and Button Styling --- */
select, 
.form-group select,
#contactService {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a962' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

html[dir="ltr"] select,
html[dir="ltr"] .form-group select,
html[dir="ltr"] #contactService {
    background-position: right 1rem center;
    padding-left: 1rem;
    padding-right: 2.5rem;
}

select:hover,
.form-group select:hover,
#contactService:hover {
    border-color: var(--gold);
    background-color: rgba(255, 255, 255, 0.08);
}

select:focus,
.form-group select:focus,
#contactService:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

select option,
.form-group select option,
#contactService option {
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem;
}

/* --- Cookies Banner --- */
/* --- Storage Notice Banner --- */
.cookies-banner {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold);
    padding: 1rem 2rem;
    z-index: 10000;
    transition: top 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookies-banner.visible {
    top: 0;
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookies-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    flex: 1;
}

.cookies-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.cookies-accept {
    padding: 0.6rem 2rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookies-accept:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookies-banner {
        padding: 1rem;
    }
    
    .cookies-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookies-content p {
        font-size: 0.9rem;
    }
    
    .cookies-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookies-accept {
        width: 100%;
        max-width: 200px;
    }
}

/* --- RTL/LTR Support --- */
html[dir="ltr"] .nav-container {
    flex-direction: row;
}

html[dir="ltr"] .hero-phone-large {
    direction: ltr;
}

html[dir="ltr"] .contact-form input[type="tel"],
html[dir="ltr"] .contact-form input[type="email"] {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .contact-form,
html[dir="ltr"] .deposit-info {
    text-align: left;
}

html[dir="ltr"] .form-group label {
    text-align: left;
}

html[dir="ltr"] .about-list li {
    padding-right: 0;
    padding-left: 1.3rem;
    text-align: left;
}

html[dir="ltr"] .about-list li::before {
    right: auto;
    left: 0;
}

/* ============================================
   FINAL OVERRIDES - Language Selector
   Must be at the end to override all other styles
   ============================================ */
.language-selector select,
nav .language-selector select,
.navbar .language-selector select,
#language-selector {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: rgba(10, 22, 40, 0.9) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a962' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.5rem center !important;
    padding: 0.5rem 0.8rem 0.5rem 1.8rem !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    min-width: 100px !important;
}

html[dir="ltr"] .language-selector select,
html[dir="ltr"] nav .language-selector select,
html[dir="ltr"] .navbar .language-selector select,
html[dir="ltr"] #language-selector {
    background-position: right 0.5rem center !important;
    padding: 0.5rem 1.8rem 0.5rem 0.8rem !important;
}

.language-selector select:hover,
nav .language-selector select:hover,
#language-selector:hover {
    background-color: rgba(201, 169, 98, 0.15) !important;
}

.language-selector select option,
#language-selector option {
    background: var(--navy) !important;
    color: var(--white) !important;
}
