/* ==========================================================================
   QUOTE CALCULATOR - MODERNNE JA PUHAS VAADE
   ========================================================================== */

/* Peamine ümbris (Sinu lemmik stiil) */
#quote-calculator {
    background-color: #f7f8f9 !important;
    padding: 25px;
    border-radius: 12px;
    max-width: 650px;
    margin: 20px auto;
    color: #333;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

/* --- SAMMUDE LOOGIKA --- */
.qc-step-container { 
    margin-bottom: 25px; 
    transition: all 0.4s ease; 
}

.qc-step-inactive { 
    opacity: 0.4; 
    pointer-events: none; 
    filter: grayscale(100%); 
}

.qc-step-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- PAIGUTUS JA VÄLJAD --- */
.qc-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.qc-field-group {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.qc-field-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #4b5563;
}

/* Sisendväljad */
#quote-calculator input[type="text"],
#quote-calculator input[type="number"],
#quote-calculator input[type="date"],
#quote-calculator input[type="time"],
#quote-calculator input[type="email"],
#quote-calculator select,
#quote-calculator textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.2s;
}

#quote-calculator input:focus,
#quote-calculator select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.qc-section {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eef0f2;
}

/* --- CHECKBOXID (Sinu "Ilusad checkboxid" stiil) --- */
.qc-checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.qc-checkbox-row span, 
.qc-checkbox-row label {
    font-weight: 500;
    font-size: 15px;
    margin: 0;
}

#quote-calculator input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
    transition: all 0.2s;
}

#quote-calculator input[type="checkbox"]:checked {
    background-color: #10b981;
    border-color: #10b981;
}

#quote-calculator input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.qc-sub-panel {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0 20px 0;
    border-left: 4px solid #10b981;
}

/* --- NUPUD (Uuendatud ja puhastatud) --- */

/* Üldine nupu põhi */
.qc-btn-next, .qc-btn-back {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* EDASI NUPP (Heleroheline) */
.qc-btn-next {
    background-color: #10b981;
    color: white;
    margin-top: 15px;
}

.qc-btn-next:hover {
    background-color: #059669;
}

/* Peidame inaktiivse sammu edasi-nupu, et tagasi-nupp saaks selle koha üle võtta */
.qc-step-inactive .qc-btn-next {
    display: none !important;
}

/* TAGASI NUPP (Jõuline parandus) */
.qc-btn-back {
    width: 100% !important;
    padding: 14px 20px !important;
    background-color: #064e3b !important; /* Tõsine tumeroheline */
    color: #ffffff !important; /* Kindlalt valge tekst */
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    
    /* Joondamine keskpunkti */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    text-decoration: none !important; /* Eemaldab sinise lingi joone */
    
    /* Positsioneerimine ja läbipaistmatus */
    margin-top: -25px !important; 
    margin-bottom: 25px !important;
    opacity: 1 !important; /* KEELAME läbipaistvuse, isegi kui samm on pool-hall */
    visibility: visible !important;
    z-index: 999 !important; /* Toome kõige ette */
    
    position: relative !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
    transition: background 0.2s, transform 0.1s !important;
}

.qc-btn-back:hover {
    background-color: #047857 !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* Eemaldame igasugused sinised varjud või teema lingivärvid */
.qc-btn-back:active, .qc-btn-back:focus {
    color: #ffffff !important;
    outline: none !important;
}

/* --- SPINNER (Sinu koodist) --- */
.qc-btn-loading {
    color: transparent !important;
}

.qc-btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: qc-spin 1s ease-in-out infinite;
}

@keyframes qc-spin { to { transform: rotate(360deg); } }

/* --- KAARDI OTSINGU TULEMUSED --- */
#address-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    position: absolute;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}