#qh-container {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* PROGRESS BAR */
#qh-progress {
    margin-bottom: 2rem;
}
.qh-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.qh-progress-bar::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}
.qh-step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    border: 3px solid #e0e0e0;
    white-space: nowrap;
}
.qh-step.active {
    border-color: #1e73be;
    color: #1e73be;
    background: #f0f8ff;
}

/* MOBILE RESPONSIVE FIX - REFINED */
@media (max-width: 600px) {
    .qh-progress-bar {
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
    }
    .qh-progress-bar::-webkit-scrollbar {
        display: none;
    }
    .qh-step {
        padding: 4px 9px;
        font-size: 0.72rem;
        border-width: 2px;
    }
    #qh-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    /* Buttons - smaller, side-by-side where possible */
    .qh-button {
        padding: 0.75rem 1.4rem;
        font-size: 0.98rem;
        min-height: 44px;
    }

    #qh-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    #qh-actions .qh-button {
        flex: 1 1 auto;
        min-width: 140px;
        max-width: 48%;
        margin: 0;
    }

    @media (max-width: 399px) {
        #qh-actions .qh-button {
            min-width: 100%;
            max-width: 100%;
        }
    }
}

/* QUANTITY SUBROW FIX */
.qh-addon-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    background: white;
    border: 1px solid #d0e0f5;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}
.qh-addon-item:hover {
    border-color: #1e73be;
    box-shadow: 0 4px 12px rgba(30,115,190,0.08);
}
.qh-addon-desc {
    flex: 1;
    min-width: 0;
}
.qh-quantity-subrow {
    width: 100%;
    margin-top: 1rem;
    padding-left: 0;
    display: none;
}
.qh-quantity-subrow.visible {
    display: block;
}
.qh-quantity-subrow label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.qh-quantity-subrow input {
    width: 100%;
    max-width: 220px;
    padding: 10px 12px;
    font-size: 1rem;
}

/* QUOTE RESULT */
#qh-result ul {
    list-style: none;
    padding: 0;
    margin: 1.2rem auto;
    max-width: 420px;
    text-align: left;
}
#qh-result li {
    margin: 0.8rem 0;
    font-size: 1.15rem;
}
#qh-result .total {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0c4a8a;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #1e73be;
}

/* REST OF STYLES */
.qh-row {
    margin-bottom: 1.8rem;
}
.qh-row label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #222;
}
.qh-row input,
.qh-row select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
}
.qh-row input:focus,
.qh-row select:focus {
    border-color: #1e73be;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,115,190,0.15);
}
.qh-consent {
    margin: 1.8rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.qh-consent label {
    cursor: pointer;
    user-select: none;
}
.qh-consent a {
    color: #1e73be;
    text-decoration: underline;
}
.qh-button {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s;
}
.qh-button.primary {
    background: #1e73be;
    color: white;
}
.qh-button.secondary {
    background: #f0f4f8;
    color: #1e73be;
}
.qh-button:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}
.qh-button:disabled,
.qh-button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}
.qh-actions {
    margin: 1.5rem 0;
    text-align: center;
}
.qh-actions .qh-button {
    margin: 0 0.8rem;
}
.qh-message {
    padding: 1.2rem;
    border-radius: 6px;
    font-size: 1.1rem;
}
.qh-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.qh-message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
#qh-loading {
    padding: 1.5rem;
}
.qh-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #1e73be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.qh-section {
    margin-bottom: 2.5rem;
    padding: 1.8rem;
    background: #f9fcff;
    border: 1px solid #e0f0ff;
    border-radius: 12px;
}
.qh-section h3 {
    margin: 0 0 1.4rem;
    font-size: 1.35rem;
    color: #1e73be;
    font-weight: 600;
}
.qh-addons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.error-message {
    display: block !important;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #c00;
}