/* --- Generelle Stiler & CSS Variabler --- */
:root {
    --primary-color: #0d47a1; /* Dyp, profesjonell blå */
    --secondary-color: #f57c00; /* Varm, energisk oransje */
    --dark-color: #212121;
    --light-color: #f9f9f9;
    --text-color: #333;
    --border-color: #e0e0e0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1140px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-size: 18px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}
.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    margin-top:0;
}
section > .container > p {
text-align: center;
max-width: 1000px;
margin-left: auto;
font-size: 24px;
margin-right: auto;
margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}
/* --- Knapper --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    margin: 5px;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 124, 0, 0.4);
}
.btn-secondary {
    background-color: #fff;
    color: var(--dark-color);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--light-color);
}

/* NY REGEL for "Start nå"-knappen */
.btn-xl {
    padding: 22px 55px; /* Mye større padding */
    font-size: 1.4rem;  /* Større skrift */
    font-weight: 700;
}


/* --- Hero Seksjon --- */
.hero-section {
    position: relative;
    color: #fff;
    padding: 100px 0; /* Økt padding for større skjermer */
    text-align: center;
    background-image: url('https://bildereperasjon.no/wp-content/uploads/2025/09/hero-bilde-mange-sma-restored-photos.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(5, 5, 5, 1), rgba(0, 0, 0, 0.85));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-pre-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.9;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hero-title {
    font-size: 3.5rem; /* Justert størrelse */
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 5px;
}
.hero-subtitle {
    font-size: 1.6rem; /* Justert størrelse */
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 25px;
}
.hero-text {
    font-size: 1.1rem;
    max-width: 700px; /* Økt bredde */
    margin: 0 auto 35px auto;
}
.rating {
    margin-top: 35px;
    opacity: 0.85;
}
.rating p { margin: 0; }

/* --- Seksjoner --- */
section { padding: 80px 0; }
.usp-section {
    background-color: var(--light-color);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}
.usp-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}
.usp-item { padding: 10px; font-weight: 500; }
.features-section { background-color: var(--light-color); }

/* Gitter-layouts */
.features-grid, .portfolio-grid{
    display: grid;
    gap: 30px;
}
.features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); text-align: center; }
.portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.feature-icon { font-size: 3.5rem; }
.feature-icon img {
    width:300px;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}
.portfolio-item h4 { margin-bottom: 10px; font-size: 1rem; color: #555; text-align: center; }


/* GAMLE PRIS-REGLER ER FJERNET */


/* "Slik fungerer det"-seksjon */
.how-it-works-section {  }
.steps-grid {
    display: grid;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center; /* Sentrerer kolonnen i grid-containeren */
    grid-template-columns: 90%; /* Lager én kolonne som er 90% av bredden */
}
.step {
    display: flex;
    flex-direction: column; /* Stabler elementene (nummer og innhold) vertikalt */
    align-items: center;    /* Sentrerer de stablede elementene horisontalt */
    text-align: center;     /* Sentrerer all tekst (tittel og paragraf) */
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 0; /* Fjerner tidligere sidemargin */
    margin-bottom: 15px; /* Legger til litt luft under tallet */
    min-width: 40px;
    text-align: center;
    line-height: 1;
}
.step-content h4 { margin: 0 0 5px 0; }
.step-content p { margin: 0; color: #555; }
.cta-bottom { margin-top: 40px; }


/* --- Footer --- */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
}
.main-footer p { margin: 0; opacity: 0.8; }


/* === STILER FOR NY, FORBEDRET PRISSEKSJON === */
.pricing-section-modern {
    background-color: var(--light-color);
}
.pricing-section-modern .section-header p {
    margin-bottom: 4rem;
}
.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}
.pricing-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.pricing-details h3 {
    font-size: 1.8rem;
    margin-top: 0;
}
.pricing-details .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 10px 0;
}
.pricing-details .price span {
    color: var(--secondary-color);
}
.pricing-details .description {
    color: #555;
    margin-bottom: 2rem;
}
.included-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}
.included-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
}
.included-list svg {
    color: var(--secondary-color);
    margin-right: 12px;
    min-width: 24px;
}
.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.trust-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* === START: NYE REGLER FOR BILDE-SLIDER === */
.pricing-visual {
    /* Fjerner padding for å unngå mellomrom rundt slideren */
    padding: 0; 
}
.image-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: ew-resize;
    box-shadow: var(--box-shadow);
}
.image-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Forhindrer at bildet fanger opp museklikk */
}
.slider-before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-before-image img {
display: block;
    height: 100%;
    width: auto;
    object-fit: cover;
    max-width: none;
}
.slider-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Starter på 50%, endres av JavaScript */
    height: 100%;
    overflow: hidden; /* VIKTIG: Alt av bildet inni som går utenfor denne boksen, blir skjult. */
}
.slider-after-image img {
    /*
       Nøkkelen her er å tvinge bildet til å ha samme sideforhold (aspect-ratio)
       som hoved-containeren. Siden høyden er riktig, vil bredden
       automatisk justeres til å bli lik høyden, og dermed blir boksen kvadratisk.
       Dette gjør at object-fit fungerer likt for både før- og etter-bildet.
    */
    display: block;
    height: 100%;
    width: auto;
    object-fit: cover;
    max-width: none;
}
.slider-handle {
    position: absolute; /* Plasseres over bildene. */
    top: 0;
    left: 50%; /* Starter på 50%, samme som bredden over. */
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.slider-handle::before, .slider-handle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.slider-arrow-left, .slider-arrow-right {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 11;
}
.slider-arrow-left {
    border-width: 6px 8px 6px 0;
    border-color: transparent var(--dark-color) transparent transparent;
    margin-left: -12px;
}
.slider-arrow-right {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent var(--dark-color);
    margin-left: 12px;
}
.pricing-visual .visual-caption {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: #777;
}
/* === SLUTT: NYE REGLER FOR BILDE-SLIDER === */

/* === START: STILER FOR MODAL OPPLASTING === */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.upload-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}
.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s ease;
}
.upload-modal.is-visible .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
.modal-close:hover {
    color: var(--dark-color);
    transform: rotate(90deg);
}
.modal-header {
    padding: 30px 40px 20px 40px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.modal-title {
    margin: 0 0 20px 0;
    font-size: 1.8rem;
}
.progress-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.progress-step {
    flex-basis: 33.33%;
    text-align: center;
    color: #aaa;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--border-color);
    font-size: 0.9rem;
    position: relative;
}
.progress-step.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom-color: var(--primary-color);
}
.modal-body {
    padding: 30px 40px;
    overflow-y: auto;
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}
.step-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Gjenbruker stiler for opplastingsområde og felt fra forrige løsning */
.upload-area { position: relative; border: 3px dashed var(--border-color); border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: background-color 0.3s, border-color 0.3s; margin-bottom: 0; }
.upload-area:hover, .upload-area.drag-over { background-color: #eef; border-color: var(--primary-color); }
.upload-area-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upload-icon { color: var(--primary-color); margin-bottom: 15px; }
.upload-text { font-size: 1.2rem; color: var(--dark-color); margin: 0 0 10px 0; line-height: 1.5; }
.file-info { font-size: 0.9rem; color: #777; }
.file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.image-preview { display: none; max-width: 100%; max-height: 250px; border-radius: 8px; margin: 0 auto; }
.upload-area.file-selected .upload-area-content { display: none; }
.upload-area.file-selected .image-preview { display: block; }

.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-group input, .form-group textarea { padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: var(--font-family); }

.submission-status { text-align: center; }
.submission-status h3 { font-size: 1.6rem; margin-bottom: 15px; }
.submission-status p { max-width: 400px; margin: 0 auto 30px auto; }
.submission-status svg { margin-bottom: 20px; }
#submission-success, #submission-error { display: none; }
#submission-error svg { stroke: #c62828; } /* Rød farge for feil-ikon */
/* === SLUTT: STILER FOR MODAL OPPLASTING === */

/* === START: NYE STILER FOR KUNDEOMTALER === */
.testimonials-section {
    background-color: #fff;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}
.testimonial-item {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.testimonial-text {
    font-style: italic;
    margin: 0 0 15px 0;
    color: #555;
}
.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}
/* === SLUTT: NYE STILER FOR KUNDEOMTALER === */


/* === START: NYE STILER FOR FAQ-SEKSJON === */
.faq-section {
    background-color: var(--light-color);
}
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0 auto;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::-webkit-details-marker {
    display: none; /* Fjerner standard pil i Chrome/Safari */
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.2s ease-out;
}
.faq-answer {
    padding: 0 25px 20px 25px;
    color: #555;
    line-height: 1.8;
}
.faq-answer p {
    margin: 0;
}

/* --- Media Queries for Responsivitet --- */
@media (max-width: 992px) {
    .pricing-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pricing-visual {
        order: -1; /* Flytter bildet over teksten på mobil */
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
}
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero-pre-title {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    section > .container > p {
        font-size: 20px;
    }
    section {
        padding: 60px 0;
    }
    .usp-grid {
        flex-direction: column;
        gap: 10px;
    }

    .pricing-layout {
        padding: 30px;
    }
    .btn-xl {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
     .hero-subtitle {
        font-size: 1.1rem;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin: 0;
    }
    .trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    .badge-item {
        margin-bottom: 0;
    }
    .form-fields {
        grid-template-columns: 1fr;
    }
    .modal-body, .modal-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* === START: NYE REGLER FOR MODAL-VALG === */
.modal-choice-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.choice-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.choice-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.choice-btn svg {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.choice-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
}

.choice-btn small {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.email-display {
    text-align: center;
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.email-display p {
    margin: 0 0 10px 0;
    color: #666;
}

.email-display a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
}
.email-display a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .modal-choice-container {
        flex-direction: column;
    }
}
/* === SLUTT: NYE REGLER FOR MODAL-VALG === */