/* ═══════════════════════════════════════════════
   J&B Constructions — Calculator Stylesheet
   ═══════════════════════════════════════════════ */

/* ─── Hero ─── */
.calc-hero {
    padding: 80px 0 60px;
    background: var(--color-light);
    text-align: left;
}
.calc-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0 14px;
    line-height: 1.15;
}
.calc-hero p {
    color: var(--color-text-muted);
    max-width: 560px;
    font-size: 1rem;
}

/* ─── Wrapper sectie ─── */
.calc-section {
    padding: 60px 0 100px;
    background: var(--color-dark);
}

/* ─── Wizard container ─── */
.calc-wizard {
    background: var(--color-dark-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ─── Progress indicator ─── */
.calc-progress {
    display: flex;
    align-items: center;
    padding: 24px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    gap: 0;
}
.cp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cp-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.cp-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    white-space: nowrap;
}
.cp-step.active .cp-num  { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.cp-step.active .cp-label { color: white; }
.cp-step.done .cp-num    { background: transparent; border-color: #22c55e; color: #22c55e; }
.cp-step.done .cp-label  { color: rgba(255,255,255,0.35); }
.cp-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.07);
    transition: background 0.3s;
}
.cp-line.done { background: rgba(34,197,94,0.35); }

/* ─── Stap containers ─── */
.calc-step          { display: none; padding: 36px; }
.calc-step.active   { display: block; }
.calc-step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    margin-bottom: 6px;
}
.calc-step-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* ─── Foto-kaarten ─── */
.calc-photo-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 680px;
}
.calc-photo-cards--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 840px;
}
.calc-photo-card {
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: #1a2535;
}
.calc-photo-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.calc-photo-card.selected {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212,136,13,0.25);
}
.cpc-img {
    width: 100%;
    height: 175px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.cpc-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(25,34,51,0.75) 0%, transparent 55%);
}
.cpc-check {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    display: none;
    align-items: center;
    justify-content: center;
}
.calc-photo-card.selected .cpc-check { display: flex; }
.cpc-body          { padding: 14px 16px; }
.cpc-body strong   { display: block; color: rgba(255,255,255,0.88); font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.cpc-body span     { color: rgba(255,255,255,0.55); font-size: 0.77rem; line-height: 1.35; }

/* ─── Afmetingen (Stap 3) ─── */
.calc-dim-wrap    { max-width: 480px; }
.calc-dim-row     { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.calc-dim-field   { flex: 1; }
.calc-dim-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.calc-dim-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    overflow: visible;
    transition: border-color 0.2s;
}
.calc-dim-input-wrap:focus-within { border-color: var(--color-accent); }
.calc-dim-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    width: 0;
}
.calc-dim-unit {
    padding: 0 12px;
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.calc-dim-times {
    color: rgba(255,255,255,0.3);
    font-size: 1.3rem;
    font-weight: 400;
    padding-bottom: 10px;
    flex-shrink: 0;
}
.calc-dim-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212,136,13,0.07);
    border: 1px solid rgba(212,136,13,0.25);
    border-radius: var(--radius);
    padding: 14px 18px;
}
.calc-dim-result-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.calc-dim-result-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}
.calc-dim-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 12px;
    line-height: 1.5;
}

/* ─── Extra werkzaamheden (Stap 4) ─── */
.calc-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
}
.calc-extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 14px 18px;
    gap: 16px;
}
.calc-extra-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.calc-extra-info strong { display: block; color: white; font-size: 0.9rem; font-weight: 600; }
.calc-extra-info span   { color: rgba(255,255,255,0.35); font-size: 0.75rem; }
.calc-extra-input-wrap  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.calc-extra-input-wrap input {
    width: 80px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 8px 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.calc-extra-input-wrap input:focus { border-color: var(--color-accent); }

/* ─── Resultaat (Stap 5) ─── */
.calc-result {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: start;
}
.calc-result-price {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.crp-summary       { margin-bottom: 20px; }
.crp-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.crp-row:last-child  { border-bottom: none; }
.crp-row span        { color: rgba(255,255,255,0.4); }
.crp-row strong      { color: white; }
.crp-price-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
    margin-top: 20px;
}
.crp-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}
.crp-price-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 20px;
}
.crp-disclaimer {
    background: rgba(212,136,13,0.07);
    border: 1px solid rgba(212,136,13,0.2);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin-bottom: 20px;
}
.calc-result-form {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(212,136,13,0.3);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.calc-result-form h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}
.crp-trust {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
}
.crp-trust span {
    font-size: 0.78rem;
    color: #86efac;
    font-weight: 600;
}
.calc-result-form > p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    line-height: 1.5;
}
.calc-form-field         { margin-bottom: 12px; }
.calc-form-field input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: white;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-body);
}
.calc-form-field input:focus       { border-color: var(--color-accent); }
.calc-form-field input::placeholder { color: rgba(255,255,255,0.3); }
.calc-submit-btn  { width: 100%; margin-top: 4px; }
.calc-form-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 10px;
}
.calc-form-msg {
    margin-top: 12px;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: var(--radius);
    display: none;
    line-height: 1.5;
}
.calc-form-msg--success {
    display: block;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}
.calc-form-msg--error {
    display: block;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* ─── Extra werkzaamheden — kaarten (Stap 4) ─── */
.calc-extras-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 840px;
}
.calc-extra-card {
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a2535;
    display: flex;
    flex-direction: column;
}
.cec-img {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}
.cec-body {
    padding: 14px 16px;
    flex: 1;
}
.cec-body strong {
    display: block;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.cec-body span {
    color: rgba(255,255,255,0.55);
    font-size: 0.77rem;
    line-height: 1.45;
}
.cec-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.cec-input input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 8px 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.cec-input input:focus { border-color: var(--color-accent); }

/* ─── Foto upload zone ─── */
.calc-upload-zone {
    position: relative;
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 12px;
}
.calc-upload-zone:hover,
.calc-upload-zone.drag-over {
    border-color: var(--color-accent);
    background: rgba(212,136,13,0.05);
}
.calc-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.cuz-icon  { font-size: 1.3rem; margin-bottom: 4px; }
.cuz-inner strong { display: block; color: white; font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.cuz-inner span   { color: rgba(255,255,255,0.3); font-size: 0.72rem; }
.cuz-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.cuz-file {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 5px;
}
.cuz-file-remove {
    cursor: pointer;
    opacity: 0.6;
    font-size: 0.85rem;
    line-height: 1;
}
.cuz-file-remove:hover { opacity: 1; }

/* ─── Navigatieknopen ─── */
.calc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.calc-nav--result {
    margin-top: 16px;
    padding-top: 16px;
}

/* ─── Responsief ─── */
@media (max-width: 900px) {
    .calc-result { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .calc-progress { padding: 16px; }
    .cp-label      { display: none; }
    .calc-step     { padding: 24px 16px; }
    .calc-step-title { font-size: 1.25rem; }
    .calc-photo-cards,
    .calc-photo-cards--3 { grid-template-columns: 1fr 1fr; max-width: 100%; }
    .cpc-img       { height: 130px; }
    .calc-extras-cards { grid-template-columns: 1fr 1fr; max-width: 100%; }
    .calc-dim-row  { flex-direction: column; gap: 12px; align-items: stretch; }
    .calc-dim-times { display: none; }
    .crp-price     { font-size: 1.6rem; }
    .calc-hero h1  { font-size: 1.8rem; }
    .calc-dim-input-wrap input,
    .cec-input input,
    .calc-form-field input { font-size: 16px; }
}
@media (max-width: 480px) {
    .calc-photo-cards,
    .calc-photo-cards--3,
    .calc-extras-cards { grid-template-columns: 1fr; }
}
