/* Instant quote page (/quote/) and its confirmation page. */

.quote-section {
    background-color: #f5f7fa;
}

.quote-lead {
    color: #dbe6f2;
    font-size: 1.1rem;
}

/* Three reassurances above the form */
.quote-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dynamite-navy);
    font-weight: 500;
}

.quote-trust i {
    color: var(--dynamite-orange);
    margin-right: 0.4rem;
}

/* White step cards */
.quote-card {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.quote-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dynamite-navy);
    margin-bottom: 1rem;
}

.quote-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--dynamite-navy);
    color: #fff;
    font-size: 1rem;
    flex: none;
}

.quote-hint {
    color: #5c6773;
    font-size: 0.95rem;
}

.quote-optional {
    color: #5c6773;
    font-weight: 400;
}

/* Service level cards: a radio button styled as a card */
.quote-plan {
    position: relative;
    border: 2px solid #dfe5ec;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-plan:last-child {
    margin-bottom: 0;
}

.quote-plan-input {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--dynamite-navy);
}

.quote-plan-label {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 1rem;
    padding: 1rem 1rem 1rem 2.9rem;
    cursor: pointer;
    margin: 0;
}

.quote-plan-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dynamite-navy);
}

.quote-plan-price {
    font-weight: 700;
    color: var(--dynamite-navy);
    text-align: right;
    white-space: nowrap;
}

.quote-plan-tagline {
    grid-column: 1 / -1;
    color: #4a5560;
    font-size: 0.97rem;
}

.quote-plan-details {
    display: none;
    padding: 0 1rem 1rem 2.9rem;
    font-size: 0.95rem;
}

.quote-plan-details-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
}

.quote-plan-details ul {
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
}

.quote-plan-details li {
    margin-bottom: 0.2rem;
}

.quote-plan:has(.quote-plan-input:checked) {
    border-color: var(--dynamite-navy);
    box-shadow: 0 2px 10px rgba(0, 51, 102, 0.12);
}

.quote-plan-input:checked ~ .quote-plan-details {
    display: block;
}

.quote-plan-input:focus-visible ~ .quote-plan-label {
    outline: 3px solid rgba(0, 123, 255, 0.45);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Add-on rows */
.quote-addon {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #edf0f4;
}

.quote-addon[hidden],
.quote-addon-qty[hidden] {
    display: none;
}

.quote-addon .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
}

.quote-addon .form-check-label {
    padding-left: 0.35rem;
    cursor: pointer;
}

.quote-addon-name {
    display: block;
    font-weight: 600;
    color: #222;
}

.quote-addon-price {
    display: block;
    color: var(--dynamite-navy);
    font-weight: 500;
}

.quote-addon-desc {
    display: block;
    color: #5c6773;
    font-size: 0.92rem;
}

.quote-addon-qty {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: none;
    font-size: 0.9rem;
    color: #5c6773;
}

.quote-addon-qty input {
    width: 4.5rem;
}

/* Owner-paid fees, folded away by default */
.quote-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    font-weight: 600;
    color: var(--dynamite-navy);
}

.quote-toggle i {
    transition: transform 0.2s ease;
}

.quote-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.quote-fee-table td {
    padding: 0.6rem 0;
    vertical-align: top;
}

/* The estimate card */
.quote-summary {
    background: #fff;
    border: 2px solid var(--dynamite-navy);
    border-radius: 12px;
    padding: 1.5rem;
    scroll-margin-top: 1rem;
}

@media (min-width: 992px) {
    .quote-summary:not(.quote-summary-static) {
        position: sticky;
        top: 1rem;
    }
}

.quote-summary-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dynamite-orange);
    margin-bottom: 0.25rem;
}

.quote-summary-empty {
    color: #5c6773;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.quote-price {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dynamite-navy);
    margin-bottom: 0.75rem;
}

.quote-price-unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5560;
}

.quote-price-custom {
    font-size: 1.8rem;
}

.quote-custom-note {
    color: #333;
}

.quote-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #edf0f4;
    font-size: 0.97rem;
}

.quote-lines li span:last-child {
    text-align: right;
    white-space: nowrap;
}

.quote-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.75rem 0;
    font-size: 1.05rem;
}

.quote-fineprint {
    color: #5c6773;
    font-size: 0.88rem;
}

.quote-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dynamite-navy);
    margin-bottom: 1rem;
}

.quote-submit {
    background-color: var(--dynamite-orange);
    border-color: var(--dynamite-orange);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
}

.quote-submit:hover,
.quote-submit:focus {
    background-color: #e85a1d;
    border-color: #e85a1d;
    color: #fff;
}

.quote-next {
    padding-left: 1.2rem;
}

.quote-next li {
    margin-bottom: 0.4rem;
}

/* Phone: running price pinned to the bottom of the screen */
.quote-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: var(--dynamite-navy);
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.quote-bar[hidden] {
    display: none;
}

.quote-bar-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c9d7e6;
}

.quote-bar-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.quote-bar .quote-submit {
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .quote-plan-label {
        grid-template-columns: 1fr;
    }

    .quote-plan-price {
        text-align: left;
    }

    .quote-addon {
        flex-direction: column;
        gap: 0.4rem;
    }

    .quote-addon-qty {
        padding-left: 1.9rem;
    }

    .quote-price {
        font-size: 2.2rem;
    }
}

@media print {
    .quote-summary {
        border-width: 1px;
    }
}
