/* frontend.css – RESTORED + TARGETED FIXES ONLY (dropdown should stay visible) */

#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;
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* ==================== 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;
    transition: all 0.2s;
}
.qh-step.active {
    border-color: #1e73be;
    color: #1e73be;
    background: #f0f8ff;
}

/* ==================== FORM ROWS – Unified style ==================== */
.qh-row {
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 20;
}
.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;
    background: white;
}
.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);
}

/* ==================== INTL TEL INPUT – Border match + dropdown visibility ==================== */
.iti {
    width: 100% !important;
    border: 1px solid #d0d0d0 !important;       /* ← exact match to other fields */
    border-radius: 6px !important;
    overflow: visible !important;
    background: white !important;
    position: relative;
    z-index: 99999 !important;
}

#qh-phone {
    border: none !important;
    width: 100% !important;
    padding: 0.9rem 1.1rem 0.9rem 78px !important;
    font-size: 1rem;
    background: transparent !important;
}

/* Flag container – native look, no divider */
.iti__flag-container {
    width: 68px !important;
    background: #f9f9f9 !important;
    border-right: none !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flag size */
.iti__flag {
    width: 22px !important;
    height: 15px !important;
}

/* ==================== DROPDOWN – Reinforce visibility (was working before) ==================== */
.iti__country-list {
    z-index: 99999999 !important;                /* even higher */
    top: 100% !important;
    left: 0 !important;
    max-height: 320px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25) !important;
    border: 1px solid #bbb !important;
    background: white !important;
    position: absolute !important;
    overflow-y: auto !important;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .iti__country-list {
        max-height: 260px !important;
    }
    #qh-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
}

/* ==================== ADD-ONS, QUANTITY & CONSENT ==================== */
.qh-addon-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem;
    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-quantity-subrow {
    width: 100%;
    margin-top: 1rem;
    padding-left: 0;
}
.qh-quantity-subrow label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.qh-consent {
    margin: 2rem 0;
    padding: 1.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* ==================== QUOTE RESULT & BUTTONS ==================== */
#qh-result ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
#qh-result li {
    margin: 0.9rem 0;
    font-size: 1.1rem;
}
#qh-result .total {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0c4a8a;
    padding-top: 1.2rem;
    border-top: 2px solid #1e73be;
}

.qh-button {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    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;
}

.error-message {
    color: #c00;
    font-size: 0.95rem;
    margin-top: 0.4rem;
    display: block;
}
/* BUNDLE 7: Strong, always-visible spinner for final submit */
#qh-loading {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

#qh-loading.show {
    display: block !important;
}

.qh-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #1e73be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#qh-loading p {
    font-size: 1.15rem;
    color: #1e73be;
    font-weight: 600;
    margin: 0;
}