/* Loan Interest Calculator Specific Styles */

/* Loan Purpose Grid */
.loan-purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.loan-purpose-btn {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: #FAFAFA;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loan-purpose-btn:hover {
    border-color: #319C80;
    color: #319C80;
}

.loan-purpose-btn.active {
    background: #319C80;
    border-color: #319C80;
    color: #fff;
}

/* Loan Term Input with Toggle */
.loan-term-input {
    display: flex;
    gap: 12px;
}

.loan-term-input .calc-input {
    flex: 1;
}

.loan-term-toggle {
    flex-shrink: 0;
    width: auto;
    min-width: 120px;
}

.loan-term-toggle .calc-toggle-option {
    padding: 12px 20px;
    white-space: nowrap;
}

/* Repayment Options */
.repayment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repayment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.repayment-option:hover {
    border-color: #319C80;
}

.repayment-option.active {
    border-color: #319C80;
    background: rgba(49, 156, 128, 0.05);
}

.repayment-option .radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #D0D0D0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.repayment-option.active .radio-circle {
    border-color: #319C80;
}

.repayment-option .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #319C80;
    border-radius: 50%;
    display: none;
}

.repayment-option.active .radio-circle::after {
    display: block;
}

.repayment-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Result highlight margin */
.calc-result-highlight {
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .loan-term-input {
        flex-direction: column;
    }

    .loan-term-toggle {
        width: 100%;
        display: flex;
    }

    .loan-term-toggle .calc-toggle-option {
        flex: 1;
    }

    .loan-purpose-grid {
        grid-template-columns: 1fr;
    }
}
