/**
 * Árkalkulátor - frontend stílusok
 *
 * [ss_kalkulator]
 *
 * FIGYELEM: a .ss-kalk szekciónak NINCS saját háttere/paddingja/glówja —
 * azt a sablon/oldal külön kezeli. Itt csak maga a kalkulátor-kártya
 * (csúszka + csomagok) van formázva.
 */

/* Belső burkoló: fix 780px szélesség (így a szám változásakor nem ugrál),
   mobilon a képernyőhöz igazodik. Nincs padding (a szekció háttere kívülről jön). */
.ss-kalk-inner {
    position: relative;
    width: 780px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: Poppins, sans-serif;
}


/* ==========================================================================
   KÁRTYA
   ========================================================================== */
.ss-kalk-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    padding: 44px 44px 40px;
}

/* Felső sor: alapterület + tartomány tipp. */
.ss-kalk-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.ss-kalk-area-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.ss-kalk-area {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.ss-kalk-area-num {
    font-weight: 600;
    font-size: 52px;
    line-height: 1;
    color: #34d399;
    letter-spacing: -0.02em;
}
.ss-kalk-area-unit {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}
.ss-kalk-range-hint {
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
    line-height: 1.6;
}


/* ==========================================================================
   CSÚSZKA (ss-slider) — a háttéret a JS rajzolja (zöld kitöltés)
   ========================================================================== */
.ss-kalk .ss-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 100px;
    background: #3a3f47; /* JS felülírja a zöld gradienssel */
    outline: none;
    margin: 0;
    cursor: pointer;
}
.ss-kalk .ss-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.ss-kalk .ss-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.ss-kalk .ss-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.ss-kalk .ss-slider:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.4);
}

/* Skála: min / közép / max. */
.ss-kalk-scale {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 12px;
}


/* ==========================================================================
   CSOMAGKÁRTYÁK
   ========================================================================== */
.ss-kalk-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.ss-kalk-package {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px 22px;
}
.ss-kalk-package-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
}
.ss-kalk-package-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.ss-kalk-package-amount {
    font-weight: 600;
    font-size: 26px;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.ss-kalk-package-currency {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
}
.ss-kalk-package-sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12.5px;
    margin-top: 4px;
}

/* Kiemelt csomag (Kulcsrakész) — zöld kiemelés. */
.ss-kalk-package--kiemelt {
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(52, 211, 153, 0.4);
}
.ss-kalk-package--kiemelt .ss-kalk-package-name {
    color: #7be3b5;
    font-weight: 600;
}
.ss-kalk-package--kiemelt .ss-kalk-package-amount {
    color: #34d399;
}
.ss-kalk-package--kiemelt .ss-kalk-package-currency {
    color: rgba(255, 255, 255, 0.6);
}
.ss-kalk-package--kiemelt .ss-kalk-package-sub {
    color: rgba(255, 255, 255, 0.45);
}


/* ==========================================================================
   JEGYZET
   ========================================================================== */
.ss-kalk-disclaimer {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12.5px;
    line-height: 1.55;
}
.ss-kalk-disclaimer-icon {
    flex-shrink: 0;
    color: #34d399;
    display: inline-flex;
    margin-top: 1px;
}
.ss-kalk-disclaimer strong {
    color: #ffffff;
    font-weight: 700;
}


/* ==========================================================================
   ÜRES ÁLLAPOT
   ========================================================================== */
.ss-kalk-ures {
    font-family: Poppins, sans-serif;
    color: #565b63;
}


/* ==========================================================================
   "Részletes ajánlatkérés" gomb + beágyazott űrlap
   A visszahívás űrlap világos háttérre van tervezve, ezért a panelt világos
   kártyának adjuk (a kalkulátor sötét szekcióján így is olvasható marad).
   ========================================================================== */
.ss-kalk-ajanlat {
    margin-top: 26px;
}

.ss-kalk-ajanlat-title {
    margin: 0 0 10px;
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #15181d;
}
.ss-kalk-ajanlat-subtitle {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #565b63;
}
.ss-kalk-ajanlat-subtitle strong {
    color: #0ea372;
    font-weight: 700;
}

.ss-kalk-ajanlat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 18px 24px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 34px -14px rgba(16, 185, 129, 0.7);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ss-kalk-ajanlat-btn:hover {
    background: #0fa971;
    transform: translateY(-2px);
}
.ss-kalk-ajanlat-btn-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}
.ss-kalk-ajanlat-btn.is-open .ss-kalk-ajanlat-btn-arrow {
    transform: rotate(90deg);
}

/* Felfedő panel: világos kártya, a benne lévő űrlap kitölti a szélességet. */
.ss-kalk-ajanlat-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 26px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}
.ss-kalk-ajanlat-panel .visszahivas-wrap {
    max-width: 100%;
}
/* Finom belépés, amikor felfedjük (a [hidden] attribútum levétele után). */
.ss-kalk-ajanlat-panel:not([hidden]) {
    animation: ss-kalk-panel-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ss-kalk-panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   REZPONZÍV
   ========================================================================== */
@media (max-width: 768px) {
    .ss-kalk-card {
        padding: 30px 22px 26px;
    }
    .ss-kalk-area-num {
        font-size: 42px;
    }
    .ss-kalk-ajanlat-panel {
        padding: 26px 20px;
    }
}

@media (max-width: 680px) {
    .ss-kalk-packages {
        grid-template-columns: 1fr;
    }
}
