/* Calculator Împrumuturi CAR CFR */

.clc-calculator-wrapper {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    margin: 0 auto;
}

.clc-calculator-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Slider Styles */
.clc-slider-group {
    margin-bottom: 1rem;
}

.clc-slider-value-inline {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0.35rem;
}

.clc-slider {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.clc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background: #1e3a8a;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(30, 58, 138, 0.1);
}

.clc-slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    background: #1e3a8a;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.clc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(30, 58, 138, 0.1);
}

.clc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Result Display - Horizontal Cards */
.clc-result-horizontal {
    display: flex !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin: 1rem 0 !important;
    flex-direction: row !important;
}

.clc-result-item {
    flex: 1 !important;
    text-align: center !important;
    background: #f9fafb !important;
    padding: 0.65rem 0.5rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e5e7eb !important;
}

.clc-result-label-small {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.clc-result-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.2;
}

/* Form Styles */
.clc-form-group {
    margin-bottom: 0.75rem;
}

.clc-form-group label {
    display: block;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.clc-form-group input[type="text"],
.clc-form-group input[type="email"],
.clc-form-group input[type="tel"] {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.clc-form-group input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Button Styles */
.clc-submit-btn {
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.clc-submit-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.clc-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.clc-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.clc-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.clc-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Loading State */
.clc-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: clc-spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes clc-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .clc-calculator-wrapper {
        padding: 1.25rem;
    }

    .clc-result-horizontal {
        gap: 0.5rem;
    }

    .clc-result-value {
        font-size: 1.1rem;
    }

    .clc-result-label-small {
        font-size: 0.7rem;
    }
}
