/* ── Plantjes Bestelling 2026 – Den Horn ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Nunito:wght@400;600;700&display=swap');

#pb-wrapper {
    --pb-green-dark:  #2d6a4f;
    --pb-green-mid:   #40916c;
    --pb-green-light: #d8f3dc;
    --pb-accent:      #74c69d;
    --pb-sand:        #fefae0;
    --pb-text:        #1b1b1b;
    --pb-muted:       #6b7280;
    --pb-border:      #b7e4c7;
    --pb-radius:      12px;
    --pb-shadow:      0 4px 24px rgba(45,106,79,.10);

    font-family: 'Nunito', sans-serif;
    color: var(--pb-text);
    max-width: 780px;
    margin: 0 auto;
    padding: 0 0 48px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.pb-header {
    text-align: center;
    padding: 48px 24px 32px;
    background: linear-gradient(160deg, var(--pb-green-dark) 0%, var(--pb-green-mid) 100%);
    border-radius: var(--pb-radius) var(--pb-radius) 0 0;
    color: #fff;
}
.pb-header-icon { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.pb-header h2   { font-family: 'Lora', serif; font-size: 2rem; margin: 0 0 8px; font-weight: 600; }
.pb-header p    { margin: 0; opacity: .88; font-size: .95rem; line-height: 1.6; }
.pb-header em   { font-style: italic; opacity: .75; font-size: .85rem; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.pb-section {
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 24px 28px;
    margin-top: 16px;
    box-shadow: var(--pb-shadow);
}
.pb-section-title {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: var(--pb-green-dark);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pb-icon { font-style: normal; }

/* ── Persoonsgegevens ───────────────────────────────────────────────────── */
.pb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .pb-grid-2 { grid-template-columns: 1fr; } }

.pb-field { display: flex; flex-direction: column; gap: 6px; }
.pb-field--full { grid-column: 1 / -1; }
.pb-field label { font-weight: 600; font-size: .88rem; color: var(--pb-green-dark); }
.pb-required { color: #e53e3e; }

.pb-field input,
.pb-field textarea {
    border: 1.5px solid var(--pb-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .95rem;
    font-family: 'Nunito', sans-serif;
    color: var(--pb-text);
    background: var(--pb-sand);
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
.pb-field input:focus,
.pb-field textarea:focus {
    outline: none;
    border-color: var(--pb-green-mid);
    box-shadow: 0 0 0 3px rgba(64,145,108,.15);
    background: #fff;
}
.pb-field input.pb-invalid { border-color: #e53e3e; }

/* ── Plant rijen ────────────────────────────────────────────────────────── */
.pb-plant-grid { display: flex; flex-direction: column; gap: 2px; }

.pb-plant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background .15s;
}
.pb-plant-row:hover { background: var(--pb-green-light); }
.pb-plant-row.pb-has-qty { background: var(--pb-green-light); }
.pb-plant-row.pb-has-qty .pb-plant-name { font-weight: 700; }

.pb-plant-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pb-plant-name     { font-size: .95rem; }
.pb-plant-unitprice {
    font-size: .78rem;
    color: var(--pb-muted);
    font-weight: 600;
}

.pb-plant-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* ── Subtotaal per rij ──────────────────────────────────────────────────── */
.pb-row-subtotal {
    font-size: .88rem;
    font-weight: 700;
    color: var(--pb-green-dark);
    min-width: 58px;
    text-align: right;
    opacity: .4;
    transition: opacity .2s;
}
.pb-plant-row.pb-has-qty .pb-row-subtotal { opacity: 1; }

/* ── Aantal-control ─────────────────────────────────────────────────────── */
.pb-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--pb-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.pb-qty-btn {
    width: 36px;
    height: 36px;
    background: var(--pb-green-light);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--pb-green-dark);
    transition: background .15s;
    line-height: 1;
    flex-shrink: 0;
}
.pb-qty-btn:hover { background: var(--pb-accent); color: #fff; }

.pb-qty-input {
    width: 52px;
    height: 36px;
    border: none;
    border-left: 1.5px solid var(--pb-border);
    border-right: 1.5px solid var(--pb-border);
    text-align: center;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--pb-green-dark);
    background: #fff;
    -moz-appearance: textfield;
}
.pb-qty-input::-webkit-inner-spin-button,
.pb-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pb-qty-input:focus { outline: none; background: var(--pb-green-light); }

/* ── Totaaloverzicht ────────────────────────────────────────────────────── */
.pb-section--totaal {
    border-color: var(--pb-border);
    transition: border-color .3s, box-shadow .3s;
}
.pb-section--totaal.pb-totaal--actief {
    border-color: var(--pb-green-mid);
    box-shadow: 0 4px 24px rgba(45,106,79,.18);
}

.pb-totaal-regels {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--pb-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pb-totaal-rij {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    font-size: .95rem;
    border-bottom: 1px solid var(--pb-border);
    background: #fff;
    gap: 12px;
}
.pb-totaal-rij:last-child { border-bottom: none; }
.pb-totaal-rij span { color: var(--pb-muted); }
.pb-totaal-rij > span:last-child {
    font-weight: 700;
    color: var(--pb-green-dark);
    white-space: nowrap;
}

.pb-totaal-rij--totaal {
    background: var(--pb-green-dark);
    padding: 16px 18px;
}
.pb-totaal-rij--totaal span {
    color: rgba(255,255,255,.85) !important;
    font-size: 1rem;
    font-weight: 600;
}
.pb-totaal-rij--totaal strong {
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: .01em;
}

/* ── Opmerkingen ────────────────────────────────────────────────────────── */
.pb-opmerking-wrap { display: flex; flex-direction: column; gap: 6px; }
.pb-opmerking-wrap label { font-weight: 600; font-size: .88rem; color: var(--pb-green-dark); }
.pb-opmerking-wrap textarea {
    border: 1.5px solid var(--pb-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: .95rem;
    background: var(--pb-sand);
    resize: vertical;
    box-sizing: border-box;
    width: 100%;
}
.pb-opmerking-wrap textarea:focus {
    outline: none;
    border-color: var(--pb-green-mid);
    box-shadow: 0 0 0 3px rgba(64,145,108,.15);
    background: #fff;
}

/* ── Betaalinfo ─────────────────────────────────────────────────────────── */
.pb-betaal-info {
    background: var(--pb-sand);
    border: 1px dashed var(--pb-green-mid);
    border-radius: var(--pb-radius);
    padding: 16px 20px;
    margin-top: 16px;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--pb-muted);
}
.pb-betaal-info strong { color: var(--pb-green-dark); }

/* ── Submit ─────────────────────────────────────────────────────────────── */
.pb-submit-wrap { text-align: center; margin-top: 28px; }
.pb-btn-submit {
    background: linear-gradient(135deg, var(--pb-green-dark), var(--pb-green-mid));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 48px;
    font-size: 1.05rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(45,106,79,.35);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: .02em;
}
.pb-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,.40); }
.pb-btn-submit:active { transform: translateY(0); }
.pb-btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ── Berichten ──────────────────────────────────────────────────────────── */
.pb-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}
.pb-message--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.pb-message--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Mobiel ─────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .pb-plant-right  { gap: 8px; }
    .pb-row-subtotal { display: none; }   /* subtotaal per rij verbergen op klein scherm */
    .pb-totaal-rij   { flex-wrap: wrap; font-size: .88rem; }
}
