﻿:root {
    --primary-color: #2c7be5;
    --danger-color: #e63757;
    --warning-color: #f6c343;
    --success-color: #00d97e;
    --orange-color: #ff7a00;
    --border-color: #e3ebf6;
    --text-color: #12263f;
    --light-bg: #f9fafd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    
    line-height: 1.6;
    
}

.calculator-container {
    max-width: 800px;
    margin: 70px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5c91;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

    input:focus, select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.25);
    }

    input.invalid, select.invalid {
        border-color: var(--orange-color);
    }

.error-message {
    color: var(--orange-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.btn-calc {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #2a5c91 !important;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-calc:hover {
        opacity: 0.9;
    }

.result-section {
    margin-top: 40px;
    padding: 20px;
    border-radius: 5px;
    display: none;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-description {
    font-size: 16px;
    margin-bottom: 10px;
}

.low {
    background-color: rgba(0, 217, 126, 0.1);
    border-left: 4px solid var(--success-color);
}

.medium {
    background-color: rgba(246, 195, 67, 0.1);
    border-left: 4px solid var(--warning-color);
}

.high {
    background-color: rgba(230, 55, 87, 0.1);
    border-left: 4px solid var(--danger-color);
}

.references {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

    .references h3 {
        font-size: 16px;
        margin-bottom: 10px;
        color: var(--text-color);
    }

    .references ul {
        padding-left: 20px;
    }

    .references li {
        margin-bottom: 8px;
    }

@media (max-width: 768px) {
    .calculator-container {
        padding: 15px;
        width: 90%;
    }

    h1 {
        font-size: 24px;
    }

    .choices__inner,
    input, select {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    /* Smaller dropdown options */
    .choices__list--dropdown .choices__item--selectable {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    /* Smaller dropdown arrow */
    .choices[data-type*="select-one"]:after {
        right: 10px !important;
        border-width: 5px !important;
    }
}

/* Choices.js customization */
.choices__inner {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: white;
    min-height: auto;
}

.choices[data-type*="select-one"] .choices__inner {
    padding-bottom: 12px;
}

.choices__list--single {
    padding: 0;
}

.choices[data-type*="select-one"]:after {
    border-color: var(--primary-color) transparent transparent;
    right: 15px;
}

.choices[data-type*="select-one"].is-open:after {
    border-color: transparent transparent var(--primary-color);
}

.choices__list--dropdown {
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.choices__item--selectable {
    padding: 10px 15px;
}

    .choices__item--selectable.is-highlighted {
        background-color: var(--light-bg);
    }
