/* CSS for Cabinet Configurator */
.kabin-config-section {
    padding: 120px 0 60px 0;
    background-color: #F8FAFC;
    font-family: 'Inter', sans-serif;
}
.kabin-config-header {
    text-align: center;
    margin-bottom: 50px;
}
.kabin-config-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
}
.kabin-config-header p {
    color: #64748B;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout */
.kabin-config-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .kabin-config-layout {
        grid-template-columns: 1fr;
    }
}

/* Steps */
.kc-step-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.kc-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.kc-step-number {
    width: 32px;
    height: 32px;
    background: #E2E8F0;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.kc-step-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1E293B;
}

/* Option Grids */
.kc-options-grid {
    display: grid;
    gap: 16px;
}
.loc-grid { grid-template-columns: repeat(3, 1fr); }
.cab-grid { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 767px) {
    .loc-grid, .cab-grid, .cols-3 { grid-template-columns: 1fr; }
}

.kc-option-box {
    position: relative;
    cursor: pointer;
    display: block;
}
.kc-option-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.kc-opt-content {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.loc-grid .kc-opt-content {
    padding-bottom: 50px;
}

.row-dir {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 16px;
}

.kc-option-box:hover .kc-opt-content {
    border-color: #CBD5E1;
}

.kc-option-box input:checked ~ .kc-opt-content {
    border-color: #4F46E5;
    background-color: rgba(79, 70, 229, 0.02);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.kc-option-box.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

.kc-opt-icon {
    width: 44px;
    height: 44px;
    background: #F8FAFC;
    color: #64748B;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.kc-option-box input:checked ~ .kc-opt-content .kc-opt-icon {
    background: #4F46E5;
}
.kc-option-box input:checked ~ .kc-opt-content .kc-opt-icon i {
    color: #FFF !important; /* Ensure icons inside the colored box are strictly white */
}
.row-dir .kc-opt-icon { margin-bottom: 0; }
.row-dir { font-size: 1.5rem; color: #94A3B8; }
.kc-option-box input:checked ~ .kc-opt-content i { color: #4F46E5; }

/* Icon Fix: Force bootstrap-icons font-family */
.kc-opt-content i, .kc-addon-left i, .kc-input-box i {
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.kc-opt-details h4, .kc-opt-content h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E293B;
}

.kc-opt-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #64748B;
}
.kc-opt-details ul li { margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.kc-opt-details ul li::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #CBD5E1;
}

.kc-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}
.kc-badge.success { background: #DCFCE7; color: #166534; }
.kc-badge.danger { background: #FEE2E2; color: #991B1B; }

/* Cabinet Badges */
.kc-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    background: #DCFCE7;
    color: #166534;
}
.kc-stock-badge.orange { background: #FFF7ED; color: #C2410C; }
.kc-feature-text { font-size: 0.75rem; color: #94A3B8; display: block; margin-bottom: 12px; }
.kc-price { font-size: 1.1rem; font-weight: 800; color: #1E293B; margin-top: auto; }
.kc-price span { font-size: 0.8rem; font-weight: 600; color: #64748B; }

/* Sub Sections & Pills */
.kc-sub-section {
    margin-bottom: 24px;
}
.kc-sub-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kc-pill-grid {
    display: grid;
    gap: 12px;
}
.kc-pill-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.kc-pill-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.kc-pill-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.kc-pill-grid.cols-7 { grid-template-columns: repeat(7, 1fr); }

@media (max-width: 767px) {
    .kc-pill-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

.kc-pill {
    position: relative;
    cursor: pointer;
    display: block;
}
.kc-pill input { position: absolute; opacity: 0; }
.kc-pill span {
    display: block;
    text-align: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
    background: #FFF;
}
.kc-pill small {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94A3B8;
    display: block;
    margin-top: 4px;
}

.kc-pill:hover span {
    border-color: #CBD5E1;
}
.kc-pill input:checked ~ span {
    border-color: #4F46E5;
    background: #4F46E5;
    color: #FFF;
}
.kc-pill input:checked ~ span small {
    color: rgba(255,255,255,0.8);
}

.kc-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 767px) {
    .kc-row-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Addons */
.kc-addon-row {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
}
.kc-addon-row:hover { border-color: #CBD5E1; }
.kc-addon-left { display: flex; align-items: center; gap: 12px; }
.kc-addon-left i { font-size: 1.25rem; color: #64748B; }
.kc-addon-left strong { display: block; font-size: 0.9rem; color: #1E293B; }
.kc-addon-left span { font-size: 0.75rem; color: #64748B; }

.kc-counter {
    display: flex;
    align-items: center;
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
}
.kc-counter button {
    border: none;
    background: #F1F5F9;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
}
.kc-counter button:hover { background: #E2E8F0; }
.kc-counter input {
    width: 40px;
    height: 30px;
    border: none;
    text-align: center;
    font-weight: 600;
    color: #1E293B;
    background: #FFF;
}

.kc-input-box {
    position: relative;
    display: flex;
    align-items: center;
}
.kc-input-box i {
    position: absolute;
    left: 14px;
    color: #94A3B8;
}
.kc-input-box input {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px 14px 12px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
    transition: border 0.2s;
}
.kc-input-box input:focus {
    outline: none;
    border-color: #4F46E5;
}

/* Sidebar Summary */
.kabin-config-sidebar {
    position: sticky;
    top: 100px;
}

.kc-summary-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.kc-summary-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px dashed #E2E8F0;
}

.kc-summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.kc-sum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.kc-sum-item span { color: #64748B; }
.kc-sum-item strong { color: #1E293B; text-align: right; max-width: 60%; line-height: 1.3; }

.kc-total-area {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kc-total-label { font-size: 0.9rem; font-weight: 600; color: #475569; }
.kc-total-price { text-align: right; font-size: 1.5rem; font-weight: 800; color: #4F46E5; }
.kc-total-period { font-size: 0.7rem; color: #64748B; font-weight: 500; }

.kc-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.kc-btn.success {
    background: #10B981;
    color: #FFF;
    margin-bottom: 12px;
}
.kc-btn.success:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }

.kc-btn.outline {
    background: transparent;
    border: 1px solid #E2E8F0;
    color: #475569;
    margin-bottom: 20px;
}
.kc-btn.outline:hover { background: #F8FAFC; border-color: #CBD5E1; color: #1E293B; }

.kc-trust-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}
.kc-trust-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #64748B;
}
.kc-trust-list span i {
    color: #10B981;
    font-size: 0.9rem;
}
