/* LIGHT THEME WITH NEW COLOR PALETTE */
.cpq-questionnaire-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #EFEFFA;
    border-radius: 8px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    color: #04041C;
}

.cpq-multi-hint {
    font-size: 13px;
    color: #656573;
    margin: -10px 0 10px;
    font-style: italic;
}

.cpq-option input[type="checkbox"]:checked + .option-content {
    border-color: #f49d00;
    background: #f49d00;
    box-shadow: 1px -2px 15px 2px rgb(229 121 79 / 59%);
    color: #04041c;
}

.cpq-option input[type="checkbox"]:checked + .option-content .option-cost {
    color: #04041c;
}

.cpq-header {
    text-align: center;
    margin-bottom: 30px;
}

.cpq-header h2 {
    color: #04041C;
    margin-bottom: 10px;
}

.cpq-header p {
    color: #656573;
    font-size: 16px;
}

.cpq-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cpq-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cpq-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.cpq-option {
    position: relative;
}

.cpq-option input[type="radio"],
.cpq-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.cpq-option .option-content {
    padding: 20px;
    border: 2px solid #DDDDEB;
    border-radius: 6px;
    background: #04041c;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #fff;
}

.cpq-option input[type="radio"]:checked + .option-content {
    border-color: #f49d00;
    background: #f49d00;
    box-shadow: 1px -2px 15px 2px rgb(229 121 79 / 59%);
    color: #04041c;
}

.cpq-option input[type="radio"]:checked + .option-content .option-cost {
    color: #04041c;
}

.cpq-option:hover .option-content {
    border-color: #f49d00;
    background: #f49d00;
    color: #04041c;
}
.cpq-option:hover .option-content span {
    color: #04041c;
}

.cpq-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #DDDDEB;
}

.summary-list {
    margin: 20px 0;
    border: 1px solid #DDDDEB;
    border-radius: 6px;
    overflow: hidden;
}

.summary-item {
    padding: 15px;
    border-bottom: 1px solid #DDDDEB;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    color: #04041C;
}

.summary-item:last-child {
    border-bottom: none;
}

.total-section {
    text-align: right;
    font-size: 18px;
    padding: 15px;
    background: #F0F0FF;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: bold;
    color: #04041C;
}

.contact-form {
    margin-top: 30px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #DDDDEB;
}

.contact-form h4 {
    color: #04041C;
    margin-top: 0;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #656573;
}

.contact-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDDDEB;
    border-radius: 4px;
    font-size: 16px;
    background: #FFFFFF;
    color: #04041C;
}

.button {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    background: #F49D00;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.button:hover {
    background: #ffb226;
}

.button:disabled {
    background: #656573;
    cursor: not-allowed;
    opacity: 0.6;
}

.button-primary {
    background: #514FE5;
}

.button-primary:hover {
    background: #3F3DBD;
}

.cpq-question {
    display: none;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cpq-question.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.cpq-question h3 {
    color: #04041C;
    margin-top: 0;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: #DDDDEB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #514FE5;
    transition: width 0.3s ease;
}

.cpq-multi-hint {
    margin: 0px 0 6px;
    height: auto;
}

.progress-text {
    text-align: right;
    font-size: 14px;
    color: #656573;
    margin-top: 5px;
}

.question-cost-display {
    top: 15px;
    right: 15px;
    text-align: right;
    background: rgba(4, 4, 28, 0.05);
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.running-total {
    font-weight: bold;
    font-size: 16px;
    color: #F49D00;
}

.question-cost {
    font-size: 14px;
    color: #656573;
    margin-top: 3px;
}

.cpq-form input.text,
.cpq-form input.title,
.cpq-form input[type=email],
.cpq-form input[type=password],
.cpq-form input[type=tel],
.cpq-form input[type=text],
.cpq-form select,
.cpq-form textarea {
    background-color: #FFFFFF;
    border: 1px solid #DDDDEB;
    padding: 2px;
    color: #04041C;
    height: 45px !important;
}

.cpq-step.active h3 {
    color: #04041C;
}

.option-cost {
    display: block;
    font-size: 0.9em;
    color: #e7e7e7;
    margin-top: 5px;
}

.cpq-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── TABLET (600–900px) ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cpq-questionnaire-container {
        max-width: 100vw;
        padding: 16px 12px 12px;
        border-radius: 0;
        box-shadow: none;
    }

    .cpq-header {
        margin-bottom: 12px;
        padding: 0;
    }

    .cpq-header h2 { font-size: 1.15em; margin-bottom: 4px; }
    .cpq-header p  { font-size: 0.9em; margin: 0; }

    .progress-container { margin-bottom: 12px; }
    .progress-bar { height: 6px; }
    .progress-text { font-size: 12px; margin-top: 3px; }

    .cpq-step { padding: 0; }

    .cpq-question { padding: 0; margin-bottom: 0; }
    .cpq-question h3 { font-size: 1em; margin-bottom: 8px; }
    .cpq-multi-hint  { font-size: 11px; margin: 0 0 6px; height: auto; }

    /* Options: single-column stacked */
    .cpq-options {
        grid-template-columns: 1fr;
        gap: 6px;
        margin: 8px 0;
    }

    /* Horizontal card: label left, price right */
    .cpq-option .option-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 11px 14px;
        font-size: 0.92em;
        min-height: 44px;
        text-align: left;
    }

    .cpq-option .option-content .option-cost {
        margin-top: 0;
        margin-left: 10px;
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.82em;
    }

    .cpq-option .option-content span.option-text {
        line-height: 1.4;
    }

    .question-cost-display {
        padding: 5px 10px;
        font-size: 0.88em;
        margin-bottom: 8px;
    }
    .running-total { font-size: 14px; }
    .question-cost { font-size: 12px; }

    .cpq-navigation {
        flex-direction: row;
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
    }

    .cpq-navigation .button {
        flex: 1;
        font-size: 0.95em;
        padding: 10px 8px;
    }

    .summary-list { margin: 8px 0; }
    .summary-item { padding: 10px 8px; font-size: 0.92em; }
    .total-section { font-size: 1em; padding: 10px 8px; margin-top: 8px; }

    .contact-form {
        margin-top: 12px;
        padding: 12px 8px;
        border-radius: 6px;
    }
    .contact-form input { padding: 8px; font-size: 0.95em; }
}

/* ─── MOBILE (≤ 500px) ───────────────────────────────────────────────────── */
@media (max-width: 500px) {
    .cpq-questionnaire-container {
        padding: 10px 8px 8px;
    }

    .cpq-multi-hint {
        font-size: 11px;
        margin: 0 0 4px;
        height: auto;
    }

    .cpq-header h2 { font-size: 0.97em; }
    .cpq-header p  { font-size: 0.82em; line-height: 1.5; }

    /* Keep single-column stacked, slightly tighter */
    .cpq-options {
        gap: 5px;
        margin: 6px 0;
    }

    .cpq-option .option-content {
        padding: 10px 12px;
        font-size: 0.88em;
        min-height: 44px;
    }

    .cpq-option .option-content .option-cost {
        font-size: 0.78em;
    }

    .cpq-question h3 { font-size: 0.95em; margin-bottom: 6px; }

    .question-cost-display {
        padding: 4px 8px;
        font-size: 0.82em;
        margin-bottom: 6px;
    }

    .cpq-navigation { gap: 6px; margin-top: 8px; }
    .cpq-navigation .button { font-size: 0.88em; padding: 9px 6px; }

    .progress-container { margin-bottom: 8px; }
}