/**
 * EasyCap Loan Calculator Styles
 * Using CSS Framework Variables
 */

.easycap-loan-calculator {
    font-family: inherit;
    width: 100%;
}

.elc-container {
    /* No background or fixed styles - controlled by wrapper */
}

.elc-title {
    font-size: var(--text-m);
    font-weight: 600;
    margin: 0 0 var(--space-s) 0;
    color: var(--text-title);
}

/* Amount Section */
.elc-amount-section {
    margin-bottom: var(--space-s);
}

.elc-amount-display {
    text-align: center;
    margin-bottom: var(--space-2xs);
    padding: 0;
}

.elc-currency {
    font-size: var(--text-l);
    font-weight: 500;
    margin-right: var(--space-4xs);
    color: var(--text-body);
}

.elc-amount-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

/* Slider Styles */
.elc-slider-container {
    position: relative;
    margin-bottom: var(--space-xs);
}

.elc-amount-slider {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.elc-amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--primary-70);
    cursor: pointer;
    box-shadow: var(--shadow-s);
    transition: all 0.3s ease;
}

.elc-amount-slider::-webkit-slider-thumb:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-m);
}

.elc-amount-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--primary-70);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-s);
    transition: all 0.3s ease;
}

.elc-amount-slider::-moz-range-thumb:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-m);
}

.elc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2xs);
    font-size: var(--text-xs);
    color: var(--text-body);
}

/* Quick Amount Buttons */
.elc-quick-amounts {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.elc-quick-amount-btn {
    flex: 1;
    min-width: 70px;
    padding: var(--space-3xs) var(--space-2xs);
    border: 1px solid var(--border-primary);
    background: var(--bg-surface);
    border-radius: var(--radius-s);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elc-quick-amount-btn:hover {
    color: var(--primary);
    border-color: var(--primary-50);
}

/* Frequency Section */
.elc-frequency-section {
    margin-bottom: var(--space-s);
}

.elc-frequency-options {
    display: flex;
    gap: var(--space-2xs);
}

.elc-frequency-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.elc-frequency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.elc-radio-label {
    display: block;
    padding: var(--space-2xs) var(--space-xs);
    text-align: center;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-s);
    font-weight: 500;
    font-size: var(--text-xs);
    color: var(--text-body);
    background: transparent;
    transition: all 0.3s ease;
}

.elc-frequency-option input[type="radio"]:checked + .elc-radio-label {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.elc-frequency-option:hover .elc-radio-label {
    border-color: var(--primary-50);
}

/* Results Section */
.elc-results-section {
    margin-bottom: var(--space-s);
    padding: 0;
}

.elc-results-section .elc-title {
    text-align: center;
    margin-bottom: var(--space-xs);
}

.elc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs) var(--space-s);
}

.elc-result-item {
    text-align: center;
    padding: var(--space-2xs);
}

.elc-result-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-body);
    margin-bottom: var(--space-4xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
    opacity: 0.7;
}

.elc-result-value {
    display: block;
    font-size: var(--text-m);
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.2;
}

.elc-result-suffix {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--text-body);
    opacity: 0.6;
}

/* Action Section */
.elc-action-section {
    text-align: center;
    margin-bottom: var(--space-xs);
}

/* Apply button uses the framework's .btn class - no custom styles needed */
.elc-apply-btn {
    /* Inherits all styles from .btn class */
    text-decoration: none;
}

/* Disclaimer - More subtle styling */
.elc-disclaimer {
    padding: var(--space-s);
    background: var(--dark-5);
    border-radius: var(--radius-s);
    font-size: var(--text-xs);
    line-height: 1.5;
    color: var(--text-body);
    opacity: 0.8;
}

.elc-disclaimer p {
    margin: 0 0 var(--space-2xs) 0;
}

.elc-disclaimer p:last-child {
    margin-bottom: 0;
}

.elc-disclaimer strong {
    color: var(--text-body);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .elc-amount-value {
        font-size: var(--text-2xl);
    }
    
    .elc-quick-amounts {
        flex-direction: column;
        gap: var(--space-4xs);
    }
    
    .elc-quick-amount-btn {
        width: 100%;
        text-align: center;
    }
    
    .elc-frequency-options {
        flex-direction: column;
        gap: var(--space-3xs);
    }
    
    .elc-results-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xs);
    }
    
    .elc-apply-btn {
        width: 100%;
    }
}

/* Admin Styles */
.easycap-lc-shortcode-info {
    margin-top: var(--space-2xl);
    padding: var(--space-m);
    background: var(--dark-5);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-s);
}

.easycap-lc-shortcode-info h2 {
    margin-top: 0;
}

.easycap-lc-shortcode-info code {
    display: inline-block;
    padding: var(--space-xs) var(--space-s);
    background: var(--bg-surface);
    border: 1px solid var(--primary-30);
    border-radius: var(--radius-s);
    font-size: var(--text-m);
    font-family: Monaco, monospace;
}