/* Investment Calculator Pro - Main Styles */

* {
    box-sizing: border-box;
}

.investment-calc-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calc-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    overflow: hidden;
}

/* Header Section */
.calc-header {
    text-align: center;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    margin: -40px -40px 35px -40px;
}

.calc-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.calc-header p {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.95;
    font-weight: 300;
}

/* Form Styles */
.calc-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f7fafc;
    color: #2d3748;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
    user-select: none;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #667eea;
    width: 16px;
    height: 16px;
}

.radio-label span {
    transition: color 0.3s ease;
}

.radio-label input[type="radio"]:hover + span {
    color: #667eea;
}

/* Submit Button */
.calc-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.calc-btn:active {
    transform: translateY(0);
}

.calc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-section {
    animation: slideInUp 0.5s ease;
    margin-top: 30px;
}

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

.results-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.result-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.result-value {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
}

.result-value.interest {
    color: #48bb78;
}

.result-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #cbd5e0, transparent);
    margin: 15px 0;
}

.result-item.total {
    padding: 20px 0 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 -25px -25px -25px;
    padding: 20px 25px 25px 25px;
    border-radius: 0 0 15px 15px;
}

.result-item.total .result-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.result-value-total {
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.result-info {
    text-align: center;
    padding: 20px;
    background: #edf2f7;
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-info p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

/* Error Message */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #c53030;
    font-size: 14px;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .investment-calc-container {
        padding: 20px;
    }
    
    .calc-wrapper {
        padding: 25px;
    }
    
    .calc-header {
        padding: 20px;
        margin: -25px -25px 25px -25px;
    }
    
    .calc-header h2 {
        font-size: 24px;
    }
    
    .calc-header p {
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .result-value {
        font-size: 18px;
    }
    
    .result-value-total {
        font-size: 26px;
    }
    
    .results-card {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .calc-wrapper {
        padding: 20px;
    }
    
    .calc-header h2 {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .calc-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .result-item {
        padding: 12px 0;
    }
    
    .result-label {
        font-size: 12px;
    }
    
    .result-value {
        font-size: 16px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
