/* Quote Form Styles */

.quote-system {
    padding: 3rem 0 5rem;
}

.quote-system .container {
    max-width: 65rem;
}

.quote-system h2 {
    line-height: 1.1;
    color: #fff;
}

.quote-system p.instructions {
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
}

.quote-system p.terms {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.quote-system p.terms a {
    color: var(--cs-teal, #41afbb);
    text-decoration: underline;
}

.quote-system fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Hidden checkboxes/radios */
.quote-system input[type="checkbox"],
.quote-system input[type="radio"] {
    position: absolute;
    visibility: hidden;
}

/* Select buttons */
.quote-system .select-button {
    border-radius: 5px;
    overflow: hidden;
    background: var(--cs-card, #2e2c56);
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    width: 100%;
    box-shadow: 0 0.5rem 0.75rem -0.25rem rgba(39, 48, 54, 0.05);
    transition: background 0.2s, border-color 0.2s;
}

.quote-system label .select-button {
    margin-bottom: 0;
}

/* Service cards (step 1) - fixed height */
.quote-system #question_set_1 label .select-button {
    height: 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
}

/* Radio/budget/timeline buttons */
.quote-system .select-button-text {
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

/* Hover state */
.quote-system label .select-button:hover {
    background: var(--cs-teal, #41afbb);
    border-color: var(--cs-teal, #41afbb);
}

/* Checked state */
.quote-system label > input:checked + .select-button {
    background: var(--cs-teal, #41afbb);
    border-color: var(--cs-teal, #41afbb);
}

/* Service card image */
.quote-system .checkbox-image img {
    max-width: 125px;
    width: 95%;
}

.quote-system .checkbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.quote-system .checkbox-subtitle {
    text-transform: none;
    padding: 0.5rem 0.5rem 0;
    font-size: 0.75rem;
}

/* Form inputs */
.quote-system .form-control {
    height: calc(3.625rem + 2px);
    padding: 0.875rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3125rem;
    border: none;
    background-color: #fff;
    color: #333;
    box-shadow: 0 0.5rem 0.75rem -0.25rem rgba(39, 48, 54, 0.05);
}

.quote-system .form-control:focus {
    border: none;
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(65, 175, 187, 0.25);
}

.quote-system textarea.form-control {
    height: auto;
}

/* Labels */
.quote-system label {
    display: block;
    margin: 0;
    font-weight: 700;
    line-height: 1.8;
    color: #fff;
}

.quote-system label.services {
    padding: 0;
}

/* Optional span */
.quote-system span.optional {
    font-size: 50%;
    vertical-align: middle;
    font-weight: 400;
}

/* Quote system buttons */
.quote-system .btn-quote-system {
    color: #fff;
    background-color: var(--cs-teal, #41afbb);
    padding: 0 2rem;
    font-size: 1.25rem;
    display: inline-block;
    line-height: 50px;
    text-align: center;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.quote-system .btn-quote-system:hover {
    opacity: 0.9;
    color: #fff;
}

.quote-system .btn-quote-back {
    background-color: var(--cs-card, #2e2c56);
}

.quote-system .btn-quote-final-back {
    background-color: var(--cs-card, #2e2c56);
}

.quote-system .btn-quote-final-next {
    margin-top: 1rem;
}

/* Button set spacing */
.quote-system .button-set {
    margin: 1.5rem 0;
}

/* Invalid input styling */
.quote-system .is-invalid {
    border: 2px solid #dc3545 !important;
    background-color: #fff;
}

.quote-system .is-invalid::placeholder {
    color: #dc3545;
}

/* Responsive: Mobile */
@media (max-width: 767.98px) {
    .quote-system {
        padding: 2rem 0 3rem;
    }

    .quote-system p.instructions {
        font-size: 1rem;
    }

    .quote-system #question_set_1 label .select-button {
        height: auto;
        flex-direction: row;
        padding: 0.75rem;
        text-align: left;
    }

    .quote-system .checkbox-image {
        width: 80px;
        flex-shrink: 0;
    }

    .quote-system .checkbox-image img {
        max-width: 70px;
    }

    .quote-system .checkbox-title {
        font-size: 1.25rem;
        margin-top: 0;
    }

    .quote-system .checkbox-subtitle {
        font-size: 0.85rem;
        padding: 0.25rem 0 0;
    }

    .quote-system .select-button-text {
        font-size: 1.1rem;
    }

    .quote-system .btn-quote-system {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
}
