/* Quick Quote page */
.qq-page {
    margin: 0;
    background: #f8fafb;
    color: var(--cn-color-body);
}

.qq-page .site-header--solid {
    position: sticky;
    top: 0;
}

.qq-page-main {
    padding-top: 2rem;
}

.qq-page-footer {
    text-align: center;
    padding: 2rem 1rem 5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.qq-link-home {
    color: #2ec4f2;
    font-weight: 600;
    text-decoration: none;
}

.qq-link-home:hover {
    text-decoration: underline;
}

/* Quick Quote wizard */
.quick-quote-section {
    padding: 2rem 1rem 3rem;
    background: #f8fafb;
    color: #1a1a1a;
}

.qq-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Header */
.quick-quote-header {
    margin-bottom: 2rem;
}

.qq-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2ec4f2;
    margin-bottom: 0.5rem;
}

.qq-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: #111;
}

.qq-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #5c6670;
    max-width: 42rem;
    margin: 0 auto;
}

/* Card shell */
.quick-quote-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1.25rem 1.75rem;
    border: 1px solid rgba(46, 196, 242, 0.2);
}

@media (min-width: 768px) {
    .quick-quote-section {
        padding: 2.5rem 1.5rem 3.5rem;
    }

    .quick-quote-card {
        padding: 2rem 2rem 2.25rem;
    }
}

@media (max-width: 991px) {
    .qq-page-main {
        padding-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .qq-page-main {
        padding-top: 1.25rem;
    }
}

.quick-quote-success {
    border-radius: 1rem;
    border: none;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.12);
}

/* Form reset inside wizard (Mobirise overrides) */
.quick-quote-section .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #222;
}

.quick-quote-section .form-control,
.quick-quote-section .form-select,
.quick-quote-section textarea.form-control {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quick-quote-section textarea.form-control {
    min-height: auto;
    resize: vertical;
}

.quick-quote-section .form-control:focus,
.quick-quote-section .form-select:focus {
    border-color: #2ec4f2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(46, 196, 242, 0.2);
}

.quick-quote-section .form-control.is-invalid,
.quick-quote-section .form-select.is-invalid {
    border-color: #dc3545;
}

.quick-quote-section .form-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #6c757d;
}

.quick-quote-section .fw-semibold {
    font-weight: 600 !important;
}

.quick-quote-section .text-brand {
    color: #2ec4f2 !important;
}

.quick-quote-section hr {
    border-color: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

/* Step intro */
.qq-step-intro h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.35rem;
}

.qq-step-intro p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Stepper */
.quick-quote-section .qq-stepper {
    margin-bottom: 1.75rem;
    padding: 1rem 0.75rem 0.5rem;
    background: #f8fafb;
    border-radius: 0.85rem;
    border: 1px solid #e9ecef;
}

.quick-quote-section .stepper-track {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.5rem 0.75rem;
    margin: 0 -0.25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 196, 242, 0.5) transparent;
    -webkit-overflow-scrolling: touch;
}

.quick-quote-section .stepper-track::-webkit-scrollbar {
    height: 5px;
}

.quick-quote-section .stepper-track::-webkit-scrollbar-thumb {
    background: rgba(46, 196, 242, 0.45);
    border-radius: 999px;
}

.quick-quote-section .stepper-track-line {
    position: absolute;
    top: 26px;
    left: 0;
    height: 3px;
    background: #dde1e6;
    z-index: 0;
    width: 0;
    pointer-events: none;
    transition: width 0.35s ease, left 0.35s ease;
}

.quick-quote-section .stepper-progress {
    position: absolute;
    top: 26px;
    left: 0;
    height: 3px;
    background: #2ec4f2;
    z-index: 1;
    width: 0;
    pointer-events: none;
    transition: width 0.35s ease, left 0.35s ease;
}

.quick-quote-section .stepper-step {
    flex: 1 0 auto;
    min-width: 4.25rem;
    max-width: 6.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    cursor: default;
    scroll-snap-align: center;
    padding: 0 0.2rem;
}

.quick-quote-section .step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: #fff;
    border: 2px solid #d1d5db;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.quick-quote-section .stepper-step.active .step-circle {
    border-color: #2ec4f2;
    background: #2ec4f2;
    color: #111;
    box-shadow: 0 0 0 3px rgba(46, 196, 242, 0.22);
}

.quick-quote-section .stepper-step.completed .step-circle {
    border-color: #a4d65e;
    background: #a4d65e;
    color: #111;
}

.quick-quote-section .step-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
}

@media (min-width: 768px) {
    .quick-quote-section .step-label {
        font-size: 0.74rem;
    }

    .quick-quote-section .stepper-step {
        min-width: 5rem;
        max-width: 7rem;
    }
}

.quick-quote-section .stepper-step.active .step-label,
.quick-quote-section .stepper-step.completed .step-label {
    color: #111;
}

.quick-quote-section [data-stepper-service-hint] {
    font-size: 0.82rem;
    color: #6c757d;
    padding: 0 0.25rem;
    line-height: 1.45;
}

/* Panels */
.quick-quote-section .stepper-panel {
    display: none;
    padding-top: 0.25rem;
}

.quick-quote-section .stepper-panel.active {
    display: block;
    animation: qqFadeIn 0.28s ease;
}

.quick-quote-section .stepper-step--hidden,
.quick-quote-section .stepper-panel--hidden {
    display: none !important;
}

@keyframes qqFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step actions */
.qq-step-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef0f2;
}

.qq-step-actions--end {
    justify-content: flex-end;
}

.quick-quote-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.55rem 1.15rem;
    line-height: 1.4;
    white-space: nowrap;
}

.quick-quote-section .btn-outline-secondary {
    color: #495057;
    border: 1px solid #ced4da;
    background: #fff;
}

.quick-quote-section .btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.qq-btn-primary {
    background: #2ec4f2;
    border: none;
    color: #111 !important;
    font-weight: 700;
    padding: 0.6rem 1.35rem;
}

.qq-btn-primary:hover,
.qq-btn-primary:focus {
    color: #111 !important;
    background: #25b0db;
    box-shadow: 0 4px 12px rgba(46, 196, 242, 0.3);
}

.qq-btn-primary.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

/* Service grid */
.quick-quote-section .services-grid {
    margin-left: 0;
    margin-right: 0;
}

.quick-quote-section .services-grid > [class*="col-"] {
    display: flex;
}

.quick-quote-section .service-option {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.65rem;
    background: #fff;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.quick-quote-section .service-option:hover {
    border-color: rgba(46, 196, 242, 0.55);
}

.quick-quote-section .service-option:has(.service-option-input:checked) {
    border-color: #2ec4f2;
    background: rgba(46, 196, 242, 0.06);
    box-shadow: 0 0 0 1px rgba(46, 196, 242, 0.15);
}

.quick-quote-section .service-option-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.quick-quote-section .service-option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0.7rem 0.5rem 0.7rem 0.75rem;
    cursor: pointer;
    user-select: none;
}

.quick-quote-section .service-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    border: 2px solid #ced4da;
    border-radius: 0.3rem;
    background: #fff;
    color: transparent;
    font-size: 0.72rem;
    line-height: 1;
}

.quick-quote-section .service-option-input:checked + .service-option-label .service-option-check {
    border-color: #2ec4f2;
    background: #2ec4f2;
    color: #111;
}

.quick-quote-section .service-option-text {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #222;
}

.quick-quote-section .service-info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-right: 0.35rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6c757d;
    padding: 0;
    cursor: help;
    transition: color 0.2s, background 0.2s;
}

.quick-quote-section .service-info-tip:hover,
.quick-quote-section .service-info-tip:focus {
    color: #2ec4f2;
    background: rgba(46, 196, 242, 0.12);
    outline: none;
}

/* Service step partials from admin */
.quick-quote-section .service-step-intro {
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: rgba(46, 196, 242, 0.06);
    border: 1px solid rgba(46, 196, 242, 0.15);
    margin-bottom: 1.25rem;
}

.quick-quote-section .service-step-intro h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.quick-quote-section .service-step-intro p {
    font-size: 0.88rem;
    margin-bottom: 0;
    color: #6c757d;
}

.quick-quote-section .qq-form-fields .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Review */
.quick-quote-section .qq-review-card {
    background: #f8fafb;
    border-radius: 0.85rem;
    border: 1px solid #e9ecef;
}

.quick-quote-section .qq-review-card .card-body {
    padding: 1.25rem;
}

.quick-quote-section .qq-review-list {
    margin: 0;
}

.quick-quote-section .qq-review-list dt {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.quick-quote-section .qq-review-list dd {
    font-size: 0.92rem;
    margin-bottom: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    word-break: break-word;
}

.quick-quote-section .qq-quote-panel [data-quote-review] {
    margin-top: 0 !important;
    border-radius: 0.85rem;
    border: 1px solid #e9ecef;
    box-shadow: none;
}

.quick-quote-section .qq-quote-panel .card-body {
    padding: 1.25rem;
}

.quick-quote-section .qq-quote-panel .fs-4 {
    font-size: 1.5rem !important;
}

/* Tooltips */
.tooltip.service-tooltip .tooltip-inner {
    max-width: min(320px, 90vw);
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 0.6rem 0.75rem;
}

/* Mobile */
@media (max-width: 575.98px) {
    .quick-quote-section .services-grid > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .qq-step-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .qq-step-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .qq-step-actions--end {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-quote-section .qq-review-list dt,
    .quick-quote-section .qq-review-list dd {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .quick-quote-section .qq-review-list dt {
        padding-bottom: 0;
        font-size: 0.8rem;
    }

    .quick-quote-section .qq-review-list dd {
        padding-top: 0;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid #eef0f2;
    }
}

.qq-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}
