@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

#helkem-calculator {
    background: #0e1b22;
    padding: 32px 48px;
    border-radius: 16px;
    max-width: 100%;
    margin-top: 48px;
    font-family: 'Inter', sans-serif;
    color: #dbe2e9;
}

#helkem-calculator h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
}

#helkem-calculator .section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    align-items: center;
}

#helkem-calculator .section.input-row > div {
    flex: 1 1 22%;
    min-width: 160px;
}

#helkem-calculator .section.output-row {
    justify-content: space-between;
    gap: 96px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

#helkem-calculator .output-value {
    font-size: 48px;
    font-weight: 900;
    color: #A6CE38;
    line-height: 1.2;
}

#helkem-calculator .output-unit {
    font-size: 18px;
    font-weight: 600;
    margin-left: 8px;
    color: #A6CE38;
}

#helkem-calculator .output-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 14px;
}

#helkem-calculator label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 15px;
    color: #cfd8dc;
}

#helkem-calculator input[type="number"],
#helkem-calculator input[type="range"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #1c2c38;
    border-radius: 10px;
    background: #111a1e;
    color: #ffffff;
    transition: border-color 0.2s ease;
}

#helkem-calculator input[type="range"] {
    margin-top: 6px;
    accent-color: #00B6D5;
}

#helkem-calculator input[type="number"]:focus,
#helkem-calculator input[type="range"]:focus {
    border-color: #A6CE38;
    outline: none;
}

#helkem-calculator #rahagyas-ertek {
    font-weight: 700;
    color: #A6CE38;
    font-size: 26px;
    margin-left: 8px;
}

#helkem-calculator .rahagyas-wrapper {
    flex: 1 1 30%;
}

#helkem-calculator div#eredmeny {
    flex: 1 1 30%;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#helkem-calculator ul,
#helkem-calculator ol {
    margin-left: 0;
    padding-left: 0;
}

#helkem-calculator ul#darab-lista {
    list-style: none;
    margin-top: 4px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#helkem-calculator ul#darab-lista li {
    background: #2a3942;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

/* Profilforma választó */
.shape-picker {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 4px;
}

.shape-option {
    position: relative;
    display: inline-block;
}

.shape-option input[type="radio"] {
    display: none;
}

.shape-icon-wrapper {
    padding: 6px;
    border-radius: 12px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
}

.shape-icon {
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.shape-icon.triangle {
    width: 0;
    height: 0;
    border-left: 0 solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 24px solid #A6CE38;
}

.shape-icon.rectangle {
    width: 24px;
    height: 24px;
    background-color: #A6CE38;
    border-radius: 6px;
}

.shape-option input[type="radio"]:checked + .shape-icon-wrapper {
    border-color: #A6CE38;
}

#helkem-termek-valaszto {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #1c2c38;
    border-radius: 10px;
    background: #111a1e;
    color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

#helkem-termek-valaszto:focus {
    border-color: #A6CE38;
    outline: none;
}


@media (max-width: 768px) {
    #helkem-calculator {
        padding: 24px 20px;
    }

    #helkem-calculator .section.input-row {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    #helkem-calculator .section.output-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    #helkem-calculator .output-value {
        font-size: 36px;
    }

    #helkem-calculator div#eredmeny {
        align-items: flex-start;
    }
}