/* Professional Real Estate Loan Calculator Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.loan-calculator {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(34, 139, 34, 0.15);
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
}

.calculator-form {
    padding: 30px 25px;
    background: #ffffff;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

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

.input-wrapper {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    background: #fafffe;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #2d5a3d;
    font-weight: 500;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4ade80;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #86efac;
    background: #ffffff;
}

.currency-selector {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="rgb(45,90,61)"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    appearance: none;
    padding-right: 50px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4ade80;
    font-weight: 600;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon {
    padding-left: 45px;
}

.calculator-results {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 30px 25px;
    border-top: 1px solid #e8f5e8;
    position: relative;
}

.results-header {
    text-align: center;
    margin-bottom: 24px;
}

.results-header h3 {
    color: #2d5a3d;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-header p {
    color: #6b7280;
    font-size: 14px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8f5e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.1);
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.total-interest,
.monthly-payment {
    font-weight: 700;
    font-size: 20px;
    color: #2d5a3d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency-symbol {
    font-size: 16px;
    opacity: 0.8;
}

.calculation-indicator {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculation-indicator.active {
    opacity: 1;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive styles */
@media (max-width: 600px) {
    .loan-calculator {
        max-width: 100%;
        border-radius: 16px;
        margin: 0;
    }
    
    .calculator-form {
        padding: 25px 20px;
    }
    
    .calculator-results {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .input-with-icon {
        padding-left: 40px;
    }
    
    .result-item {
        padding: 16px;
    }
    
    .total-interest,
    .monthly-payment {
        font-size: 18px;
    }
}

/* Enhanced focus styles for accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

