/* ==========================================================================
   1. GLOBALE DRIFTSINNSTILLINGER
   ========================================================================== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    display: block; /* Hindrer elementer i å strekke seg horisontalt på body */
    color: #1e272c;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #1e272c;
    margin-top: 0;
}

p {
    color: #475569;
    line-height: 1.6;
}

/* ==========================================================================
   2. NAVIGASJONSMENY
   ========================================================================== */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    display: block;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.brand-clean { font-weight: 300; letter-spacing: 1px; font-size: 1.3rem; }
.brand-bold { font-weight: 700; color: #27ae60; font-size: 1.3rem; }

.nav-phone {
    color: #1e272c;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap; /* Hindrer at nummeret knekker over flere linjer */
    display: inline-block; /* Sikrer at elementet respekterer nowrap ordentlig */
}

/* ==========================================================================
   3. SPLITTET LAYOUT (SKJEMA & FLYERTEKST)
   ========================================================================== */
.booking-split-section {
    padding: 40px 0;
    background-color: #f4f7f6;
    display: block;
    width: 100%;
}

.split-container {
    display: flex;
    flex-direction: column; /* Standard mobil: Legges under hverandre */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.split-column {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* --- VENSTRE SPALTE: SKJEMAET --- */
.form-wrapper {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.form-wrapper h2 { text-align: center; font-size: 1.7rem; margin-bottom: 8px; }
.form-intro { text-align: center; color: #7f8c8d; margin-bottom: 2rem; font-size: 0.95rem; }

form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; width: 100%; }

label { font-size: 0.9rem; font-weight: bold; color: #34495e; margin-bottom: 0.4rem; }
input, select#timePicker { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #dcdde1; 
    border-radius: 6px; 
    background-color: white; 
    box-sizing: border-box;
    font-size: 1rem;
}

button.btn-submit {
    background-color: #27ae60;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}
button.btn-submit:hover { background-color: #219150; }

/* --- HØYRE SPALTE: FLYER-INFORMASJON --- */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.info-hero p {
    font-size: 1.1rem;
    color: #475569;
    text-align: left;
    margin-bottom: 15px;
}

/* Badges for fjerning */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background-color: #e8f8f0;
    color: #27ae60;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Informasjonskortene */
.info-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

.info-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.info-card p { margin: 0; color: #475569; text-align: left; }

.painting-card { border-left: 5px solid #27ae60; }
.vaktmester-card { border-left: 5px solid #3b82f6; }

/* Liste inni vaktmesterkortet */
.vaktmester-card ul {
    padding-left: 0;
    list-style: none;
    margin: 15px 0 0 0;
}

.vaktmester-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #475569;
}

.vaktmester-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
    top: -2px;
}

/* De to fordelene nederst (USP) */
.info-usp-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-usp {
    flex: 1;
    background: #e8f8f0;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #c2ebd4;
    box-sizing: border-box;
}

.mini-usp strong { display: block; color: #1e272c; margin-bottom: 5px; font-size: 1.05rem; }
.mini-usp p { margin: 0; font-size: 0.9rem; color: #34495e; text-align: left; }

/* ==========================================================================
   4. SIDEFOOTER
   ========================================================================== */
.site-footer {
    background-color: #1e272c;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    display: block;
    width: 100%;
}

.footer-contact {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.footer-contact a {
    white-space: nowrap;
}

.site-footer .company-name {
    color: #94a3b8;
    font-weight: normal !important; /* Tvinger denne linjen til å ikke være fet */
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Fikser at telefonnumre blir blå og uleselige på mobil */
.site-footer a, 
.site-footer p a,
.footer-contact a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ==========================================================================
   5. MEDIEQUERIES (PC-SKJERMER)
   ========================================================================== */
@media (min-width: 992px) {
    .split-container {
        flex-direction: row; /* Slår på 50/50 spalter på PC */
        align-items: flex-start;
    }
    
    .form-row {
        flex-direction: row; /* Legger skjemafelt (f.eks Postnr/sted) side om side */
    }
    
    .form-row .form-group {
        flex: 1;
    }
    
    /* Retningsstyring av bredder i adressefelt-linjer */
    .flex-2 { flex: 2 !important; }
    .flex-1 { flex: 1 !important; }

    .info-usp-container {
        flex-direction: row; /* Legger de to fordelene side om side på PC */
    }
}

/* Flytende knapp - Synlig på både mobil og PC */
.floating-booking-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #2b6cb0; /* Hovedfarge */
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Sikrer at den alltid ligger øverst */
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hover-effekt på PC */
.floating-booking-btn:hover {
    background-color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Tilpassing for mindre mobilskjermer */
@media (max-width: 480px) {
    .floating-booking-btn {
        bottom: 15px;
        right: 15px;
        left: 15px; /* Strekker seg over bunnen på mobil for bedre trykkflate */
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
}
