* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 5px;
}

.subtitle.warning {
    background: rgba(255, 193, 7, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.info-orar {
    font-size: 1rem;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: inline-block;
}

.calculator-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #1e3c72;
}

.form-section h2 {
    font-size: 1.2rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-group input[type="number"]:disabled,
.form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group small,
.hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

optgroup {
    font-weight: bold;
    font-style: italic;
    color: #1e3c72;
}

option {
    font-weight: normal;
    padding: 5px;
}

.btn-calculate,
.btn-reset {
    width: 48%;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-calculate {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    margin-right: 4%;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.4);
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.4);
}

.btn-calculate:active,
.btn-reset:active {
    transform: translateY(0);
}

.result-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 15px;
    border: 3px solid #4caf50;
}

.result-section h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.result-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item.total {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 3px solid #2e7d32;
}

.result-item .label {
    font-weight: 500;
    color: #555;
}

.result-item .value {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.result-item.total .label,
.result-item.total .value {
    font-size: 1.5rem;
    color: #2e7d32;
}

.result-details {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.result-details h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.result-details ul {
    list-style: none;
    padding-left: 0;
}

.result-details li {
    padding: 8px 0;
    color: #555;
    line-height: 1.6;
}

.result-details li:before {
    content: "▸ ";
    color: #1e3c72;
    font-weight: bold;
    margin-right: 8px;
}

.result-details strong {
    color: #1e3c72;
}

.disclaimer {
    margin-top: 25px;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.disclaimer p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.disclaimer strong {
    color: #856404;
    font-weight: 600;
}

.disclaimer ul {
    margin-top: 10px;
    padding-left: 20px;
}

.disclaimer li {
    color: #856404;
    margin-bottom: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .calculator-wrapper {
        padding: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .btn-calculate,
    .btn-reset {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .result-item.total .label,
    .result-item.total .value {
        font-size: 1.2rem;
    }

    .result-details li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .calculator-wrapper {
        padding: 15px;
    }

    .form-section {
        padding: 12px;
    }

    .form-section h2 {
        font-size: 1rem;
    }
}