﻿/* ============================================================
   Briliant Carpet вЂ“ Frontend Styles
   Designed to match the Briliant Prane mockup and integrate
   cleanly with the Kadence WP theme.
   ============================================================ */

   /* Defined by the Child Theme *

:root {
    --brl-green:         #009846;
	--brl-green-dark:    #058f32;
    --brl-green-light:   #eefaef;
    --brl-green-trans:   rgb(49 255 0 / 10%);
	
    --brl-green-light:  #eff6ff;
    --brl-success:        #059669;
    --brl-success-light:  #d1fae5;
    --brl-text:           #111827;
    --brl-text-muted:     #6b7280;
    --brl-border:         #e5e7eb;
    --brl-border-light:   #f3f4f6;
    --brl-bg:             #ffffff;
    --brl-bg-soft:        #f9fafb;
    --brl-danger:         #dc2626;
    --brl-radius:         12px;
    --brl-radius-sm:      8px;
    --brl-shadow:         0 4px 16px rgba(0,0,0,.06);
    --brl-shadow-lg:      0 10px 30px rgba(26,86,219,.12);
}

End child theme definitions */

/* ============================================================
   CALCULATOR
   ============================================================ */
.brc-wrap {
    font-family: inherit;
    color: var(--brl-text);
    max-width: 100%;
    box-sizing: border-box;
}

.brc-wrap *,
.brc-wrap *::before,
.brc-wrap *::after {
    box-sizing: border-box;
}

.brc-header {
    text-align: center;
    margin-bottom: 22px;
}

.brc-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 20px;
}

.brc-result-side {
    display: flex;
    flex-direction: column;
}

.brc-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brl-text);
    margin: 0 0 6px;
}

.brc-subtitle {
    font-size: 14px;
    color: var(--brl-text-muted);
    margin: 0;
}

.brc-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brc-field-group {
    display: flex;
    flex-direction: column;
}

.brc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--brl-text);
    margin-bottom: 6px;
    display: block;
}

/* Select */
.brc-select-wrap {
    position: relative;
}
.brc-select {
    width: 100%;
    padding: 6px 38px 6px 14px;
    font-size: 15px;
    border: 1px solid var(--brl-border);
    border-radius: var(--brl-radius-sm);
    background: var(--brl-bg);
    color: var(--brl-text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color .15s, box-shadow .15s;
}
.brc-select:focus {
    outline: none;
    border-color: var(--brl-green);
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}

/* Dimensions */
.brc-dim-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brc-dim-field {
    position: relative;
    flex: 1;
}
.brc-input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    font-size: 15px;
    border: 1px solid var(--brl-border);
    border-radius: var(--brl-radius-sm) !important;
    background: var(--brl-bg);
    color: var(--brl-text);
    transition: border-color .15s, box-shadow .15s;
}
.brc-input:focus {
    outline: none;
    border-color: var(--brl-green);
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.brc-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--brl-text-muted);
    pointer-events: none;
    font-weight: 500;
}
.brc-dim-sep {
    font-size: 20px;
    font-weight: 700;
    color: var(--brl-text-muted);
}
.brc-hint {
    font-size: 12px;
    color: var(--brl-text-muted);
    margin: 6px 0 0;
}

/* Overlock checkbox (calculator) */
.brc-overlock-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brl-text);
    cursor: pointer;
    line-height: 1.4;
}
.brc-overlock-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--brl-green);
}

/* Result panel */
.brc-result-panel {
    padding: 22px 20px;
    background: var(--brl-green-trans);
    border: 1px solid var(--brl-green);
    border-radius: var(--brl-radius);
}
.brc-price-box {
    text-align: center;
}
.brc-price-label {
    display: block;
    font-size: 15px;
    color: var(--brl-green-dark);
    margin-bottom: 20px;
    font-weight: 700;
}
.brc-price-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--brl-success);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.brc-price-note {
    display: block;
    font-size: 12px;
    color: var(--brl-text-muted);
    margin-top: 10px;
    font-style: normal;
}

/* CTA row */
.brc-cta-row {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.brc-cta-row .brc-btn-booking {
    width: auto;
    min-width: 220px;
    max-width: 360px;
}

/* Trust row */
.brc-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: var(--brl-text-muted);
    font-weight: 500;
    padding-top: 16px;
    border-top: 1px solid var(--brl-border-light);
}
.brc-btn-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background: var(--brl-green);
    border: none;
    border-radius: var(--brl-radius-sm);
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, transform .1s;
    font-family: inherit;
}
.brc-btn-booking:hover {
    background: var(--brl-green-dark);
    color: #fff !important;
    transform: translateY(-1px);
}
.brc-btn-booking:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .brc-main { grid-template-columns: 1fr; }
    .brc-title { font-size: 19px; }
    .brc-price-value { font-size: 30px; }
    .brc-trust-row { flex-direction: column; gap: 6px; }
}


/* ============================================================
   BOOKING FORM – multi-step
   ============================================================ */
.brbf-wrap {
    font-family: inherit;
    color: var(--brl-text);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.brbf-wrap *, .brbf-wrap *::before, .brbf-wrap *::after { box-sizing: border-box; }

/* ── Step indicator ── */
.brbf-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 20px;
    gap: 0;
}
.brbf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.brbf-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brl-border-light);
    color: var(--brl-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s;
}
.brbf-step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--brl-text-muted);
    white-space: nowrap;
    transition: color .2s;
}
.brbf-step.brbf-step-active .brbf-step-num {
    background: var(--brl-green) !important;
    color: #fff !important;
    box-shadow: 0 0 4px 3px rgb(26 162 219 / 20%);
}
.brbf-step.brbf-step-active .brbf-step-label { color: var(--brl-green) !important; font-weight: 700; }
.brbf-step.brbf-step-done .brbf-step-num  { background: var(--brl-success) !important; color: #fff !important; }
.brbf-step.brbf-step-done .brbf-step-label { color: var(--brl-success) !important; }
.brbf-step-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
    min-width: 28px;
    max-width: 80px;
    margin-bottom: 16px;
    transition: background .3s;
}
.brbf-step-line.brbf-line-done { background: var(--brl-success); }

/* ── Step panels ── */
.brbf-step-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

/* ── Panel header ── */
.brbf-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}
.brbf-panel-header-left h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--brl-text);
    margin: 0 0 5px;
    line-height: 1.3;
}
.brbf-panel-header-left p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Live totals in header */
.brbf-header-totals {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brbf-header-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
.brbf-header-total span {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.brbf-header-total strong {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}
.brbf-total-price-val { color: var(--brl-green) !important; }
.brbf-header-total-sep {
    width: 1px;
    height: 28px;
    background: #e5e7eb;
}

/* ── Carpet grid ── */
.brbf-carpets-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 20px;
}

/* Carpet card */
.brbf-carpet-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.brbf-carpet-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 1px 4px rgba(26,86,219,.08);
}
.brbf-carpet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.brbf-carpet-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--brl-green);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.brbf-remove-carpet {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    font-family: inherit;
    transition: color .15s;
}
.brbf-remove-carpet:hover { color: #ef4444; }
.brbf-carpet-fields { display: flex; flex-direction: column; gap: 8px; }
.brbf-dim-group { display: flex; align-items: flex-end; gap: 5px; }
.brbf-carpet-field { flex: 1; display: flex; flex-direction: column; }
.brbf-carpet-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brl-text-muted);
    margin-bottom: 3px;
}
.brbf-carpet-field input,
.brbf-carpet-field select {
    width: 100%;
    padding: 7px 9px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #f9fafb;
    color: #111827;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
.brbf-carpet-field input:focus,
.brbf-carpet-field select:focus {
    outline: none;
    border-color: var(--brl-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,.08);
}
.brbf-dim-sep {
    color: #d1d5db;
    font-weight: 600;
    font-size: 13px;
    padding-bottom: 7px;
    flex-shrink: 0;
}
/* Overlock checkbox (booking form carpet card) */
.brbf-overlock-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--brl-text);
    cursor: pointer;
    margin-top: 6px;
    line-height: 1.4;
}
.brbf-overlock-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--brl-green);
}

.brbf-carpet-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f3f4f6;
    text-align: center;
}
.brbf-carpet-result-item span {
    display: block;
    font-size: 9px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1px;
}
.brbf-carpet-result-item strong {
    font-size: 12px;
    color: #374151;
    font-weight: 600;
}
.brbf-carpet-result-item.brbf-result-price strong { color: var(--brl-green); }

/* Add-carpet card */
.brbf-carpet-add-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
    background: none;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 13px;
    font-family: inherit;
    transition: border-color .15s, color .15s, background .15s;
}
.brbf-carpet-add-card:hover:not(:disabled) {
        border-color: var(--brl-text);
    color: var(--brl-text);
    background: var(--brl-bg-soft);
}
.brbf-carpet-add-card:disabled { opacity: .4; cursor: not-allowed; }
.brbf-add-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px dashed currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

/* Summary note */
.brbf-summary-note {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    padding: 0 20px 12px;
    font-style: italic;
}

/* ── Personal data rows ── */
.brbf-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 20px 0;
}
.brbf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    padding: 12px 20px 0;
}
.brbf-field {
    display: flex;
    flex-direction: column;
    padding: 0 0 12px;
}
.brbf-row-3 .brbf-field,
.brbf-row-2 .brbf-field { padding: 0; }
.brbf-step-panel > .brbf-field { padding: 12px 20px; }
.brbf-field label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.brbf-req { color: #ef4444; }
.brbf-opt { color: #d1d5db; font-weight: 400; font-size: 10px; text-transform: none; }
.brbf-field input,
.brbf-field select,
.brbf-field textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    font-family: inherit;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.brbf-field textarea { resize: vertical; min-height: 68px; }
.brbf-field input:focus,
.brbf-field select:focus,
.brbf-field textarea:focus {
    outline: none;
    border-color: var(--brl-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,.08);
}
.brbf-field.brbf-field-error input,
.brbf-field.brbf-field-error select,
.brbf-field.brbf-field-error textarea {
    border-color: #ef4444;
    background: #fff;
}

/* Time slots */
.brbf-time-slots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.brbf-time-slot {
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.brbf-time-slot:hover { 
    border-color: var(--brl-green); 
    color: var(--brl-green); 
    background: #fff;
}
.brbf-time-slot.brbf-time-active { background: var(--brl-green); color: #fff; border-color: var(--brl-green); }

/* ── Preview (step 3) ── */
.brbf-preview { padding: 0 20px 16px; }
.brbf-preview-block {
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    margin: 20px 0;
}
.brbf-preview-block-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brl-text);
    margin-bottom: 10px;
}
.brbf-preview-carpet {
    display: grid;
    grid-template-columns: 20px 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
}
.brbf-preview-carpet:last-of-type { border-bottom: none; }
.brbf-preview-num {
    width: 20px;
    height: 20px;
    background: var(--brl-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.brbf-preview-totals {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 14px;
    color: var(--brl-text);
}
.brbf-preview-totals strong { color: var(--brl-green); font-size: 15px; }
.brbf-preview-info {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 5px 12px;
    font-size: 13px;
}
.brbf-preview-label { color: #9ca3af; font-size: 12px; }

/* ── Privacy ── */
.brbf-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    padding: 0 20px 14px;
    cursor: pointer;
    line-height: 1.5;
}
.brbf-privacy input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--brl-green);
}
.brbf-privacy a { color: var(--brl-green); text-decoration: underline; }

/* ── Error ── */
.brbf-error {
    margin: 0 20px 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
}

/* ── Panel nav (Next/Back inside each panel) ── */
.brbf-panel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}
.brbf-btn-nav {
    display: inline-flex !important;
    align-items: center;
    padding: 11px 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    line-height: 1;
    text-decoration: none !important;
}
.brbf-prev-btn {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}
.brbf-prev-btn:hover { background: #f3f4f6 !important; border-color: #d1d5db !important; }
.brbf-next-btn {
    background: var(--brl-green) !important;
    color: #fff !important;
    border: none !important;
}
.brbf-next-btn:hover { background: var(--brl-green-dark) !important; }

/* ── Submit ── */
.brbf-btn-submit {
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--brl-success);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.brbf-btn-submit:hover:not(:disabled) { background: #047857; }
.brbf-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.brbf-btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.brbf-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: brbf-spin .8s linear infinite;
}
@keyframes brbf-spin { to { transform: rotate(360deg); } }
.brbf-help-text {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    padding: 0 20px 14px;
    line-height: 1.5;
}

/* ── Success ── */
.brbf-success {
    text-align: center;
    background: #fff;
    border: 1px solid var(--brl-success);
    border-radius: 12px;
    padding: 48px 28px;
    box-shadow: var(--brl-shadow-lg);
}
.brbf-success-icon  { font-size: 52px; margin-bottom: 14px; line-height: 1; }
.brbf-success-title { font-size: 22px; color: var(--brl-success); margin: 0 0 10px; font-weight: 700; }
.brbf-success-text  { font-size: 15px; color: var(--brl-text); margin: 0 0 8px; line-height: 1.6; }
.brbf-success-email { font-size: 15px; color: var(--brl-text-muted); margin: 0; }

/* ── Flatpickr ── */
.flatpickr-calendar { box-shadow: var(--brl-shadow-lg) !important; border-radius: 8px !important; border: 1px solid #e5e7eb !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--brl-green) !important; border-color: var(--brl-green) !important; }
.flatpickr-day:hover { background: #eff6ff !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .brbf-carpets-list  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .brbf-panel-header  { flex-direction: column; align-items: flex-start; gap: 10px; }
    .brbf-header-totals { flex-direction: row; align-self: stretch; justify-content: flex-start; }
    .brbf-header-total  { align-items: flex-start; }
    .brbf-carpets-list  { grid-template-columns: 1fr; padding: 12px; }
    .brbf-row-3         { grid-template-columns: 1fr; padding: 12px 16px 0; }
    .brbf-row-2         { grid-template-columns: 1fr; padding: 12px 16px 0; }
    .brbf-step-panel > .brbf-field { padding: 12px 16px; }
    .brbf-preview       { padding: 0 12px 12px; }
    .brbf-privacy       { padding: 0 12px 12px; }
    .brbf-error         { margin: 0 12px 10px; }
    .brbf-panel-nav     { padding: 10px 12px; }
    .brbf-summary-note  { padding: 0 12px 10px; }
    .brbf-step-label    { display: none; }
    .brbf-step-line     { min-width: 16px; }
}
