/* ==========================================================================
   SHARED MASTER STYLESHEET — Tryg Flytning / Krone Flyt site family
   --------------------------------------------------------------------------
   PORTING RULE (CSS-2 / PLAYBOOK §8): only the :root brand-token block below
   — and its dark-mode overrides — changes per site. Never fork structural
   selectors per site; port structural improvements back into this master.
   ========================================================================== */

/* --- 1. CSS VARIABLES — THE PER-SITE BRAND BLOCK ---
   This :root block (and the dark-mode overrides that follow) is the ONLY part
   that differs between sites. To port to another brand, change these tokens
   (and the logo/media files) — nothing else. */
:root {
    --bg-color: #f9f9f9;
    --surface-color: #ffffff;
    --nav-bg: #ffffff; /* New: Dedicated nav background */
    --text-color: #333333;
    --primary-color: #333333;
    --footer-bg: #222222;
    --hero-bg: #222222; /* New: Dedicated hero background */
    --accent-color: #D52B1E; /* Krone Red */
    --border-color: #dddddd;
    --box-bg: #f1f1f1;
    --google-blue: #4285F4;
    --text-muted: #6b6b6b;   /* A11Y: passes AA (>=4.5:1) on --bg/--surface (was #888, 3.5:1) */
    --footer-muted: #a6a6a6; /* A11Y: muted text on the always-dark footer, AA on #222 */
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1c1c1c; /* Lifted slightly from #121212 */
        --surface-color: #242424; /* Lifted to match the new background */
        --nav-bg: #404040; /* 20% lighter to make the logo visible */
        --text-color: #e0e0e0;
        --primary-color: #ffffff;
        --footer-bg: #0a0a0a;
        --hero-bg: #000000; /* Pure black. Adjust if you want a softer dark gray */
        --accent-color: #ff4d4d;
        --border-color: #3d3d3d;
        --box-bg: #2a2a2a;
        --text-muted: #b5b5b5;   /* A11Y: muted text on dark surfaces, AA on #242424 */
        --footer-muted: #b0b0b0; /* footer even darker in dark mode, so this stays AA */
    }
}

/* --- 2. BASE STYLES & TYPOGRAPHY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
h1, h2, h3 { color: var(--primary-color); }

/* --- A11Y: skip-to-content link + keyboard focus indicator --- */
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 1000;
    background-color: var(--accent-color); color: #ffffff;
    padding: 10px 16px; border-radius: 0 0 6px 6px; font-weight: bold;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #ffffff; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }

/* --- 3. LAYOUT UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; }
.container-small { max-width: 800px; margin: 0 auto; }
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2em; }
.mt-auto { margin-top: auto; }
.highlight { color: var(--accent-color); }

/* --- 4. HEADER & NAVIGATION --- */
header {
    background-color: var(--surface-color);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo a { display: inline-block; }
.logo img { max-height: 83px; width: auto; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }
.nav-wrapper { display: flex; align-items: center; gap: 40px; }
.nav-container { display: flex; align-items: center; gap: 40px; }
.nav-phone { font-weight: bold; color: var(--accent-color); font-size: 1.2em; }
.nav-phone:hover { color: var(--primary-color); }
header nav ul { list-style: none; display: flex; gap: 20px; }
header nav a { font-weight: bold; }
header nav a:hover { color: var(--accent-color); }
/* Hamburger toggle — hidden on desktop, shown <=768px */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: none;
    border-radius: 6px; cursor: pointer;
}
.nav-toggle-bar {
    display: block; width: 24px; height: 2px; background-color: var(--text-color);
    border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 5. BUTTONS --- */
.btn-primary, .btn-submit {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover, .btn-submit:hover { background-color: #b32419; transform: translateY(-2px); }
.btn-secondary {
    display: inline-block; background-color: transparent; border: 2px solid #ffffff;
    color: #ffffff; padding: 15px 30px; border-radius: 5px; font-size: 1.1em; font-weight: bold;
    text-align: center; transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover { background-color: #ffffff; color: var(--footer-bg); }
.btn-outline {
    display: inline-block; padding: 13px 28px; border: 2px solid var(--text-color);
    color: var(--text-color); font-weight: bold; border-radius: 5px; font-size: 1.1em; transition: opacity 0.3s ease;
}
.btn-outline:hover { opacity: 0.6; }
.btn-large { padding: 15px 35px; }
.btn-block { width: 100%; display: inline-block; }
.btn-submit { width: 100%; margin-top: 10px; }

/* --- 6. HERO SECTION --- */
.hero { background-color: var(--footer-bg); padding: 100px 5%; text-align: center; border-bottom: 5px solid var(--accent-color); }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-title { color: #ffffff; font-size: 3em; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.3em; margin-bottom: 35px; color: #f1f1f1; line-height: 1.6; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- 7. TRUST SIGNALS & SERVICES --- */
.trust-signals-container { padding: 60px 5%; }
.trust-signals { display: flex; justify-content: center; gap: 40px; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; }
.feature { flex: 1; min-width: 300px; max-width: 450px; text-align: center; padding: 30px; background-color: var(--surface-color); border-radius: 8px; border-top: 4px solid var(--accent-color); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.feature h3 { display: flex; align-items: center; justify-content: center; margin-bottom: 15px; font-size: 1.3em; }
.inline-tryg-logo { height: 1.2em; width: auto; margin-right: 10px; vertical-align: middle; }

.core-services-section { padding: 60px 5%; background-color: var(--surface-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.service-box { text-align: center; }
.service-icon-large, .service-icon { font-size: 3em; margin-bottom: 15px; }
.service-title { margin-bottom: 10px; }

/* --- 8. PRICING SECTION --- */
.pricing-section { padding: 60px 5%; background-color: var(--bg-color); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; justify-content: center; }
.pricing-card {
    background-color: var(--surface-color); border: 2px solid var(--border-color);
    border-radius: 10px; padding: 30px 20px; text-align: center; position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    min-width: 0; overflow-wrap: break-word; /* allow cards to shrink below min-content in narrow grids */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--accent-color); }
.pricing-card.popular { border: 3px solid var(--accent-color); }
.custom-package { border: 2px solid var(--accent-color); background-color: rgba(213, 43, 30, 0.03); }
.custom-package-subtitle { font-size: 0.9em; color: var(--text-muted); margin-top: -10px; margin-bottom: 20px; }
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background-color: var(--accent-color); color: #fff; padding: 5px 15px;
    border-radius: 20px; font-size: 0.9em; font-weight: bold;
}
.pricing-card h3 { font-size: 1.5em; margin-bottom: 15px; }
.pricing-card .price { font-size: 2.5em; font-weight: bold; margin-bottom: 5px; }
.pricing-card .price span { font-size: 0.4em; color: var(--text-muted); font-weight: normal; }
.tax-info { font-size: 0.85em; color: var(--text-muted); margin-bottom: 25px; }

.check-icon { width: 18px; height: 18px; color: var(--accent-color); margin-right: 10px; flex-shrink: 0; }
.pricing-features { list-style: none; margin-bottom: 25px; text-align: left; flex-grow: 1; }
.pricing-features.compact { font-size: 0.95em; }
.pricing-features li { display: flex; align-items: center; margin-bottom: 12px; font-size: 0.95em; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.pricing-features li:last-child { border-bottom: none; }
.services-link-wrapper { text-align: center; margin-top: 25px; }
.services-link { color: var(--accent-color); font-weight: bold; text-decoration: underline; font-size: 1.1em; }

/* --- 9. PAYMENT METHODS --- */
.payment-methods-section { padding: 40px 5%; background-color: var(--bg-color); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.payment-title { font-size: 1.4em; margin-bottom: 25px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.payment-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; }
.payment-item { display: flex; align-items: center; gap: 10px; font-size: 1.1em; font-weight: 500; }
.payment-icon { font-size: 1.4em; }

/* --- 10. FAQ ACCORDION --- */
.faq-section { padding: 80px 5%; background-color: var(--surface-color); }
.faq-accordion { display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--bg-color); }
.faq-question {
    width: 100%; text-align: left; padding: 20px; background: none; border: none;
    font-size: 1.1em; font-weight: bold; color: var(--primary-color); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease; font-family: inherit;
}
.faq-question:hover { background-color: rgba(0,0,0,0.02); }
.faq-question.active { color: var(--accent-color); }
.faq-icon { font-size: 1.5em; font-weight: normal; color: var(--accent-color); transition: transform 0.3s ease; }

/* Pure CSS Grid Height Animation */
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-out; background-color: var(--surface-color); }
.faq-answer.is-open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { padding: 0 20px 20px 20px; margin: 0; color: var(--text-color); }

.terms-link-wrapper { text-align: center; margin-top: 40px; }
.terms-link { color: var(--accent-color); font-weight: bold; text-decoration: underline; }

/* --- 11. LEGAL PAGES (Restored for terms.php & privacy.php) --- */
.legal-section { padding: 60px 5%; background-color: var(--bg-color); }
.legal-container {
    max-width: 800px; margin: 0 auto; background-color: var(--surface-color); padding: 60px;
    border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--accent-color);
}
.legal-header { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.legal-logos { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 30px; }
.legal-logos img { max-height: 50px; width: auto; }
.legal-container h1 { color: var(--primary-color); font-size: 2.2em; margin-bottom: 10px; overflow-wrap: break-word; hyphens: auto; }
.last-updated { color: var(--text-muted); font-style: italic; font-size: 0.9em; }
.legal-container h2 { color: var(--primary-color); font-size: 1.4em; margin-top: 40px; margin-bottom: 15px; }
.legal-container p { margin-bottom: 15px; line-height: 1.7; color: var(--text-color); }
.legal-container ul { margin-bottom: 25px; padding-left: 20px; }
.legal-container li { margin-bottom: 10px; line-height: 1.6; color: var(--text-color); }

/* --- 12. CONTACT TEASER & REVIEWS --- */
.contact-teaser { background-color: var(--bg-color); padding: 80px 5%; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.teaser-title { font-size: 2.2em; margin-bottom: 20px; }
.teaser-text { font-size: 1.1em; margin-bottom: 35px; line-height: 1.8; }

.reviews-section { padding: 60px 5%; background-color: var(--surface-color); }
.trustpilot-wrapper { text-align: center; margin-bottom: 40px; }
.reviews-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.review-card {
    background-color: var(--surface-color); border: 1px solid var(--border-color);
    padding: 30px; border-radius: 8px; flex: 1; min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--google-blue); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.stars { font-size: 1.2em; letter-spacing: 2px; }
.review-platform { font-size: 0.8em; font-weight: bold; padding: 4px 10px; border-radius: 4px; color: #ffffff !important; }
.review-platform.google { background-color: var(--google-blue); }
.review-text { font-style: italic; margin-bottom: 20px; flex-grow: 1; line-height: 1.6;}
.review-author { font-weight: bold; color: var(--primary-color); text-align: right; }

/* --- 13. FOOTER & FLOATING BUTTON --- */
footer { background-color: var(--footer-bg); color: #f1f1f1; padding: 60px 5% 20px 5%; margin-top: 40px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; gap: 40px; }
.footer-info, .footer-hours, .footer-links { flex: 1; min-width: 250px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 15px; margin-bottom: 20px; transition: transform 0.3s ease; }
.footer-brand-link:hover { transform: scale(1.05); }
.footer-logo { max-height: 45px; width: auto; }
.footer-brand-link h3 { color: #ffffff; font-size: 1.5em; transition: color 0.3s ease; }
.footer-brand-link:hover h3 { color: var(--accent-color); }
.clean-link { color: #cccccc; transition: color 0.3s ease;}
.clean-link:hover { color: var(--accent-color); }
.footer-insurance { margin-top: 20px; color: #ffffff !important; font-size: 1.1em; }
.footer-tryg-icon { height: 1.2em; width: auto; vertical-align: middle; margin-right: 8px; margin-bottom: 3px; }

.footer-links h3, .footer-hours h3 { color: #ffffff; margin-bottom: 20px; font-size: 1.4em; }
.footer-links nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #cccccc; display: block; width: fit-content; transition: color 0.3s ease, transform 0.3s ease; font-weight: 500;}
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #444444; font-size: 0.9em; color: var(--footer-muted); }

.floating-booking-btn {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--accent-color); color: #ffffff;
    padding: 15px 25px; border-radius: 50px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(213, 43, 30, 0.4); font-weight: bold; font-size: 1.1em;
    z-index: 1000; text-decoration: none; transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.floating-booking-btn:hover { background-color: #b32419; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(213, 43, 30, 0.5); color: #ffffff; }

/* --- 13.5 SUB-PAGE LAYOUT & COMPONENTS (CSS-1: inline-style purge) ---
   Structural classes shared by contact/services/about/job. Themeable colours
   use the :root tokens; muted greys are kept as literals (matches the rest of
   this file, and is A11Y-1's job to tokenise). Keep this block portable. */

/* Layout helpers */
.container-medium { max-width: 1000px; margin: 0 auto; }
.container-narrow { max-width: 900px; margin: 0 auto; }
.section-pad { padding: 60px 5%; }
.bg-surface { background-color: var(--surface-color); }
.bg-default { background-color: var(--bg-color); }

/* Spacing utilities */
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }

/* Reusable inline links */
.link-accent { color: var(--accent-color); font-weight: bold; }
.link-accent-underline { color: var(--accent-color); font-weight: bold; text-decoration: underline; }

/* Sub-page hero (contact/services/about = light, job = dark) */
.page-hero { padding: 60px 5%; text-align: center; border-bottom: 5px solid var(--accent-color); background-color: var(--surface-color); }
.page-hero.page-hero-dark { background-color: var(--footer-bg); }
.page-hero-title { color: var(--primary-color); font-size: 2.5em; margin-bottom: 15px; }
.page-hero-lead { font-size: 1.2em; max-width: 700px; margin: 0 auto; color: var(--text-color); }
.page-hero-dark .page-hero-title { color: #ffffff; }
.page-hero-dark .page-hero-lead { color: #f1f1f1; }

/* Services page: pricing note, accent SVG icons, inverse button, narrowed grid */
.pricing-note { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9em; }
.grid-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.service-icon svg { color: var(--accent-color); }
.btn-inverse { background-color: #ffffff; color: var(--accent-color) !important; }

/* Dark call-out band (services B2B) */
.b2b-section { padding: 60px 5%; background-color: var(--footer-bg); color: #ffffff; }
.b2b-title { color: var(--accent-color); font-size: 2.2em; margin-bottom: 20px; }
.b2b-text { font-size: 1.1em; line-height: 1.8; margin-bottom: 30px; color: #f1f1f1; }

/* Generic section padding hooks (bg supplied via .bg-* utility) */
.services-section { padding: 60px 5%; }
.contact-section { padding: 60px 5%; }

/* Job page: requirement panel */
.info-panel { max-width: 800px; margin: 0 auto; border: 1px solid var(--border-color); padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.panel-title { margin-bottom: 20px; }
.panel-subtitle { margin-bottom: 15px; border-top: 1px solid var(--border-color); padding-top: 25px; }
.check-list { list-style: none; padding: 0; margin-bottom: 30px; font-size: 1.1em; line-height: 1.8; }
.check-mark { color: var(--accent-color); font-weight: bold; margin-right: 10px; }
.contact-box { background-color: var(--bg-color); padding: 20px; border-radius: 8px; text-align: center; }
.contact-box p { font-size: 1.2em; margin-bottom: 10px; }
.contact-box p:last-child { margin-bottom: 0; }

/* About page: team section */
.about-heading { text-align: center; font-size: 2.2em; margin-bottom: 15px; }
.about-intro { text-align: center; font-size: 1.1em; color: var(--text-color); margin-bottom: 50px; max-width: 800px; margin-left: auto; margin-right: auto; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.team-card { background-color: var(--surface-color); padding: 35px 25px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-align: center; border: 1px solid var(--border-color); }
.team-icon { margin-bottom: 20px; display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background-color: rgba(213, 43, 30, 0.1); }
.team-icon svg { color: var(--accent-color); }
.team-card h3 { color: var(--primary-color); font-size: 1.4em; margin-bottom: 5px; }
.team-role { color: var(--accent-color); font-weight: bold; margin-bottom: 15px; text-transform: uppercase; font-size: 0.8em; letter-spacing: 1px; }
.team-card p { color: var(--text-color); line-height: 1.6; font-size: 0.95em; }

/* Contact page: two-column layout */
.contact-page-section { padding: 80px 5%; background-color: var(--bg-color); }
.contact-layout { max-width: 1200px; margin: 0 auto; display: flex; gap: 50px; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 300px; }
.contact-form-container { flex: 1.5; min-width: 300px; }
.contact-subheading { color: var(--primary-color); margin-bottom: 25px; font-size: 1.8em; }

/* Contact: info card */
.info-card { background-color: var(--surface-color); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 30px; border-left: 4px solid var(--accent-color); }
.info-line { font-size: 1.1em; margin-bottom: 15px; display: flex; align-items: center; }
.info-line-top { margin-top: 25px; margin-bottom: 0; align-items: flex-start; }
.info-icon { margin-right: 10px; color: var(--accent-color); flex-shrink: 0; }
.info-icon-top { margin-top: 4px; }
.info-note { font-size: 0.9em; color: var(--text-muted); }

/* Contact: cookie-free map card */
.map-container { background-color: var(--surface-color); padding: 35px 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; border-left: 4px solid var(--accent-color); }
.map-icon { color: var(--accent-color); margin-bottom: 12px; }
.map-address { font-size: 1.15em; margin-bottom: 18px; color: var(--text-color); }
.map-note { font-size: 0.8em; color: var(--text-muted); margin-top: 14px; }
.btn-sm { padding: 12px 25px; font-size: 1em; }

/* Contact: form shell + status alerts */
.contact-form { background-color: var(--surface-color); padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.offscreen { position: absolute; left: -9999px; top: -9999px; }
.form-alert { padding: 20px; border-radius: 5px; margin-bottom: 25px; border-left: 5px solid; }
.form-alert-success { background-color: #d4edda; color: #155724; border-left-color: #28a745; }
.form-alert-error { background-color: #f8d7da; color: #721c24; border-left-color: #dc3545; }
.form-alert-wait { background-color: #fff3cd; color: #856404; border-left-color: #ffeeba; }
.form-alert-title { font-size: 1.1em; }
.form-alert-fine { font-size: 0.85em; opacity: 0.8; }
.form-alert-error a { color: #721c24; font-weight: bold; text-decoration: underline; }

/* Contact: form fields */
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-col { flex: 1; min-width: 200px; }
.form-group-divider { padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.form-box { flex: 1; min-width: 250px; background-color: rgba(0,0,0,0.02); padding: 15px; border-radius: 6px; border: 1px solid var(--border-color); }
.form-highlight { background-color: rgba(213, 43, 30, 0.05); padding: 20px; border-left: 4px solid var(--accent-color); border-radius: 4px; }
.form-label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--primary-color); }
.form-legend { display: block; margin-bottom: 10px; font-weight: bold; color: var(--primary-color); }
.form-legend-lg { margin-bottom: 12px; font-size: 1.1em; }
.form-sublabel { font-size: 0.85em; color: var(--text-muted); }
.form-hint { font-size: 0.85em; color: var(--text-muted); margin-bottom: 10px; }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; background-color: var(--bg-color); color: var(--text-color); }
.form-control-boxed { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid var(--border-color); border-radius: 4px; background-color: var(--surface-color); color: var(--text-color); }
.form-control-mini { width: 100%; padding: 8px; border: 1px solid var(--border-color); border-radius: 4px; background-color: var(--surface-color); color: var(--text-color); }
.form-textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; background-color: var(--surface-color); color: var(--text-color); font-family: inherit; resize: vertical; }
.form-inline-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-inline-col { flex: 1; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-option { cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--text-color); }
.checkbox-stack { display: flex; flex-direction: column; gap: 12px; }
.check-option { cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--text-color); }
.form-check-input { width: auto; accent-color: var(--accent-color); }
.form-check-input-top { margin-top: 4px; }
.consent-label { font-weight: normal; color: var(--text-color); cursor: pointer; display: flex; align-items: flex-start; gap: 10px; font-size: 0.95em; line-height: 1.5; }
.btn-xl { padding: 18px; font-size: 1.2em; }
.form-footnote { text-align: center; font-size: 0.85em; color: var(--text-muted); margin-top: 20px; line-height: 1.6; }

/* --- 13.6 SHARED-LAYER PURGE (footer / legal / 404 / reviews inline-style removal) --- */
.error-code { font-size: 4em; }
.legal-logos img.legal-logo-tryg { max-height: 40px; }
.legal-container ul.legal-sublist { margin-top: 5px; margin-bottom: 5px; list-style-type: circle; }
.footer-address { font-style: normal; line-height: 1.8; margin-bottom: 20px; }
.footer-hours-open { color: #cccccc; margin-bottom: 5px; }
.footer-hours-note { color: var(--footer-muted); font-size: 0.9em; margin-bottom: 20px; }
.floating-booking-btn svg { margin-right: 8px; }
.trustpilot-link { color: var(--text-color); font-weight: bold; text-decoration: none; font-size: 1.05em; }
.trustpilot-green { color: #00B67A; }

/* --- 14. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .pricing-card { padding: 20px 15px; }
    .pricing-card h3 { font-size: 1.2em; }
    .pricing-card .price { font-size: 1.8em; }
    .popular-badge { font-size: 0.75em; top: -12px; }
}

@media (max-width: 768px) {
    header { flex-wrap: wrap; padding: 12px 5%; }
    .nav-toggle { display: flex; margin-left: auto; }
    .nav-wrapper { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-top: 10px; }
    .nav-wrapper.is-open { display: flex; }
    header nav { width: 100%; }
    header nav ul { flex-direction: column; gap: 0; }
    header nav li { border-top: 1px solid var(--border-color); }
    header nav a { display: block; padding: 14px 8px; text-align: center; }
    .nav-container { flex-direction: column; gap: 0; padding-top: 8px; }
    .nav-phone { display: block; padding: 12px; font-size: 1.3em; }
    .trust-signals { flex-direction: column; }
    .feature { max-width: 100%; }
    .footer-container { flex-direction: column; gap: 30px; }
    .legal-container { padding: 30px 20px; }
    .legal-container h1 { font-size: 1.7em; }
    .legal-logos { flex-direction: column; gap: 15px; }
}

@media (max-width: 480px) {
    .floating-booking-btn { bottom: 20px; right: 20px; padding: 15px; border-radius: 50%; }
    .float-text { display: none; }
    .floating-booking-btn svg { margin-right: 0 !important; }
}

/* --- 15. DATE INPUT — whole field opens the picker ---------------------------
   Native date inputs only open the picker from the tiny calendar glyph, which is
   a poor tap target on mobile. We stretch the (invisible) picker trigger across
   the entire field and draw our own calendar icon instead. No JS, no external
   asset — the icon is an inline data URI, so the zero-third-party rule holds. */
input[type="date"].form-control {
    position: relative;
    cursor: pointer;
    min-height: 44px;   /* WCAG touch-target floor */
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}
@media (prefers-color-scheme: dark) {
    input[type="date"].form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b5b5b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
}
