
:root {
    --primary-blue: #3a4a6b;
    --primary-green: #38b86a;
    --accent-blue: #27a9e1;
    --text-dark: #222;
    --text-light: #f9f9f9;
    --bg-light: #ffffff;
    --bg-off-white: #fcfcfc;
    --border-color: #eee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.07);
    --eu-blue: #003399;
    --eu-gold: #FFCC00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 4rem 0; }
h1, h2, h3 { font-weight: 700; color: var(--primary-blue); line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }

.section-subheader {
    text-align: center; font-size: 1.1rem; color: #555;
    max-width: 750px; margin: 0 auto 3.5rem auto;
}

.btn {
    display: inline-block; text-decoration: none; padding: 12px 28px;
    font-weight: 600; border-radius: 50px; transition: all 0.3s ease;
    border: 2px solid transparent; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--primary-green); color: #fff; }
.btn-primary:hover { background: #2ea05b; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--bg-light); color: var(--primary-blue); border-color: var(--border-color); }
.btn-secondary:hover { border-color: var(--primary-green); color: var(--primary-green); }

/* Purchase button enhancements */
.checkout-btn { position: relative; font-size: 1rem; }
.checkout-btn i { margin-right: 8px; font-size: 1.1rem; }
.checkout-btn::before {
    content: '👆 Click to purchase'; position: absolute; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%); background: var(--primary-blue); color: white; padding: 8px 16px;
    border-radius: 8px; font-size: 0.8rem; white-space: nowrap; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; pointer-events: none; z-index: 100;
}
.checkout-btn::after {
    content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%;
    transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--primary-blue);
    opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; z-index: 100;
}
.checkout-btn:hover::before, .checkout-btn:hover::after { opacity: 1; visibility: visible; }

/* Navigation */
.navbar { 
    position: sticky; 
    top: 60px; /* This MUST match the height of your promo banner */
    background: var(--bg-light); 
    padding: 1rem 0; 
    border-bottom: 1px solid var(--border-color); 
    z-index: 1000; 
    box-shadow: var(--shadow); 
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { max-width: 200px; height: auto; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: #555; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-green); }
.nav-cta { margin-left: 2rem; white-space: nowrap; }
#nav-toggle { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: 1rem; }
.nav-toggle span { width: 24px; height: 3px; background: #333; border-radius: 2px; }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-light); flex-direction: column; align-items: flex-start; padding: 1.5rem; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow); display: none; }
    .nav-links li { margin: 0 0 1rem 0; }
    #nav-toggle:checked ~ .nav-links { display: flex; }
}

/* Hero */
#hero { background: var(--bg-off-white); text-align: center; padding: 6rem 0; }
#hero h1 span { color: var(--primary-green); }
#hero p { font-size: 1.25rem; color: #444; margin: 1.5rem 0 2.5rem 0; max-width: 800px; margin-inline: auto; }

/* Sovereignty Section */
#sovereignty { background: #f4f7f6; border-top: 1px solid var(--border-color); }
.sov-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 4rem; }
.sov-content { flex: 1; min-width: 300px; }
.sov-badge-box { flex: 1; min-width: 300px; text-align: center; }
.sov-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.sov-mini-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: var(--shadow); text-align: center; }
.sov-mini-card i { font-size: 2.5rem; color: var(--primary-green); display: block; margin-bottom: 0.75rem; }

/* EU Flag Container */
.eu-flag-container { padding: 3rem; border: 2px solid var(--primary-green); border-radius: 30px; background: white; display: inline-block; box-shadow: var(--shadow-lg); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: #fff; padding: 2.5rem; border: 1px solid var(--border-color); border-radius: 12px; transition: 0.3s; text-align: center;}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card i { font-size: 2.5rem; color: var(--primary-green); display: block; margin-bottom: 1rem; }

/* Verticals Section */
#verticals { background: white; text-align: center; }
.verticals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.vertical-card { padding: 2rem; border-radius: 12px; border: 1px solid #f0f0f0; transition: 0.3s; text-align: center; }
.vertical-card:hover { border-color: var(--primary-green); background: #fafffc; }
.vertical-card i { font-size: 2rem; color: var(--primary-green); display: block; margin-bottom: 0.5rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pricing-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 2.5rem; display: flex; flex-direction: column; position: relative; transition: 0.3s; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-green); }
.pricing-toggle.active { background: white !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* FAQ Styling */
.faq-question:hover { color: var(--primary-green); }
.faq-answer { transition: max-height 0.3s ease; }

.pricing-card.popular { border: 3px solid var(--primary-green); transform: scale(1.03); }
.pricing-card.popular:hover { transform: scale(1.05); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary-green); color: #fff; padding: 4px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.price-min-label { font-size: 0.8rem; font-weight: 700; color: #888; text-transform: uppercase; margin-bottom: 5px; }
.price { font-size: 3rem; font-weight: 800; margin: 0; }
.price-note { color: #777; font-size: 0.9rem; margin-bottom: 1rem; }
.setup-fee-note { background: #f0f8ff; padding: 8px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; color: var(--primary-blue); }
.features-list { list-style: none; flex-grow: 1; margin-bottom: 2rem; }
.features-list li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.features-list i { color: var(--primary-green); margin-top: 3px; }
#pricing h2 { margin-bottom: 3rem; }

/* Contact Section */
#contact-section { background: var(--bg-off-white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; background: white; padding: 3rem; border-radius: 15px; border: 1px solid var(--border-color); }

/* Modals */
/*.modal-backdrop { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; } */
/* .modal-backdrop.show { display: flex; opacity: 1; visibility: visible; } */
.modal-content { background: #fff; padding: 2.5rem; border-radius: 12px; width: 95%; max-width: 550px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-content.checkout-modal { max-width: 700px; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #999; }

/* Checkout Modal Specific Styles */
.checkout-header { text-align: center; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); margin-bottom: 2rem; }
.checkout-summary { background: var(--bg-off-white); padding: 1.5rem; border-radius: 10px; margin-bottom: 2rem; }
.checkout-summary h4 { color: var(--primary-blue); margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid var(--border-color); margin-top: 1rem; padding-top: 1rem; font-weight: 700; font-size: 1.1rem; color: var(--primary-blue); }

.seat-selector { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.seat-selector label { font-weight: 600; flex: 1; }
.seat-counter { display: flex; align-items: center; gap: 0.5rem; background: white; border: 1px solid var(--border-color); border-radius: 50px; padding: 5px; }
.seat-counter button { background: var(--primary-green); color: white; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; font-weight: 700; transition: 0.3s; }
.seat-counter button:hover { background: #2ea05b; transform: scale(1.1); }
.seat-counter button:disabled { background: #ccc; cursor: not-allowed; transform: scale(1); }
.seat-counter input { width: 60px; text-align: center; border: none; font-weight: 700; font-size: 1.1rem; color: var(--primary-blue); }
.plan-badge { display: inline-block; padding: 5px 15px; background: var(--primary-green); color: white; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-family: inherit; font-size: 1rem; }
#add-time-slot-btn { background: none; border: 2px dashed #ddd; color: var(--primary-blue); padding: 8px; width: 100%; border-radius: 8px; cursor: pointer; font-weight: 600; margin-top: 10px; }

/* Stripe Card Element */
#card-errors { color: #dc3545; font-size: 0.85rem; margin-top: 0.5rem; min-height: 20px; }
.processing { opacity: 0.6; pointer-events: none; }

footer { background: var(--primary-blue); color: #fff; padding: 4rem 0; text-align: center; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; }
.footer-links a { color: #fff; opacity: 0.8; text-decoration: none; }
footer .footer-logo img { height: 40px; filter: brightness(0) invert(1) opacity(0.8); }

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

@media (max-width: 850px) {
    .contact-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.8rem; }
    .sov-flex { flex-direction: column; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* Ensure the modal content is always on top of the backdrop */
.modal-backdrop {
    display: none; /* Default state */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    display: flex !important; /* Forced by JS, but good to have here */
    opacity: 1;
}

.modal-content { background: #fff; padding: 2.5rem; border-radius: 12px; width: 95%; max-width: 550px; position: relative; max-height: 90vh; overflow-y: auto; z-index: 3001; pointer-events: auto !important; }

/* Ensure Stripe iframe is reachable */
#card-element {
    min-height: 40px;
    padding: 12px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: text;
}