/**
 * Finance Calculator Styles - 2 Column Layout
 */

.amplo-calculator-wrapper {
    width: 100%;
    margin: 2rem 0;
}

.amplo-calculator-container-two-col {
    background: transparent;
    padding: 0;
}

.amplo-calculator-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Two Column Grid */
.amplo-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Left Column - Form */
.amplo-calculator-form-col {
    background: #3A3A3A;
    border-radius: 8px;
    padding: 1.75rem;
}

.amplo-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Form Groups */
.amplo-form-group {
    display: flex;
    flex-direction: column;
}

.amplo-form-label {
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.amplo-form-label .required {
    color: #FF751F;
    margin-left: 2px;
}

/* Slider Display */
.amplo-slider-display {
    background: #FF751F;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.65rem;
    text-align: center;
}

.amplo-slider-value {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Range Sliders */
.amplo-range-slider {
    width: 100%;
    height: 6px;
    background: #FFFFFF;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.amplo-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FF751F;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
}

.amplo-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FF751F;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
}

/* Term Buttons */
.amplo-term-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.amplo-term-buttons input[type="radio"] {
    display: none;
}

.amplo-term-btn {
    background: transparent;
    border: 2px solid #666;
    color: #FFFFFF;
    padding: 0.65rem;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.amplo-term-btn:hover {
    border-color: #FF751F;
}

.amplo-term-buttons input[type="radio"]:checked + .amplo-term-btn {
    border-color: #FF751F;
    background: transparent;
    color: #FFFFFF;
}

/* Select Dropdown */
.amplo-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #2A2A2A;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amplo-form-select:focus {
    outline: none;
    border-color: #FF751F;
}

/* Calculate Button */
.amplo-form-actions {
    margin-top: 0.5rem;
}

.amplo-btn-calculate {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FF751F;
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amplo-btn-calculate:hover {
    background: #e66619;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 117, 31, 0.4);
}

.amplo-btn-calculate i {
    font-size: 1rem;
}

/* Loading/Error States */
.amplo-calculator-loading {
    text-align: center;
    color: #FFFFFF;
    padding: 0.65rem;
    margin-top: 0.65rem;
    font-size: 0.9rem;
}

.amplo-calculator-loading i {
    margin-right: 0.4rem;
}

.amplo-calculator-error {
    background: #dc2626;
    color: #FFFFFF;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Right Column - Results */
.amplo-calculator-results-col {
    background: #3A3A3A;
    border-radius: 8px;
    padding: 1.75rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.amplo-calculator-results-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Results Placeholder */
.amplo-results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
    gap: 0.75rem;
}

.amplo-results-placeholder i {
    font-size: 2.5rem;
    color: #666;
}

.amplo-results-placeholder p {
    font-size: 0.9rem;
}

/* Monthly Payment Section */
.amplo-results-payment {
    background: transparent;
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #555;
    margin-bottom: 1.25rem;
}

.amplo-payment-label {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.amplo-payment-amount {
    color: #FFFFFF;
    font-size: 2.75rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.amplo-payment-apr {
    color: #FFFFFF;
    font-size: 0.95rem;
}

/* Apply Button */
.amplo-btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FF751F;
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1.25rem;
}

.amplo-btn-apply:hover {
    background: #e66619;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 117, 31, 0.4);
    color: #FFFFFF;
}

/* Breakdown Section */
.amplo-breakdown {
    flex: 1;
}

.amplo-breakdown-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.amplo-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #555;
}

.amplo-breakdown-row.amplo-breakdown-total {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 2px solid #FF751F;
    border-bottom: none;
}

.amplo-breakdown-label {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.amplo-breakdown-value {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
}

.amplo-breakdown-total .amplo-breakdown-value {
    color: #FFFFFF;
    font-size: 1.35rem;
}

/* Results Disclaimer */
.amplo-results-disclaimer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #555;
    color: #999;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .amplo-calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .amplo-calculator-results-col {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .amplo-calculator-form-col,
    .amplo-calculator-results-col {
        padding: 1.5rem;
    }

    .amplo-calculator-title {
        font-size: 1.5rem;
    }

    .amplo-term-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .amplo-payment-amount {
        font-size: 2.5rem;
    }

    .amplo-breakdown-label,
    .amplo-breakdown-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .amplo-calculator-grid {
        gap: 1.5rem;
    }

    .amplo-slider-value {
        font-size: 1.25rem;
    }

    .amplo-term-btn {
        font-size: 1.25rem;
        padding: 0.75rem;
    }

    .amplo-payment-amount {
        font-size: 2rem;
    }

    .amplo-btn-calculate {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}
