/* Loan Calculator Plugin Styles */

#loan-calculator-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#loanCalculatorForm {
    width: 100%;
}

.slider-container {
    margin: 20px 0;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
    text-align: left;
}

.flexbox-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 10px;
    width: 100%;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.contact-section {
    margin: 30px 0;
    padding: 24px;
    border-radius: 8px;
    background-color: #EFF6FF;
}

.contact-section h3 {
    margin-top: 0;
    color: #2A4FB5;
    border-bottom: 2px solid #2A4FB5;
    padding-bottom: 10px;
}

.form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

input[type="text"],
input[type="tel"], 
input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 5px rgba(42, 79, 181, 0.3);
}

#submitBtn {
    background: #1e3a8a;
    color: white;
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    width: 100%;
}

#submitBtn:hover {
    background: #294FB5;
}

#submitBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Range Slider Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    margin-right: 15px;
    width: 100%;
    height: 7px;
    background: rgb(217 217 217 / 60%);
    border-radius: 5px;
    background-image: linear-gradient(#1e3a8a, #1e3a8a);
    background-size: 30% 100%;
    background-repeat: no-repeat;
}

[dir="rtl"] input[type="range"] {
    background: #ff4500;
    background-image: linear-gradient(#fff, #fff);
    background-size: 30% 100%;
    background-repeat: no-repeat;
}

/* Range Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #2A4FB5;
    cursor: ew-resize;
    box-shadow: 0 0 2px 0 #555;
    transition: background .3s ease-in-out;
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #2A4FB5;
    cursor: ew-resize;
    box-shadow: 0 0 2px 0 #555;
    transition: background .3s ease-in-out;
    border: none;
}

input[type="range"]::-ms-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #2A4FB5;
    cursor: ew-resize;
    box-shadow: 0 0 2px 0 #555;
    transition: background .3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #2A4FB5;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #2A4FB5;
}

input[type="range"]::-ms-thumb:hover {
    background: #2A4FB5;
}

/* Range Slider Track */
input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

input[type=range]::-moz-range-track {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

input[type="range"]::-ms-track {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Success/Error Messages */
.loan-calculator-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
}

.loan-calculator-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.loan-calculator-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flexbox-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        width: 100%;
    }
    
    .slider-container {
        padding: 10px;
    }
    
    .contact-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .range-labels {
        font-size: 0.8em;
    }
    
    .slider-container label {
        font-size: 14px;
    }
    
    #submitBtn {
        width: 100%;
        padding: 15px;
    }
}