:root {
    --offerte-primary: #0f4c81; /* A trusted, premium blue */
    --offerte-primary-hover: #0a355c;
    --offerte-bg: #f7f9fa;
    --offerte-card-bg: #ffffff;
    --offerte-text: #2d3748;
    --offerte-text-light: #718096;
    --offerte-border: #e2e8f0;
    --offerte-success: #38a169;
    --offerte-radius: 16px;
    --offerte-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --offerte-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --offerte-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.offerte-calc-container {
    font-family: var(--offerte-font);
    color: var(--offerte-text);
    background: var(--offerte-bg);
    padding: 2rem 1rem;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.offerte-calc-container * {
    box-sizing: border-box;
}

.offerte-calc-inner {
    background: var(--offerte-card-bg);
    max-width: 600px;
    width: 100%;
    border-radius: var(--offerte-radius);
    box-shadow: var(--offerte-shadow);
    overflow: hidden;
    position: relative;
    padding: 2rem;
}

/* Header & Progress */
.offerte-header {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--offerte-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--offerte-primary);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-counter {
    text-align: center;
    color: var(--offerte-text-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Typography */
.step-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    text-align: center;
    line-height: 1.2;
    color: var(--offerte-text);
}

.html-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--offerte-text-light);
    text-align: center;
}

.html-content p {
    margin-bottom: 1rem;
}

.html-content ul {
    text-align: left;
    display: inline-block;
    margin: 1rem auto;
    padding-left: 1.5rem;
}

.html-content li {
    margin-bottom: 0.5rem;
}

/* Options Grid (Dropdown replacements) */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px solid var(--offerte-border);
    border-radius: var(--offerte-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--offerte-card-bg);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.option-card:hover {
    border-color: var(--offerte-primary);
    background: #f8fafc;
}

.option-card.selected {
    border-color: var(--offerte-primary);
    background: var(--offerte-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Slider */
.slider-container {
    text-align: center;
}

.slider-value-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.num-input {
    font-size: 2rem;
    font-weight: 700;
    width: 120px;
    text-align: center;
    border: 0;
    border-bottom: 2px solid var(--offerte-border);
    border-radius: 0;
    padding: 0.5rem;
    color: var(--offerte-primary);
}

.num-input:focus {
    outline: none;
    border-bottom-color: var(--offerte-primary);
}

.unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--offerte-text-light);
}

.offerte-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--offerte-border);
    outline: none;
    margin-bottom: 1rem;
}

.offerte-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--offerte-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

.offerte-range::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.slider-price-note {
    font-size: 0.9rem;
    color: var(--offerte-text-light);
    margin-top: 1rem;
}

/* Inputs */
.offerte-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--offerte-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.offerte-input:focus {
    outline: none;
    border-color: var(--offerte-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--offerte-text);
}

@media (min-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-field:nth-child(5), /* Straat */
    .contact-field:nth-child(7) { /* Plaats */
        grid-column: span 2;
    }
}

/* Footer Nav */
.offerte-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--offerte-border);
}

.spacer {
    flex-grow: 1;
}

.offerte-btn {
    background: var(--offerte-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    min-width: 160px;
}

.offerte-btn:hover {
    background: var(--offerte-primary-hover);
    transform: translateY(-2px);
}

.offerte-btn-outline {
    background: transparent;
    color: var(--offerte-text-light);
    border: 2px solid var(--offerte-border);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.offerte-btn-outline:hover {
    border-color: var(--offerte-text);
    color: var(--offerte-text);
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading & Success */
.offerte-loading, .offerte-success {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--offerte-border);
    border-top-color: var(--offerte-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--offerte-success);
    margin: 0 auto 1rem;
}

.offerte-success h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Live Total */
.offerte-live-total {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--offerte-text-light);
}

.offerte-live-total strong {
    color: var(--offerte-text);
    font-size: 1.2rem;
}
