/* Fájl: css/style.css */

:root {
    --neptun-black: #000000;
    --neptun-white: #ffffff;
    --neptun-orange: #ec6602;
    --neptun-dark-blue: #1f2241;
    --neptun-light-grey: #f4f5f7;
    --neptun-grey: #9b9b9b;
    --neptun-shadow: 0 10px 30px rgba(31, 34, 65, 0.08);
}

#neptun-kalkulator-app {
    margin: 40px auto;
    font-family: Roboto, sans-serif;
    color: var(--neptun-dark-blue);
    line-height: 1.6;
}

/* --- INPUT SZEKCIÓ --- */
.input-section {
    background-color: var(--neptun-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--neptun-shadow);
    margin-bottom: 30px;
    border: 1px solid #eef0f2;
}

.input-section h2 {
    color: var(--neptun-dark-blue);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 28px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--neptun-dark-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: var(--neptun-dark-blue);
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--neptun-orange);
    box-shadow: 0 0 0 3px rgba(236, 102, 2, 0.1);
    outline: none;
}

.checkbox-group {
    background-color: var(--neptun-light-grey);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--neptun-orange);
    margin-right: 15px;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-group label {
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
    font-size: 14px;
}

.checkbox-group.gdpr-consent > p {
    margin: 0;
    width: 100%;
}

.checkbox-group.gdpr-consent label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 15px;
    align-items: start;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.checkbox-group.gdpr-consent .wpcf7-form-control-wrap {
    display: contents;
}

.checkbox-group.gdpr-consent .wpcf7-form-control {
    grid-column: 1;
    grid-row: 1;
}

.checkbox-group.gdpr-consent .wpcf7-list-item {
    margin: 0;
}

.checkbox-group.gdpr-consent .wpcf7-list-item-label {
    display: none;
}

.checkbox-group.gdpr-consent input {
    margin: 1px 0 0;
    vertical-align: top;
}

.checkbox-group.gdpr-consent .gdpr-consent-text {
    grid-column: 2;
    grid-row: 1;
}

.checkbox-group.gdpr-consent .gdpr-consent-text a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.checkbox-group.gdpr-consent .wpcf7-not-valid-tip {
    grid-column: 2;
    grid-row: 2;
    margin-top: 5px;
}

#calculate-button, #send-quote-btn {
    background-color: var(--neptun-orange);
    color: var(--neptun-white);
    padding: 18px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(236, 102, 2, 0.3);
}

#send-quote-btn {
    background-color: var(--neptun-dark-blue);
    box-shadow: none;
    margin-top: 10px;
}

#calculate-button:hover { background-color: #d15b02; transform: translateY(-2px); }
#send-quote-btn:hover { background-color: #32365f; }
#send-quote-btn:disabled { background-color: #ccc; cursor: not-allowed; }

/* --- EREDMÉNY SZEKCIÓ --- */
.results-section {
    background-color: var(--neptun-white);
    border-radius: 12px;
    box-shadow: var(--neptun-shadow);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    background-color: var(--neptun-dark-blue);
    color: var(--neptun-white);
    padding: 30px;
    text-align: center;
}

.results-header h2 {
    margin: 0;
    color: var(--neptun-white);
    font-size: 24px;
}

.cost-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
    background-color: var(--neptun-light-grey);
}

.result-box {
    background-color: var(--neptun-white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid transparent;
}

.result-box h3 {
    font-size: 16px;
    color: var(--neptun-grey);
    margin-top: 0;
    text-transform: uppercase;
}

.result-box strong {
    display: block;
    font-size: 32px;
    margin: 10px 0;
    font-weight: 800;
}

.result-box.homok-cost { border-top-color: var(--neptun-grey); }
.result-box.perlit-cost { border-top-color: var(--neptun-dark-blue); }
.result-box.megtakaritas-total { 
    border-top-color: var(--neptun-orange); 
    background-color: #fff5ec;
}
.result-box.megtakaritas-total strong { color: var(--neptun-orange); }

/* --- TÁBLÁZAT --- */
.table-container {
    padding: 30px;
    overflow-x: auto;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.detail-table th {
    text-align: left;
    padding: 15px;
    background-color: var(--neptun-light-grey);
    color: var(--neptun-dark-blue);
    font-weight: 700;
    border-bottom: 2px solid #e0e0e0;
}

.detail-table tr.data-row td {
    padding: 15px 15px 5px 15px;
    border-bottom: none;
    color: var(--neptun-dark-blue);
    font-size: 16px;
}

.detail-table tr.explanation-row td {
    padding: 0 15px 15px 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-style: italic;
    font-size: 13px;
    line-height: 1.4;
}

.detail-table .savings-cell {
    color: var(--neptun-orange);
    font-weight: 700;
}

.roi-box {
    background-color: var(--neptun-dark-blue);
    color: var(--neptun-white);
    padding: 20px;
    text-align: center;
    margin: 0 30px 30px 30px;
    border-radius: 8px;
}

.roi-box p { margin: 5px 0; }
.roi-box strong { color: var(--neptun-orange); }

/* --- LÁBJEGYZET (Calculation Footer) - JAVÍTVA --- */
.calculation-footer {
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    padding: 25px 40px;
    color: #666;
    /* Fontos: line-height növelése az olvashatóságért */
    line-height: 1.6;
    text-align: justify;
}

.calculation-footer h4 {
    color: var(--neptun-dark-blue);
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
}

.calculation-footer strong {
    color: var(--neptun-dark-blue);
}

/* JAVÍTÁS: Közvetlenül a bekezdést célozzuk meg, hogy felülírjuk a téma stílusát */
.calculation-footer p {
    font-size: 12px !important;
    margin: 0;
    color: #666;
}

/* Új kalkuláció link hover effekt */
#reset-calc-link:hover {
    color: #d15b02 !important;
    border-bottom-style: solid !important;
}

/* Mobil nézet */
@media (max-width: 768px) {
    .detail-table th, .detail-table td {
        padding: 10px 5px;
    }
    .calculation-footer {
        padding: 20px;
    }
    .input-section {
    padding: 20px;
}
}