/* BC Trockenbau Forms — frontend */
.bctf-tabs-wrapper,
.bctf-form-container,
.bctf-appt-page,
.bctf-quote-page {
    --bctf-onyx: #131313;
    --bctf-gold: #c5a059;
    --bctf-gold-soft: #e0c99b;
    --bctf-paper: #efeeea;
    --bctf-card: #ffffff;
    --bctf-field: #f7f5f1;
    --bctf-border: #e6e2da;
    --bctf-text: #14140f;
    --bctf-muted: #6f6a62;
    font-family: inherit;
    color: var(--bctf-text);
    box-sizing: border-box;
}
.bctf-tabs-wrapper *,
.bctf-form-container *,
.bctf-appt-page *,
.bctf-quote-page * { box-sizing: border-box; }
.bctf-tabs-wrapper h1, .bctf-tabs-wrapper h2, .bctf-tabs-wrapper h3,
.bctf-form-container h1, .bctf-form-container h2, .bctf-form-container h3,
.bctf-appt-page h1, .bctf-appt-page h2, .bctf-appt-page h3,
.bctf-quote-page h1, .bctf-quote-page h2, .bctf-quote-page h3,
.bctf-tabs-wrapper p, .bctf-form-container p, .bctf-appt-page p, .bctf-quote-page p {
    letter-spacing: 0;
    text-transform: none;
}
.bctf-form button, .bctf-tabs-wrapper .bctf-tab {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}
.bctf-form button:focus,
.bctf-form button:focus-visible,
.bctf-tabs-wrapper .bctf-tab:focus,
.bctf-tabs-wrapper .bctf-tab:focus-visible {
    outline: 2px solid var(--bctf-gold);
    outline-offset: 2px;
    box-shadow: none;
}
.bctf-tabs-wrapper svg,
.bctf-form-container svg,
.bctf-appt-page svg,
.bctf-quote-page svg {
    display: block;
    flex: 0 0 auto;
    max-width: none;
    max-height: none;
    overflow: visible;
}

/* ---------- Shared fields ---------- */
.bctf-form .form-group { margin-bottom: 18px; }
.bctf-form .form-group > label { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; padding: 0; color: var(--bctf-text); background: transparent; }
.bctf-form input[type="text"],
.bctf-form input[type="email"],
.bctf-form input[type="tel"],
.bctf-form input[type="number"],
.bctf-form input[type="date"],
.bctf-form select,
.bctf-form textarea {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 14px 16px;
    background: var(--bctf-field);
    border: 1px solid var(--bctf-border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--bctf-text);
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}
.bctf-form input:invalid,
.bctf-form select:invalid,
.bctf-form textarea:invalid {
    border-color: var(--bctf-border);
    box-shadow: none;
}
.bctf-form textarea { resize: vertical; min-height: 150px; }
.bctf-form input:focus,
.bctf-form select:focus,
.bctf-form textarea:focus {
    outline: none;
    border-color: var(--bctf-gold);
    box-shadow: 0 0 0 3px rgba(197,160,89,.18);
}
.bctf-form .bctf-invalid { border-color: var(--bctf-gold) !important; box-shadow: 0 0 0 3px rgba(197,160,89,.18) !important; }
.bctf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.bctf-note { background: rgba(19,19,19,.04); border-radius: 12px; padding: 14px 16px; font-size: 12.5px; color: var(--bctf-muted); margin-top: 8px; }
.bctf-hint { text-align: center; font-style: italic; font-size: 14px; color: var(--bctf-muted); margin: 18px 0 0; }

.bctf-form .bctf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--bctf-onyx); color: #fff; border: 1px solid var(--bctf-onyx);
    width: auto; min-width: 0; padding: 0 28px; height: 52px; min-height: 52px; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: transform .15s, opacity .2s, background .2s;
}
.bctf-form .bctf-btn:hover { background: var(--bctf-onyx); color: #fff; opacity: .9; transform: translateY(-1px); }
.bctf-form .bctf-btn > svg { width: 18px !important; height: 18px !important; min-width: 18px; min-height: 18px; }
.bctf-form .bctf-btn--ghost { background: transparent; color: var(--bctf-text); border-color: var(--bctf-border); }
.bctf-form .bctf-btn--ghost:hover { background: var(--bctf-field); color: var(--bctf-text); }
.bctf-btn[disabled], .bctf-btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bctf-btn-group { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.bctf-btn-group--end { justify-content: flex-end; }

.bctf-message { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.bctf-message.success { display: block; background: rgba(197,160,89,.12); border: 1px solid var(--bctf-gold); color: #6b5320; }
.bctf-message.error { display: block; background: rgba(197,160,89,.10); border: 1px solid var(--bctf-gold); color: var(--bctf-text); }

.bctf-step { display: none; }
.bctf-step.active { display: block; animation: bctf-fade .32s ease both; }
.bctf-hidden { display: none !important; }
.bctf-form.is-sent .bctf-step,
.bctf-form.is-sent .bctf-progress,
.bctf-form.is-sent .bctf-quote-header,
.bctf-form.is-sent .bctf-appt-side,
.bctf-form.is-sent .bctf-btn-group,
.bctf-form.is-sent .bctf-hint { display: none !important; }
@keyframes bctf-fade { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- Tabs ---------- */
.bctf-tabs-wrapper { max-width: 980px; margin: 0 auto; }
.bctf-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    background: var(--bctf-card); border-radius: 20px; padding: 10px;
    box-shadow: 0 18px 40px -28px rgba(0,0,0,.45); margin-bottom: 22px;
}
.bctf-tabs-wrapper .bctf-tab {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: transparent; border: 0; cursor: pointer; padding: 18px 10px;
    border-radius: 14px; color: var(--bctf-muted);
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    transition: background .2s, color .2s;
}
.bctf-tabs-wrapper .bctf-tab .bctf-tab-icon > svg { width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; }
.bctf-tabs-wrapper .bctf-tab:hover { background: var(--bctf-field); color: var(--bctf-text); }
.bctf-tabs-wrapper .bctf-tab.active { background: var(--bctf-onyx); color: #fff; }
.bctf-tab.active .bctf-tab-icon { color: var(--bctf-gold); }
.bctf-tab-icon { color: var(--bctf-gold); display: inline-flex; }
.bctf-tab-panel { display: none; }
.bctf-tab-panel.active { display: block; }

/* ---------- Simple card (contact) ---------- */
.bctf-form-container {
    background: var(--bctf-card); border: 1px solid var(--bctf-border);
    border-radius: 24px; padding: 36px; max-width: 980px; margin: 0 auto;
    box-shadow: 0 24px 60px -40px rgba(0,0,0,.5);
}
.bctf-form-container h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 26px; font-weight: 800; }
.bctf-form-icon { color: var(--bctf-gold); display: inline-flex; }
.bctf-form-container .bctf-form-icon > svg { width: 26px !important; height: 26px !important; min-width: 26px; min-height: 26px; }
.bctf-form-container > .bctf-form > button[type="submit"] {
    width: 100%; height: 60px; border-radius: 14px; border: 0;
    background: var(--bctf-onyx); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px;
}

/* ---------- Quote wizard ---------- */
.bctf-quote-page { max-width: 940px; margin: 0 auto; }
.bctf-quote-head { text-align: center; margin-bottom: 34px; }
.bctf-eyebrow { display: block; color: var(--bctf-gold); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px; }
.bctf-quote-head h1 { font-size: 44px; line-height: 1.1; font-weight: 800; margin: 0 0 12px; }
.bctf-quote-head p { color: var(--bctf-muted); font-size: 17px; margin: 0; }
.bctf-quote-card {
    background: var(--bctf-card); border: 1px solid var(--bctf-border);
    border-radius: 24px; overflow: hidden; box-shadow: 0 28px 70px -45px rgba(0,0,0,.55);
}
.bctf-progress { height: 8px; width: 100%; background: var(--bctf-field); }
.bctf-progress-bar { display: block; height: 100%; width: 25%; background: var(--bctf-gold); transition: width .35s ease; }
.bctf-quote-inner { padding: 32px; }
.bctf-quote-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.bctf-step-counter { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bctf-gold); }
.bctf-step-title { margin: 6px 0 0; font-size: 26px; font-weight: 800; }
.bctf-step-icon { flex: none; width: 48px; height: 48px; border-radius: 999px; background: rgba(197,160,89,.14); color: var(--bctf-gold); display: inline-flex; align-items: center; justify-content: center; }
.bctf-quote-page .bctf-step-icon > svg { width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; }

.bctf-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.bctf-service-card {
    position: relative; display: flex; align-items: center; gap: 16px;
    width: 100%; min-height: 96px; padding: 16px; border: 2px solid var(--bctf-border); border-radius: 16px;
    background: var(--bctf-card); color: var(--bctf-text); cursor: pointer; margin: 0; font-size: 15px; font-weight: 400; line-height: 1.25; transition: all .18s;
}
.bctf-service-card:hover { border-color: var(--bctf-gold-soft); background: var(--bctf-field); }
.bctf-service-card input { position: absolute; opacity: 0; pointer-events: none; }
.bctf-service-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--bctf-field); color: var(--bctf-muted); display: inline-flex; align-items: center; justify-content: center; transition: all .18s; }
.bctf-quote-page .bctf-service-icon > svg { width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; }
.bctf-service-text { display: block; min-width: 0; color: var(--bctf-text); }
.bctf-service-text strong { display: block; margin: 0; color: var(--bctf-text); font-size: 16px; font-weight: 700; line-height: 1.25; }
.bctf-service-text small { display: block; margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: var(--bctf-muted); }
.bctf-service-check { margin-left: auto; color: var(--bctf-gold); display: none; }
.bctf-quote-page .bctf-service-check > svg { width: 20px !important; height: 20px !important; min-width: 20px; min-height: 20px; }
.bctf-service-card.is-checked { border-color: var(--bctf-gold); background: rgba(197,160,89,.07); box-shadow: 0 8px 24px -18px rgba(197,160,89,.9); }
.bctf-service-card.is-checked .bctf-service-icon { background: var(--bctf-gold); color: #fff; }
.bctf-service-card.is-checked .bctf-service-check { display: inline-flex; }
.bctf-checkbox-group.bctf-invalid .bctf-service-card { border-color: var(--bctf-gold); }
.bctf-quote-actions { border-top: 1px solid var(--bctf-border); padding-top: 24px; }

/* ---------- Appointment ---------- */
.bctf-appt-page { max-width: 960px; margin: 0 auto; }
.bctf-appt-head { text-align: center; margin-bottom: 34px; }
.bctf-appt-head h1 { font-size: 46px; line-height: 1.08; font-weight: 800; margin: 0 0 12px; }
.bctf-appt-head p { color: var(--bctf-muted); font-size: 17px; margin: 0; }
.bctf-appt-card {
    display: flex; align-items: stretch; background: var(--bctf-card);
    border: 1px solid var(--bctf-border); border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 80px -50px rgba(0,0,0,.6); min-height: 560px;
}
.bctf-appt-side { background: var(--bctf-onyx); color: #f4f2ee; padding: 32px; width: 34%; display: flex; flex-direction: column; justify-content: space-between; }
.bctf-appt-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.bctf-appt-brand-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bctf-gold); color: var(--bctf-onyx); display: inline-flex; align-items: center; justify-content: center; }
.bctf-appt-page .bctf-appt-brand-icon > svg { width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; }
.bctf-appt-brand-name { font-size: 20px; font-weight: 800; }
.bctf-appt-nav { display: flex; flex-direction: column; gap: 28px; }
.bctf-appt-nav-item { display: flex; align-items: center; gap: 14px; font-weight: 600; opacity: .4; transition: opacity .2s; }
.bctf-appt-nav-item.is-active, .bctf-appt-nav-item.is-done { opacity: 1; }
.bctf-appt-dot { width: 32px; height: 32px; border-radius: 999px; border: 2px solid rgba(244,242,238,.2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.bctf-appt-nav-item.is-active .bctf-appt-dot, .bctf-appt-nav-item.is-done .bctf-appt-dot { border-color: var(--bctf-gold); color: var(--bctf-gold); }
.bctf-appt-summary { margin-top: 40px; padding: 16px; border-radius: 16px; background: rgba(244,242,238,.05); border: 1px solid rgba(244,242,238,.1); }
.bctf-appt-summary-label { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(197,160,89,.7); }
.bctf-appt-summary p { margin: 8px 0 0; font-size: 14px; font-weight: 500; }
.bctf-appt-summary-time { color: var(--bctf-gold); font-size: 18px !important; font-weight: 800 !important; }
.bctf-appt-main { width: 66%; padding: 40px; display: flex; flex-direction: column; }
.bctf-appt-main .bctf-step.active { display: flex; flex-direction: column; flex: 1; }
.bctf-appt-title { font-size: 24px; font-weight: 800; margin: 0 0 26px; }
.bctf-appt-main .bctf-btn-group { margin-top: auto; padding-top: 28px; }

.bctf-cal { border: 1px solid var(--bctf-border); border-radius: 16px; padding: 16px; max-width: 380px; margin: 0 auto; width: 100%; }
.bctf-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bctf-cal-title { font-size: 16px; font-weight: 600; }
.bctf-form .bctf-cal-nav { background: transparent !important; border: 1px solid transparent !important; cursor: pointer; color: var(--bctf-muted) !important; padding: 6px; border-radius: 8px; box-shadow: none !important; }
.bctf-cal-nav:hover { background: var(--bctf-field); color: var(--bctf-text); }
.bctf-appt-page .bctf-cal-nav > svg { width: 18px !important; height: 18px !important; min-width: 18px; min-height: 18px; display: block; }
.bctf-cal-week, .bctf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bctf-cal-week span { text-align: center; font-size: 12.5px; color: var(--bctf-muted); padding: 6px 0; }
.bctf-form .bctf-cal-day { width: 100%; min-width: 0; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 1px solid transparent !important; background: transparent !important; border-radius: 10px; box-shadow: none !important; outline: none; font-size: 14px; font-weight: 400; line-height: 1; color: var(--bctf-text) !important; cursor: pointer; }
.bctf-form .bctf-cal-day:hover:not(:disabled) { background: var(--bctf-field) !important; border-color: var(--bctf-border) !important; }
.bctf-form .bctf-cal-day:focus,
.bctf-form .bctf-cal-day:focus-visible { border-color: var(--bctf-gold) !important; outline: none; box-shadow: 0 0 0 2px rgba(197,160,89,.18) !important; }
.bctf-form .bctf-cal-day.is-muted { color: rgba(20,20,15,.28) !important; }
.bctf-form .bctf-cal-day:disabled { color: rgba(20,20,15,.25) !important; cursor: not-allowed; opacity: 1; }
.bctf-form .bctf-cal-day.is-selected { background: var(--bctf-gold) !important; border-color: var(--bctf-gold) !important; color: #fff !important; font-weight: 700; }

.bctf-slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.bctf-form .bctf-slot { width: 100%; height: 60px; min-height: 60px; padding: 0 10px; border: 2px solid var(--bctf-border); background: transparent; border-radius: 12px; font-size: 17px; font-weight: 700; cursor: pointer; transition: all .18s; color: var(--bctf-text); }
.bctf-slot:hover { border-color: var(--bctf-gold-soft); background: var(--bctf-field); }
.bctf-slot.is-selected { background: var(--bctf-gold); border-color: var(--bctf-gold); color: #fff; box-shadow: 0 10px 26px -14px rgba(197,160,89,.9); }

@media (max-width: 860px) {
    .bctf-appt-card { flex-direction: column; }
    .bctf-appt-side, .bctf-appt-main { width: 100%; }
    .bctf-appt-main { padding: 26px; }
    .bctf-grid-2, .bctf-service-grid { grid-template-columns: 1fr; }
    .bctf-quote-head h1, .bctf-appt-head h1 { font-size: 32px; }
    .bctf-quote-inner, .bctf-form-container { padding: 22px; }
    .bctf-slot-grid { grid-template-columns: repeat(2, 1fr); }
    .bctf-btn { padding: 0 18px; height: 48px; font-size: 14px; }
    .bctf-tab-label { font-size: 11px; }
}

@media (max-width: 520px) {
    .bctf-tabs { gap: 4px; padding: 6px; border-radius: 14px; }
    .bctf-tab { padding: 12px 4px; letter-spacing: .08em; }
    .bctf-form-container, .bctf-quote-inner, .bctf-appt-main { padding: 18px; }
    .bctf-quote-head h1, .bctf-appt-head h1 { font-size: 28px; }
    .bctf-step-title, .bctf-appt-title { font-size: 21px; }
    .bctf-btn-group { align-items: stretch; }
    .bctf-btn { min-width: 0; }
    .bctf-service-card { gap: 12px; padding: 13px; }
    .bctf-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .bctf-slot { height: 52px; font-size: 15px; }
}

/* ---------- Theme conflict guard: force brand palette on all plugin controls ---------- */
.bctf-tabs-wrapper button,
.bctf-form button,
.bctf-appt-page button,
.bctf-quote-page button {
    background-image: none !important;
    text-shadow: none !important;
    letter-spacing: normal;
    text-transform: none;
}

.bctf-form .bctf-btn,
.bctf-form .bctf-btn:hover,
.bctf-form .bctf-btn:focus,
.bctf-form .bctf-btn:active,
.bctf-form .bctf-btn:visited {
    background-color: var(--bctf-onyx) !important;
    border-color: var(--bctf-onyx) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}
.bctf-form .bctf-btn--ghost,
.bctf-form .bctf-btn--ghost:hover,
.bctf-form .bctf-btn--ghost:focus,
.bctf-form .bctf-btn--ghost:active {
    background-color: transparent !important;
    border-color: var(--bctf-border) !important;
    color: var(--bctf-text) !important;
}
.bctf-form .bctf-btn--ghost:hover { background-color: var(--bctf-field) !important; }

.bctf-form .bctf-slot,
.bctf-form .bctf-slot:focus,
.bctf-form .bctf-slot:active,
.bctf-form .bctf-slot:visited {
    background-color: transparent !important;
    border-color: var(--bctf-border) !important;
    color: var(--bctf-text) !important;
    box-shadow: none !important;
    outline: none !important;
}
.bctf-form .bctf-slot:hover:not(.is-selected) {
    background-color: var(--bctf-field) !important;
    border-color: var(--bctf-gold-soft) !important;
    color: var(--bctf-text) !important;
}
.bctf-form .bctf-slot.is-selected,
.bctf-form .bctf-slot.is-selected:hover,
.bctf-form .bctf-slot.is-selected:focus,
.bctf-form .bctf-slot.is-selected:active {
    background-color: var(--bctf-gold) !important;
    border-color: var(--bctf-gold) !important;
    color: #fff !important;
}

.bctf-tabs-wrapper .bctf-tab,
.bctf-tabs-wrapper .bctf-tab:focus,
.bctf-tabs-wrapper .bctf-tab:active {
    background-color: transparent !important;
    color: var(--bctf-muted) !important;
    box-shadow: none !important;
    outline: none !important;
}
.bctf-tabs-wrapper .bctf-tab:hover { background-color: var(--bctf-field) !important; color: var(--bctf-text) !important; }
.bctf-tabs-wrapper .bctf-tab.active,
.bctf-tabs-wrapper .bctf-tab.active:hover,
.bctf-tabs-wrapper .bctf-tab.active:focus { background-color: var(--bctf-onyx) !important; color: #fff !important; }
.bctf-tabs-wrapper .bctf-tab.active .bctf-tab-icon { color: var(--bctf-gold) !important; }

.bctf-form .bctf-service-card,
.bctf-form .bctf-service-card:hover,
.bctf-form .bctf-service-card:focus-within {
    box-shadow: none !important;
    outline: none !important;
}
.bctf-form .bctf-service-card.is-checked { border-color: var(--bctf-gold) !important; background-color: rgba(197,160,89,.07) !important; }
.bctf-form input[type="checkbox"], .bctf-form input[type="radio"] { accent-color: var(--bctf-gold); }
.bctf-form input:focus, .bctf-form select:focus, .bctf-form textarea:focus {
    border-color: var(--bctf-gold) !important;
    box-shadow: 0 0 0 3px rgba(197,160,89,.16) !important;
    outline: none !important;
}

/* Sidebar timeline states */
.bctf-appt-nav-item.is-active { opacity: 1 !important; color: #fff; }
.bctf-appt-nav-item.is-done { opacity: .85 !important; }
.bctf-appt-nav-item.is-active .bctf-appt-dot { background: var(--bctf-gold) !important; border-color: var(--bctf-gold) !important; color: var(--bctf-onyx) !important; }
.bctf-appt-nav-item.is-done .bctf-appt-dot { background: rgba(197,160,89,.18) !important; border-color: var(--bctf-gold) !important; color: var(--bctf-gold) !important; }
