/* ==========================================
   Brandblussertehuur.nl - Reserveren
   Bestand: /assets/css/reserveren.css
========================================== */

:root {
    --red: #d71920;
    --red-dark: #b91c1c;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --ok: #15803d;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: #ffffff;
    line-height: 1.5;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* Bovenbalk */
.top {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.top-inner {
    width: min(1180px, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo { display: flex; align-items: center; }
.logo img { display: block; height: 130px; width: auto; }

.phone {
    font-weight: 800;
    font-size: 18px;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
}

/* Hero */
.hero {
    position: relative;
    min-height: 420px;
    padding: 70px 0;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(rgba(0,0,0,.48), rgba(0,0,0,.48)),
        url('/wp-content/uploads/2026/06/pix_landscape.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.hero p {
    color: #ffffff;
    font-size: 21px;
    max-width: 760px;
}

.hero .container {
    display: flex;
    justify-content: flex-end;
}

.hero-content {
    max-width: 700px;
    text-align: left;
    margin-right: 120px;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    padding: 34px 0;
    align-items: start;
}

.panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.panel h2 { margin: 0 0 16px; font-size: 24px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 14px; }
.span-2 { grid-column: span 2; }

/* Velden */
.field label { font-weight: 800; font-size: 13px; display: block; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}
.field textarea { min-height: 100px; }

/* Producten */
.products { display: grid; gap: 12px; }

.product {
    display: grid;
    grid-template-columns: 96px 1fr 122px;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
    transition: all .2s ease;
}

.product:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(215,25,32,.12);
}

.product-image {
    width: 88px;
    height: 88px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.product-placeholder {
    width: 88px;
    height: 88px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 28px;
}

.product-info strong { display: block; font-size: 17px; margin-bottom: 4px; }
.product-info small { color: var(--muted); display: block; }

.available { color: var(--ok); font-weight: 800; margin-top: 5px; }

.borg-badge {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 8px;
    background: var(--warning-bg);
    color: var(--warning-text);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.qty-control {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.qty-control button {
    border: 0;
    background: #f8fafc;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
}

.qty-control button:hover { background: #eef2f7; }

.qty-control input {
    width: 100%;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    padding: 10px 4px;
    font: inherit;
    font-weight: 800;
}

/* Keuze levering */
.choice { display: flex; gap: 12px; flex-wrap: wrap; }
.choice label {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
}

.notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0 0;
}

/* Sticky calculator */
.summary {
    position: sticky;
    top: 135px;
    align-self: start;
    z-index: 5;
    max-height: calc(100vh - 160px);
    overflow: auto;
    border: 2px solid rgba(215,25,32,.15);
    box-shadow: 0 15px 35px rgba(17,24,39,.12);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.summary-row.total { font-size: 20px; font-weight: 900; border-bottom: 0; }

/* Meldingen / akkoord / knoppen */
.muted { color: var(--muted); font-size: 13px; }
.intro-note { margin: 0 0 16px; color: #374151; }

.agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px; font-weight: 700; }
.agree input { margin-top: 4px; min-width: 18px; min-height: 18px; }

.btn {
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff;
    padding: 14px 22px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}
.btn:hover { background: var(--red-dark); }

.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.alert.error { background: #fff1f2; border: 1px solid #fecdd3; color: #991b1b; }
.alert.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.hidden { display: none; }
.hp { position: absolute; left: -9999px; }
.footer { padding: 24px 0; color: var(--muted); border-top: 1px solid var(--line); margin-top: 20px; }

/* Mobiel */
@media (max-width: 900px) {
    .top-inner { flex-direction: column; align-items: center; gap: 10px; }
    .logo img { height: 70px; }
    .phone { font-size: 16px; }
    .layout { grid-template-columns: 1fr; }
    .summary { position: static; max-height: none; overflow: visible; }
    .grid,
    .grid-3 { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .product { grid-template-columns: 76px 1fr; }
    .product-image,
    .product-placeholder { width: 68px; height: 68px; }
    .product-image img { width: 62px; height: 62px; }
    .qty-control { grid-column: 1 / -1; }
}
