.quote-guide-entry {
    display: flex;
    justify-content: center;
    margin: 0 0 1.5rem;
}

.quote-guide-entry [hidden],
.quote-guide[hidden],
.quote-guide-panel[hidden],
.quote-guide-other[hidden],
.quote-guide-cleaning[hidden],
.quote-guide-context[hidden] {
    display: none !important;
}

.quote-guide-launch,
.quote-guide-actions button {
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border: 1px solid #1B91CF;
    border-radius: 999px;
    background: #0876B7;
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.quote-guide-launch:hover,
.quote-guide-actions button:hover {
    background: #075D91;
}

.quote-guide {
    margin: 0 0 2rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--color-border-blue, #446882);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(19, 57, 78, 0.9), rgba(26, 39, 54, 0.94));
    color: #F8FAFC;
    scroll-margin-top: 1.5rem;
}

.quote-guide h3,
.quote-guide h4,
.quote-guide p,
.quote-guide label,
.quote-guide legend {
    color: inherit;
}

.quote-guide h3 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.quote-guide h4 {
    margin: 0 0 1rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.quote-guide h4:focus {
    outline: 3px solid #8ADDFF;
    outline-offset: 4px;
}

.quote-guide-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.quote-guide-heading p {
    margin: 0;
}

.quote-guide-eyebrow {
    color: #90D9FF !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quote-guide-close {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    border: 0;
    background: transparent;
    color: #D5ECFB;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.quote-guide-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.quote-guide-progress li {
    min-width: 0;
    padding: 0.5rem 0.2rem;
    border-bottom: 2px solid #516879;
    color: #C9D9E5;
    font-size: clamp(0.68rem, 1.8vw, 0.9rem);
    text-align: center;
    overflow-wrap: anywhere;
}

.quote-guide-progress li span {
    display: block;
    margin: 0 auto 0.2rem;
    font-weight: 800;
}

.quote-guide-progress li[aria-current="step"] {
    border-color: #59CAFF;
    color: #FFFFFF;
    font-weight: 700;
}

.quote-guide-context,
.quote-guide-status {
    margin: 0 0 0.75rem;
    color: #D6EFFF;
}

.quote-guide-status:empty {
    display: none;
}

.quote-guide-panel {
    min-width: 0;
}

.quote-guide-panel > p,
.quote-guide-hint {
    color: #D2E1EB !important;
}

.quote-guide-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.quote-guide-choices label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #718B9F;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.quote-guide-choices label:has(input:checked) {
    border-color: #74D1FF;
    background: rgba(25, 125, 178, 0.34);
}

.quote-guide-choices input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: #49C6FF;
}

.quote-guide-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.quote-guide-fields label {
    display: block;
    margin: 0.5rem 0 0;
    font-weight: 700;
}

.quote-guide-fields select,
.quote-guide-fields input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0 0 0.5rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #6D879A;
    border-radius: 10px;
    background: #FFFFFF;
    color: #16212B;
    font: inherit;
}

.quote-guide-fields label,
.quote-guide-fields select,
.quote-guide-fields input,
.quote-guide-other,
.quote-guide-cleaning {
    grid-column: 1 / -1;
}

.quote-guide-other label {
    margin-bottom: 0.5rem;
}

.quote-guide-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.quote-guide-actions .quote-guide-secondary {
    border-color: #8FB4CA;
    background: transparent;
    color: #FFFFFF;
}

.quote-guide-actions .quote-guide-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.quote-guide-review {
    padding: 1rem;
    border: 1px solid #718B9F;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.quote-guide-review p {
    margin: 0 0 0.4rem;
    overflow-wrap: anywhere;
}

.quote-guide-review pre {
    margin: 0.5rem 0 0;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.quote-guide-hint.is-error {
    color: #FFD5CD !important;
    font-weight: 700;
}

.quote-guide button:focus-visible,
.quote-guide input:focus-visible,
.quote-guide select:focus-visible,
.quote-guide-launch:focus-visible {
    outline: 3px solid #8ADDFF;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .quote-guide-heading {
        flex-direction: column;
    }

    .quote-guide-choices {
        grid-template-columns: 1fr;
    }

    .quote-guide-actions button {
        flex: 1 1 100%;
    }
}
