/* Core styles for Karimnagar Loans website */

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Form Input Text Color Fix */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    color: #1f2937 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    color: #111827 !important;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

/* Common spacing */
.section {
    padding: 4rem 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Clean Slider Styles */
.slider-clean {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.slider-clean::-webkit-slider-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    border: none;
}

.slider-clean::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-clean::-webkit-slider-thumb:hover {
    background: #2563eb;
}

.slider-clean::-moz-range-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    border: none;
}

.slider-clean::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-clean:focus {
    outline: none;
}

.slider-clean:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Enhanced Modern Slider Styles */
/* Custom colored sliders for different input types */
#loanAmount::-webkit-slider-track {
    background: linear-gradient(to right, #dcfce7, #bbf7d0) !important;
}

#interestRate::-webkit-slider-track {
    background: linear-gradient(to right, #fed7aa, #fdba74) !important;
}

#loanTenure::-webkit-slider-track {
    background: linear-gradient(to right, #e9d5ff, #d8b4fe) !important;
}

#loanAmount::-webkit-slider-thumb {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

#interestRate::-webkit-slider-thumb {
    background: linear-gradient(135deg, #ea580c, #dc2626) !important;
}

#loanTenure::-webkit-slider-thumb {
    background: linear-gradient(135deg, #7c3aed, #c026d3) !important;
}

/* Firefox custom colors */
#loanAmount::-moz-range-track {
    background: linear-gradient(to right, #dcfce7, #bbf7d0) !important;
}

#interestRate::-moz-range-track {
    background: linear-gradient(to right, #fed7aa, #fdba74) !important;
}

#loanTenure::-moz-range-track {
    background: linear-gradient(to right, #e9d5ff, #d8b4fe) !important;
}

#loanAmount::-moz-range-thumb {
    background: linear-gradient(135deg, #059669, #047857) !important;
    border: none !important;
}

#interestRate::-moz-range-thumb {
    background: linear-gradient(135deg, #ea580c, #dc2626) !important;
    border: none !important;
}

#loanTenure::-moz-range-thumb {
    background: linear-gradient(135deg, #7c3aed, #c026d3) !important;
    border: none !important;
}

/* Card hover effects */
.calculator-card {
    transition: all 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Input focus animations */
input[type="number"]:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Number formatting */
.currency-large {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
}

/* Smooth transitions for all interactive elements */
button, input, select {
    transition: all 0.2s ease;
}

/* Enhanced focus states */
input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }
    
    .slider-modern::-webkit-slider-thumb {
        height: 20px;
        width: 20px;
    }
    
    .slider-modern::-moz-range-thumb {
        height: 20px;
        width: 20px;
    }
}