/* =====================================================
   TV Hayna Bestellformular
   ===================================================== */

#tvhayna-bf-wrap {
    max-width: 960px;
    margin: 0 auto;
    font-family: 'Inter', Arial, sans-serif;
    color: #1A1A1A;
}

/* ── Notice ── */
.tvhayna-bf-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: .9rem;
    line-height: 1.6;
}
.tvhayna-bf-notice--error {
    background: #fff2f2;
    border: 1px solid #f5c6c6;
    color: #9b1c1c;
}
.tvhayna-bf-notice--success {
    background: #f0faf0;
    border: 1px solid #a3d9a3;
    color: #1a5c1a;
}

/* ── Sections ── */
.bf-section {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}
.bf-section-title {
    background: #C8102E;
    color: #fff;
    margin: 0;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.bf-intro {
    padding: 14px 22px 0;
    font-size: .88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ── Header fields grid ── */
.bf-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px 22px;
}
.bf-field--wide { grid-column: 1 / -1; }

.bf-field label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #555;
    margin-bottom: 5px;
}
.bf-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #888;
    font-size: .75rem;
    margin-left: 4px;
}
.bf-req { color: #C8102E; }

.bf-field input[type="text"],
.bf-field input[type="tel"],
.bf-field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: .9rem;
    transition: border-color .15s;
    box-sizing: border-box;
    background: #fafafa;
}
.bf-field input:focus {
    outline: none;
    border-color: #C8102E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}

/* ── Product rows ── */
.bf-products-list {
    padding: 12px 22px 20px;
}
.bf-product-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bf-product-row:last-child { border-bottom: none; }
.bf-product-row:nth-child(even) { background: #fafafa; margin: 0 -22px; padding: 16px 22px; }

/* Product image column */
.bf-prod-image {
    flex-shrink: 0;
}
.bf-prod-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    background: #fafafa;
    display: block;
}
.bf-prod-img-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    gap: 4px;
}
.bf-prod-img-placeholder svg {
    width: 64px;
    height: 64px;
}
.bf-prod-img-label {
    font-size: .65rem;
    color: #aaa;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Product info column */
.bf-prod-badge {
    display: inline-block;
    background: #1A1A1A;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: .05em;
    margin-bottom: 5px;
}
.bf-prod-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}
.bf-prod-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .78rem;
    color: #666;
    margin-bottom: 8px;
}
.bf-prod-meta span::before { margin-right: 3px; }
.bf-prod-prices {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.bf-price-tag {
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
}
.bf-price-kids  { background: #e8f4ff; color: #1a5a9c; }
.bf-price-adult { background: #fff0e0; color: #a05a00; }

/* Controls column */
.bf-prod-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.bf-ctrl { display: flex; flex-direction: column; gap: 4px; }
.bf-ctrl label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #888;
    white-space: nowrap;
}

.bf-qty-input {
    width: 68px;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    background: #fafafa;
    transition: border-color .15s;
}
.bf-qty-input:focus {
    outline: none;
    border-color: #C8102E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}

.bf-size-select {
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: .85rem;
    background: #fafafa;
    cursor: pointer;
    min-width: 130px;
    transition: border-color .15s;
}
.bf-size-select:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}

/* Radio buttons */
.bf-radio-group {
    display: flex;
    gap: 8px;
}
.bf-radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    cursor: pointer;
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
    background: #fafafa;
}
.bf-radio-label:has(input:checked) {
    border-color: #C8102E;
    background: #fff5f7;
    color: #C8102E;
    font-weight: 700;
}
.bf-radio-label input { margin: 0; accent-color: #C8102E; }
.bf-radio-label em { color: #888; font-style: normal; font-size: .75rem; }

/* Row price */
.bf-ctrl-price .bf-row-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #C8102E;
    min-width: 80px;
    text-align: right;
    display: block;
}
.bf-ctrl-price .bf-price-pending {
    font-size: .78rem;
    font-weight: 600;
    color: #888;
}

/* ── Total bar ── */
.bf-total-bar {
    background: #C8102E;
    border-radius: 8px;
    padding: 20px 28px;
    margin-bottom: 24px;
    color: #fff;
}
.bf-total-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.bf-total-label {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.bf-total-amount {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: .02em;
}
.bf-total-note {
    margin: 0;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
}
.bf-total-note strong { color: #fff; }

/* ── Submit ── */
.bf-submit-area {
    text-align: center;
    margin-bottom: 32px;
}
.bf-submit-btn {
    background: #C8102E;
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: .03em;
    transition: background .2s, transform .1s;
    min-width: 280px;
}
.bf-submit-btn:hover:not(:disabled) {
    background: #a50e26;
    transform: translateY(-1px);
}
.bf-submit-btn:active:not(:disabled) { transform: translateY(0); }
.bf-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.bf-submit-note {
    margin-top: 10px;
    font-size: .78rem;
    color: #888;
}

/* ── Success box ── */
.bf-success-box {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 2px solid #C8102E;
    border-radius: 10px;
}
.bf-success-icon {
    width: 64px;
    height: 64px;
    background: #C8102E;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
#tvhayna-bf-success-msg {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1A1A1A;
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .bf-fields-grid { grid-template-columns: 1fr; }
    .bf-field--wide { grid-column: auto; }

    .bf-product-row {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
    }
    .bf-prod-image {
        grid-row: 1;
        grid-column: 1;
    }
    .bf-prod-img,
    .bf-prod-img-placeholder {
        width: 72px;
        height: 72px;
    }
    .bf-prod-img-placeholder svg { width: 48px; height: 48px; }
    .bf-prod-info {
        grid-row: 1;
        grid-column: 2;
    }
    .bf-prod-controls {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 10px;
    }
    .bf-ctrl-price .bf-row-price { text-align: left; }
    .bf-total-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
    .bf-total-amount { font-size: 1.8rem; }
    .bf-submit-btn { width: 100%; min-width: 0; }
}
