/* ===== Configurator accordion (matches mockup) ===== */

.configurator {
    background:  #F2F2F2;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: visible;
    font-family: inherit;
    margin-top: 40px;
    position: sticky;
    top: 20px;
    z-index: 100;
    font-family: "Instrument Sans", sans-serif; 
}

.config-header {
    padding: 20px 20px 16px;
    border-bottom: none;
}

.config-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.config-rating .stars {
    display: flex;
    gap: 2px;
}

.config-rating .star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #00c853;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    line-height: 1;
}

.config-rating .star.half {
    background: linear-gradient(to right, #00c853 50%, #e5e7eb 50%);
}

.config-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111;
    line-height: 1.3;
}

.config-sub {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Steps container */
.config-steps {
    padding: 0 16px 12px;
}

/* Individual step cards */
.config-step {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease;
    display: block; /* always visible as a card */
}

.config-step.collapsed {
    background: #f5f5f5;
    border: 2px solid #C4C4C4 !important;
}

.config-step.active {
    border: 1px solid #0A0F23;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background: #fff;
}

.config-step.completed {
    background: #fff;
}

/* Step header */
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px !important;
    cursor: pointer;
    user-select: none;
    border-bottom: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.config-step.collapsed .step-header {
    padding: 12px 16px;
    color: #999;
}

.step-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.config-step.completed .step-num {
    background: #0A0F23 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.config-step.completed .step-title {
    color: #0A0F23 !important;
   
}

.config-step.completed .step-num span {
    display: none;
}

.config-step.completed .step-num::before {
    content: '✓' !important;
    font-size: 12px;
    
}

.config-step.collapsed .step-num {
    background: transparent;
    color: #aaa;
    border: 1.5px solid #ccc;
    font-weight: 500;
}

.config-step.collapsed .step-num span {
    display: inline;
}

.config-step.collapsed .step-num::before {
    content: none;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.config-step.collapsed .step-title {
    color: #999;
    font-weight: 500;
}

.step-edit {
    margin-left: auto;
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.step-edit:hover {
    background: #f0f0f0;
}

/* Step body – only shown when active */
.step-body {
    display: none;
    padding: 0 16px 16px;
}

.config-step.active .step-body {
    display: block;
}

/* Counters */
.counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.counter-row:last-of-type {
    border-bottom: none;
}

.counter-row label {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: #f5f5f5;
}

.counter input {
    width: 36px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    background: transparent;
    -moz-appearance: textfield;
}

.counter input::-webkit-inner-spin-button,
.counter input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Options (checkboxes) */
.option-row.config-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    min-height: 48px;
}

.option-row.config-option:last-of-type {
    border-bottom: none;
}

.option-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.option-price {
    font-weight: 500;
    font-size: 14px;
    color: #111;
}

/* Next button inside steps */
.btn-next {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: #0A0F23;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-next:hover {
    background: #333;
}

/* ===== Sticky footer (Due today + buttons) ===== */
.config-footer {
    border-top: 1px solid #f2f2f2;
    padding: 16px 20px 20px;
    background: #f1f1f1;
}

.config-pricing {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.due-block .due-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.due-block .due-amount {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

.monthly-block {
    text-align: right;
}

.monthly-block .monthly-label {
    font-size: 12px;
    color: #666;
}

.monthly-block .monthly-amount {
    font-size: 28px;
    font-weight: 700;
    color:  #007228;
;
    line-height: 1.1;
}

.monthly-block .mo-suffix {
    font-size: 16px;
    font-weight: 500;
}

.monthly-block .monthly-note {
    font-size: 11px;
    color:  #6B6B6B;
;
    font-weight: 500;
}

.config-actions {
    display: flex;
    gap: 10px;
}

.config-actions .btn-outline,
.config-actions .btn-primary {
    flex: 1;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    width: auto;
    margin: 0;
}

.config-actions .btn-outline {
    background: #fff;
    border: 1.5px solid #ddd;
    color: #111;
}

.config-actions .btn-outline:hover {
    background: #f8f8f8;
}

.config-actions .btn-primary {
    background: #d1113f; /* or #e91e8c if you prefer the mock pink */
    color: #fff;
}

.config-actions .btn-primary:hover:not(:disabled) {
    background: #b00e35;
}

/* Disabled state for Schedule free install until step 4 */
.config-actions .btn-schedule-install:disabled {
    background: #e497aa !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Hide iframe's own submit button (you already do this) */
#completeButton {
    display: none !important;
}

/* Payment area */
.payment_section_wrap {
    position: relative;
    width: 100%;
    min-height: 150px;
}

#secureFrame {
    display: block;
    width: 100%;
    border: 0;
}



/* Mobile tweaks */
@media (max-width: 767px) {
    .config-footer {
        padding: 14px 16px 18px;
    }

    .due-block .due-amount,
    .monthly-block .monthly-amount {
        font-size: 24px;
    }

    .config-actions {
        flex-direction: column;
    }

    .config-actions .btn-outline,
    .config-actions .btn-primary {
        width: 100%;
    }
}