/* Loan Calculator Styles */
.cla-loan-calculator {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

.cla-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Left Column - Input Fields */
.cla-input-column {
    background: white;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cla-calculator-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0 0 32px 0;
}

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

.cla-question {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* Field visibility classes */
.cla-buying-field,
.cla-refinancing-field {
    transition: all 0.3s ease;
}

.cla-refinancing-field {
    display: none;
}

/* Toggle Buttons */
.cla-toggle-buttons {
    display: flex;
    gap: 12px;
}

.cla-toggle-btn {
    flex: 1;
    padding: 20px 16px;
    border: 2px solid #e0e0e0;
    background: white ;
    color: #666;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cla-toggle-btn:hover {
    border-color: #00C189;
    background-color: #00C189;
    color: #ffffff;
}

.cla-toggle-btn.active {
    background-color: #00C189;
    border-color: #00C189;
    color: white;
}

/* Input Fields */
input[type="text"],
input[type="number"]{
    padding: 28px;
    
}

.cla-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px !important;
    font-size: 16px;
    color: #333;
    background: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.cla-input:focus {
    outline: none;
    border-color: #00C189;
}

.cla-currency-input {
    font-weight: 500;
}

/* Number Input Group */
.cla-number-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cla-number-btn {
    width: 40px;
    height: 57px !important;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cla-number-btn:hover {
    border-color: #00C189;
    background-color: #00C189;
    color: #ffffff;
}

.cla-number-input {
    flex: 1;
    text-align: center;
    font-weight: 500;
    background-color: #f8f9fa;
    cursor: default;
}

/* Select Dropdown */
.cla-select {
    width: 100%;
    padding: 12px 16px;
    height: 57px;
    border: 2px solid #e0e0e0;
    border-radius: 12px important;
    font-size: 16px;
    color: #333;
    background: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.cla-rate-select {
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    
}

.cla-custom-rate-link {
    margin-top: 8px;
}

.cla-custom-rate-link a {
    color: #00C189;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.cla-custom-rate-link a:hover {
    text-decoration: underline;
}

/* Right Column - Results */
.cla-results-column {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.cla-results-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px 0;
}

.cla-repayment-display {
    text-align: center;
    margin-bottom: 32px;
}

.cla-amount-large {
    font-size: 48px;
    font-weight: 700;
    color: #00C189;
    margin-bottom: 16px;
}

.cla-frequency-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.cla-dropdown-arrow {
    font-size: 12px;
    color: #666;
}

/* Rate Information */
.cla-rate-info {
    margin-bottom: 32px;
}

.cla-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cla-rate-row:last-child {
    border-bottom: none;
}

.cla-rate-label {
    font-size: 14px;
    color: #666;
}

.cla-rate-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Refinancing Information */
.cla-refinancing-savings {
    background-color: #f0f8ff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #00C189;
}

.cla-savings-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.cla-savings-amount {
    font-size: 20px;
    font-weight: 600;
    color: #00C189;
    margin-bottom: 20px;
    text-align: center;
}

.cla-savings-details {
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0f0ff;
}

.cla-savings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.cla-savings-row:last-child {
    border-bottom: none;
}

.cla-savings-row span:first-child {
    color: #666;
}

.cla-savings-row span:last-child {
    font-weight: 600;
    color: #333;
}

/* Rate Change Calculator */
.cla-rate-change-calculator {
    background-color: #f0f8ff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.cla-rate-change-calculator h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

/* Rate Change Details */
.cla-rate-change-details {
    margin-top: 20px;
}

.cla-rate-change-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8f4fd;
}

.cla-rate-change-row:last-child {
    border-bottom: none;
}

.cla-rate-change-label {
    font-size: 14px;
    color: #666;
}

.cla-rate-change-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cla-increase {
    color: #dc3545 !important;
}

.cla-decrease {
    color: #28a745 !important;
}

/* Action Buttons */
.cla-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cla-book-call-btn {
    padding: 16px 32px;
    border: 2px solid #00C189;
    background: white;
    color: #333;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cla-book-call-btn:hover {
    background-color: #00C189;
    color: white;
    border: 2px solid #00C189;
}

.cla-apply-now-btn {
    padding: 16px 32px;
    border: none;
    background-color: #00C189;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cla-apply-now-btn:hover {
    background-color: #00C189;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cla-calculator-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cla-results-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .cla-loan-calculator {
        margin: 0 16px;
    }
    
    .cla-input-column,
    .cla-results-column {
        padding: 24px;
    }
    
    .cla-toggle-buttons {
        flex-direction: column;
    }
    
    .cla-amount-large {
        font-size: 36px;
    }
    
    .cla-savings-amount {
        font-size: 28px;
    }
    
    .cla-action-buttons {
        gap: 12px;
    }
    
    .cla-book-call-btn,
    .cla-apply-now-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}
