﻿:root {
    --primary: #2c7be5;
    --error: #ff7a00;
    --text: #12263f;
    --border: #d5ddec;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    line-height: 1.6;
    
}

h1 {
    color: #2a5c91;
    text-align: center;
    margin-bottom: 25px;
}

.calculator {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin: 70px auto;
    max-width: 640px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a5c91;
}
/* Input styling */
input {
    width: 100%;
    height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}
/* Select styling to match inputs exactly */
.choices {
    width: 100%;
    margin-bottom: 0;
}

.choices__inner {
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: white;
    box-sizing: border-box;
}

.choices__list--single {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.choices__placeholder {
    opacity: 0.5;
}

.choices[data-type*="select-one"] .choices__inner {
    padding-bottom: 12px;
}

.choices__list--dropdown {
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2px;
}

    .choices__list--dropdown .choices__item {
        padding: 10px 15px;
    }
/* Error states */
.error-field {
    border-color: var(--error) !important;
}

.error-msg {
    color: var(--error);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.btn-calc {
    background: #2a5c91;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    margin-top: 10px;
}

    .btn-calc:hover {
        opacity: 0.9;
    }

.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(44,123,229,0.1);
    border-left: 4px solid var(--primary);
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
}

.sources {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

    .sources h3 {
        color: var(--primary);
        margin-bottom: 15px;
    }

    .sources ul {
        padding-left: 20px;
    }

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .calculator {
        margin-top: 100px;
        padding: 20px;
        width: 90%;
    }
}
