﻿/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Page Level (Soft Light Sage Green) */
    --color-primary-dark: #1E293B;   /* Deep Slate Blue */
    --color-primary-light: #334155;  /* Lighter Slate Blue */
    --color-primary-extradark: #0F172A;
    --color-accent: #10B981;        /* Vibrant Emerald Accent */
    --color-accent-hover: #34D399;
    --color-success: #10B981;       /* Emerald Green */
    --color-success-hover: #059669;
    --color-success-light: rgba(16, 185, 129, 0.15);
    
    /* Page & Non-Form backgrounds */
    --color-bg-light: #EBF3EF;      /* Soft Light Sage Page Background */
    --color-bg-white: #F0F7F4;      /* Soft Mint/Sage Card Background for Benefits & Timeline */
    --color-bg-card-inner: #E4EFEA; /* Slightly deeper sage tint for normal cards */
    --color-border: #CBE3D8;        /* Soft Sage Border */
    --color-border-hover: #9FD3BC;
    
    /* Form-Specific Color Palette (Keeps the Form Deep Dark Forest Green) */
    --color-form-bg: #172A24;       /* Deep Dark Forest Card Background */
    --color-form-bg-inner: #1E352E;  /* Rich Darker Forest Green for Inputs & Option Rows */
    --color-form-border: #2B4E42;   /* Dark Forest Green Border */
    --color-form-border-hover: #3E6E5E;
    --color-form-text: #D5E8DF;     /* Soft Mint Slate Text */
    --color-form-text-dark: #F0FDF8; /* Crisp Soft Mint Heading Text */
    --color-form-text-muted: #8DB8A8; /* Muted Sage Text */
    
    /* Typography Colors - Page Level */
    --text-main: #2D3A34;           /* Deep Forest Slate Main Text */
    --text-dark: #0F172A;           /* Dark Slate Headings */
    --text-muted: #526B60;          /* Muted Sage Slate */
    --text-white: #FFFFFF;
    --text-on-dark: #E2F1E8;        /* Soft mint/sage text for dark blue backgrounds */
    --text-on-dark-muted: #B9D5C8;  /* Softer subtitle text on dark blue */
    
    /* Layout & Spacing */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(16, 185, 129, 0.08);
    --shadow-md: 0 4px 10px -1px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(16, 185, 129, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.2, 0 10px 10px -5px rgba(15, 23, 42, 0.05));
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

ul {
    list-style: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--color-accent);
}

.font-margin-top {
    margin-top: 20px;
}

.flex-1 {
    flex: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-secondary {
    background-color: var(--color-bg-light);
    color: var(--text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: #E2E8F0;
    border-color: var(--color-border-hover);
}

.btn-submit {
    background-color: var(--color-success);
    color: var(--text-white);
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    width: auto;
    display: inline-flex;
}

.btn-submit:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-submit:disabled {
    background-color: var(--text-muted);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-md);
}

.header-container {
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.logo-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    padding: 4px;
    transition: var(--transition-fast);
}

.logo-btn:hover {
    opacity: 0.9;
}

.logo-icon {
    color: var(--color-success);
    font-size: 1.6rem;
}

.logo-accent {
    color: var(--color-accent);
}

/* Navigation Links */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-btn {
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 12px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-btn:not(.nav-cta):hover {
    color: var(--color-accent);
}

.nav-btn:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: var(--transition-fast);
    transform-origin: bottom right;
}

.nav-btn:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-cta {
    background-color: var(--color-primary-dark);
    color: var(--text-white);
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.nav-cta:hover {
    background-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Hamburger Icon */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001;
}

.hamburger-bar {
    width: 24px;
    height: 3px;
    background-color: var(--color-primary-dark);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Hamburger Animation */
.mobile-menu-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 32px;
}

.mobile-nav-btn {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-white);
    padding: 8px 16px;
    transition: var(--transition-fast);
}

.mobile-nav-btn:hover {
    color: var(--color-success);
}

.mobile-nav-cta {
    background-color: var(--color-success);
    color: var(--text-white);
    border-radius: var(--border-radius-sm);
    padding: 12px 28px;
}

.mobile-nav-cta:hover {
    background-color: var(--color-success-hover);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: radial-gradient(var(--color-accent) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-content {
    color: var(--text-white);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-benefits-list {
    display: flex;
    gap: 40px;
}

.hero-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon-wrapper {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-accent);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-item-title {
    font-size: 1rem;
    color: var(--text-on-dark);
    margin-bottom: 2px;
}

.benefit-item-text {
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
}

/* ==========================================================================
   WIZARD FORM CARD
   ========================================================================== */
.form-wrapper {
    perspective: 1000px;
}

.wizard-card {
    background-color: var(--color-form-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--color-form-border);
}

.wizard-header {
    background-color: var(--color-form-bg-inner);
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-form-border);
}

.step-counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-count-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-form-text-dark);
}

.step-badge {
    background-color: var(--color-success-light);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--color-form-border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 14.28%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-success-hover) 100%);
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Inner */
#leadForm {
    padding: 32px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideInStep 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-form-text-dark);
}

/* Form Groups and Elements */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-label-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-form-text-dark);
    margin-bottom: 10px;
}

.form-label-header small {
    font-weight: 400;
    color: var(--color-form-text-muted);
}

/* Standard Inputs & Selects - Page Level */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    background-color: var(--color-bg-card-inner);
    outline: none;
    transition: var(--transition-fast);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* Wizard Form Specific Overrides (Deep Dark Forest Green) */
.wizard-card input[type="text"],
.wizard-card input[type="number"],
.wizard-card input[type="email"],
.wizard-card input[type="tel"],
.wizard-card select,
.wizard-card textarea {
    background-color: var(--color-form-bg-inner);
    border-color: var(--color-form-border);
    color: var(--color-form-text-dark);
}

.wizard-card input[type="text"]:focus,
.wizard-card input[type="number"]:focus,
.wizard-card input[type="email"]:focus,
.wizard-card input[type="tel"]:focus,
.wizard-card select:focus,
.wizard-card textarea:focus {
    border-color: var(--color-accent);
    background-color: #24423A;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    color: #F0FDF8;
}

textarea {
    resize: vertical;
}

.wizard-card select option {
    background-color: #172A24;
    color: #F0FDF8;
}

/* Addon wrapper */
.input-with-addon {
    display: flex;
    position: relative;
}

.input-with-addon input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #233F37;
    border: 1.5px solid var(--color-border);
    border-left: none;
    padding: 0 16px;
    border-top-right-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--text-muted);
}

/* Select element wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

/* Input Icon wrappers */
.input-icon-wrapper {
    position: relative;
    display: flex;
}

.input-icon-inner {
    position : absolute;
    left: 16px;
    top: 50%;
    transform : translateY(-50%);
    color: var(--text-muted);
}

.input-icon-wrapper input {
    padding-left: 44px;
}

/* CUSTOM RADIONS CARDS (Step 1) */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.custom-radio-card {
    cursor: pointer;
    position: relative;
}

.custom-radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 10px;
    background-color: var(--color-bg-card-inner);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-smooth);
    min-height: 100px;
}

.radio-card-content i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.radio-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Checked state card */
.custom-radio-card input:checked + .radio-card-content {
    border-color: var(--color-accent);
    background-color: #274C40;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.custom-radio-card input:checked + .radio-card-content i {
    color: var(--color-accent);
    transform: scale(1.1);
}

.custom-radio-card input:checked + .radio-card-content .radio-card-title {
    color: var(--color-accent-hover);
}

.custom-radio-card:hover .radio-card-content {
    border-color: var(--color-border-hover);
}

/* CUSTOM RADIO ROWS */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-radio-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background-color: var(--color-bg-card-inner);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-radio-row input {
    position: absolute;
    opacity: 0;
}

.radio-row-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-hover);
    border-radius: 50%;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
    background-color: var(--color-bg-white);
}

.radio-row-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent);
    transform: scale(0);
    transition: var(--transition-fast);
}

.radio-row-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.radio-row-label small {
    color: var(--text-muted);
}

.custom-radio-row input:checked + .radio-row-mark {
    border-color: var(--color-accent);
}

.custom-radio-row input:checked + .radio-row-mark::after {
    transform: scale(1);
}

.custom-radio-row input:checked {
    background-color: rgba(16, 185, 129, 0.12);
}

.custom-radio-row:hover {
    border-color: var(--color-border-hover);
}

/* CUSTOM CHECKBOX CARDS (Step 2) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.custom-checkbox-card {
    cursor: pointer;
    position: relative;
}

.custom-checkbox-card input {
    position: absolute;
    opacity: 0;
}

.checkbox-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 8px;
    background-color: var(--color-bg-card-inner);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-smooth);
    min-height: 90px;
}

.checkbox-card-content i {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.checkbox-card-content span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Checked state checkbox */
.custom-checkbox-card input:checked + .checkbox-card-content {
    border-color: var(--color-accent);
    background-color: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.custom-checkbox-card input:checked + .checkbox-card-content i {
    color: var(--color-accent);
    transform: scale(1.08);
}

.custom-checkbox-card input:checked + .checkbox-card-content span {
    color: var(--color-accent-hover);
}

.custom-checkbox-card:hover .checkbox-card-content {
    border-color: var(--color-border-hover);
}

/* CONTACT ROW CHECKBOX (Villkor) */
.checkbox-row {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-checkbox-row {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.custom-checkbox-row input {
    position: absolute;
    opacity: 0;
}

.checkbox-row-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-hover);
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
    background-color: var(--color-bg-white);
}

.checkbox-row-mark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--text-white);
    transform: scale(0);
    transition: var(--transition-fast);
}

.checkbox-row-label {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

.custom-checkbox-row input:checked + .checkbox-row-mark {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
}

.custom-checkbox-row input:checked + .checkbox-row-mark::after {
    transform: scale(1);
}

/* Error Message */
.error-msg {
    display: none;
    font-size: 0.775rem;
    color: #EF4444;
    margin-top: 5px;
    animation: fadeInError 0.2s ease forwards;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Footer */
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 16px;
}

.step-footer .btn-next,
.step-footer .btn-submit {
    margin-left: auto;
}

.step-footer .btn {
    min-width: 120px;
}

/* Wizard card bottom note */
.wizard-card-footer {
    background-color: var(--color-bg-card-inner);
    padding: 16px 32px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-muted);
}

.wizard-card-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wizard-card-footer i {
    color: var(--color-success);
}

/* ==========================================================================
   SUCCESS CARD VIEW
   ========================================================================== */
.success-card-view {
    padding: 40px 24px;
    text-align: center;
    animation: slideInStep 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.success-icon-container {
    width: 72px;
    height: 72px;
    background-color: #DCFCE7;
    color: var(--color-success);
    font-size: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: scaleCheckmark 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleCheckmark {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success-message {
    font-size: 1.05rem;
    color: var(--text-main);
    max-width: 460px;
    margin: 0 auto 28px auto;
}

.success-details-box {
    background-color: var(--color-bg-card-inner);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    max-width: 480px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.success-details-box p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-details-box p i {
    color: var(--color-accent);
}

.success-details-box ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
    list-style: disc;
}

.success-details-box li {
    font-size: 0.875rem;
    color: var(--text-main);
}

.reset-form-btn {
    width: auto;
    height: auto;
}

/* ==========================================================================
   WIZARD FORM COLOR OVERRIDES (DARK FOREST GREEN THEME)
   ========================================================================== */
.wizard-card .radio-card-content,
.wizard-card .checkbox-card-content,
.wizard-card .custom-radio-row {
    background-color: var(--color-form-bg-inner);
    border-color: var(--color-form-border);
}

.wizard-card .radio-card-title,
.wizard-card .checkbox-card-content span,
.wizard-card .radio-row-label {
    color: var(--color-form-text-dark);
}

.wizard-card .radio-row-label small {
    color: var(--color-form-text-muted);
}

/* Checked state card */
.wizard-card .custom-radio-card input:checked + .radio-card-content,
.wizard-card .custom-checkbox-card input:checked + .checkbox-card-content {
    border-color: var(--color-accent);
    background-color: #274C40;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.wizard-card .custom-radio-card input:checked + .radio-card-content i,
.wizard-card .custom-checkbox-card input:checked + .checkbox-card-content i {
    color: var(--color-accent);
}

.wizard-card .custom-radio-card input:checked + .radio-card-content .radio-card-title,
.wizard-card .custom-checkbox-card input:checked + .checkbox-card-content span {
    color: var(--color-form-text-dark);
}

.wizard-card .custom-radio-row input:checked {
    background-color: #274C40;
}

.wizard-card .custom-radio-row input:checked + .radio-row-mark {
    border-color: var(--color-accent);
}

.wizard-card .radio-row-mark {
    background-color: var(--color-form-bg-inner);
    border-color: var(--color-form-border-hover);
}

.wizard-card .checkbox-row-mark {
    background-color: var(--color-form-bg-inner);
    border-color: var(--color-form-border-hover);
}

.wizard-card .checkbox-row-label {
    color: var(--color-form-text);
}

.wizard-card .success-details-box {
    background-color: var(--color-form-bg-inner);
    border-color: var(--color-form-border);
}

.wizard-card .success-details-box p {
    color: var(--color-form-text-dark);
}

.wizard-card .success-details-box li {
    color: var(--color-form-text);
}

.wizard-card .success-message {
    color: var(--color-form-text);
}

.wizard-card .wizard-card-footer {
    background-color: var(--color-form-bg-inner);
    border-top: 1px solid var(--color-form-border);
}

.wizard-card .wizard-card-footer p {
    color: var(--color-form-text-muted);
}

/* ==========================================================================
   VÅR PROCESS (TIMELINE) SECTION
   ========================================================================== */
.process-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Timeline Layout */
.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Timeline link connector bar (desktop only) */
.process-timeline::after {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    width: 75%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-success) 100%);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-number-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary-dark);
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 4px solid var(--color-bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-number-box {
    transform: scale(1.1);
    background-color: var(--color-accent);
}

.timeline-content {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: 24px 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    height: 100%;
}

.timeline-step:hover .timeline-content {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.2);
}

.timeline-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(2, 132, 199, 0.08);
    border-radius: 50%;
}

.timeline-step:nth-child(even) .timeline-icon {
    color: var(--color-success);
    background-color: rgba(16, 185, 129, 0.08);
}

.timeline-step-title {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-step-text {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* ==========================================================================
   VARFÖR OFFERTPRIS (BENEFITS GRID)
   ========================================================================== */
.why-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    padding: 36px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.15);
}

.benefit-card-icon {
    font-size: 2rem;
    color: var(--color-success);
    margin-bottom: 20px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(16, 185, 129, 0.08);
    border-radius: var(--border-radius-md);
}

.benefit-card:nth-child(even) .benefit-card-icon {
    color: var(--color-accent);
    background-color: rgba(2, 132, 199, 0.08);
}

.benefit-card-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.benefit-card-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Section Bottom CTA */
.why-us-cta {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-extradark) 100%);
    border-radius: var(--border-radius-md);
    padding: 40px;
    text-align: center;
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.why-us-cta h3 {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-primary-extradark);
    color: #94A3B8;
    padding: 70px 0 0 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about {
    max-width: 480px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    color: var(--color-success);
}

.footer-logo .logo-accent {
    color: var(--color-accent);
}

.footer-description {
    line-height: 1.7;
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-contact-item i {
    color: var(--color-accent);
    font-size: 1.15rem;
    width: 24px;
}

.footer-contact-item:hover {
    color: var(--text-white);
}

/* Footer Bottom Credit */
.footer-bottom {
    background-color: rgba(15, 23, 42, 0.4);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
}

.credit {
    font-size: 0.8rem;
}

.credit a {
    color: var(--text-white);
    font-weight: 600;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
}

.credit a:hover {
    color: var(--color-success);
    border-bottom-color: var(--color-success);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet viewports (< 992px) */
@media (max-width: 991px) {
    /* Hero container stacked */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        max-width: 600px;
    }
    
    .hero-benefits-list {
        justify-content: center;
    }
    
    /* Process timeline stacked layout */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        gap: 24px;
    }
    
    .process-timeline::after {
        display: none;
    }
}

/* Mobile landscape and down (< 768px) */
@media (max-width: 767px) {
    :root {
        --header-height: 68px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Hamburger menu toggle */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero adjustment */
    .hero-section {
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-weight: 800;
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .hero-benefits-list {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        width: 100%;
    }
    
    .hero-benefit-item {
        width: 100%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.04);
        padding: 10px 14px;
        border-radius: var(--border-radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    /* Wizard Card Header & Steps for Mobile */
    .wizard-header {
        padding: 16px 12px;
    }

    .indicator-label {
        font-size: 0.65rem;
        text-align: center;
        white-space: nowrap;
    }

    .indicator-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    /* Form Body Padding reduction */
    #leadForm {
        padding: 18px 14px;
    }
    
    .step-title {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
    
    /* Touch friendly Grid cards for mobile */
    .radio-grid, .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .radio-card-content, .checkbox-card-content {
        padding: 14px 8px;
        min-height: 85px;
    }

    .radio-card-title, .checkbox-card-content span {
        font-size: 0.82rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 14px;
    }
    
    .form-group.flex-1 {
        width: 100%;
    }

    .step-footer {
        flex-direction: row;
        gap: 10px;
        margin-top: 24px;
    }

    .step-footer .btn {
        flex: 1;
        min-width: 0;
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    /* Process section formatting */
    .process-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .timeline-step {
        width: 100%;
    }

    .timeline-content {
        padding: 20px 16px;
    }
    
    /* Benefits Grid */
    .why-section {
        padding: 50px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .benefit-card-title {
        font-size: 1.1rem;
    }
    
    /* Footer layout */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Very small screens (< 420px) */
@media (max-width: 419px) {
    .indicator-label {
        display: none; /* Show numbers only on extra small mobile screens for maximum clarity */
    }

    .step-indicator.active .indicator-label {
        display: block; /* Show label only for current active step */
    }

    .radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -------------------------------------
   PORTFOLIO SECTION
------------------------------------- */
.portfolio-section {
    padding: 5rem 0;
    background-color: var(--surface-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Initially hidden items */
.portfolio-grid:not(.expanded) .portfolio-item:nth-child(n+5) {
    display: none;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .portfolio-grid:not(.expanded) .portfolio-item:nth-child(n+4) {
        display: none;
    }
    .portfolio-grid:not(.expanded) .portfolio-item:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid:not(.expanded) .portfolio-item:nth-child(n+3) {
        display: none;
    }
    .portfolio-grid:not(.expanded) .portfolio-item:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid:not(.expanded) .portfolio-item:nth-child(n+2) {
        display: none;
    }
    .portfolio-grid:not(.expanded) .portfolio-item:nth-child(2) {
        display: none;
    }
}

/* -------------------------------------
   TESTIMONIALS SECTION
------------------------------------- */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--color-bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--color-border);
}

.testimonial-card .stars {
    color: #F59E0B;
    font-size: 1.2rem;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
}

/* -------------------------------------
   SUCCESS VIEW FIXES
------------------------------------- */
.success-title {
    color: var(--color-form-text-dark) !important;
}

.success-message, .success-details-box {
    color: var(--color-form-text) !important;
}

.success-details-box p strong, .success-details-box li {
    color: var(--color-form-text) !important;
}
