/* 
 * Raya Calculators Premium UI 
 * Exclusively loaded on the calculator pages.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Apply font to the main Elementor content area on these pages */
.elementor-widget-container,
.elementor-widget-container p,
.elementor-widget-container span,
.elementor-widget-container label,
.elementor-widget-container input,
.elementor-widget-container button {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* 1. Calculator Containers & Cards */
.elementor-widget-container form,
.calculator-container,
.mf-calculator,
.sip-calculator {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

/* 2. Modern Input Fields */
input[type="text"],
input[type="number"],
input[type="email"],
select {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    transition: all 0.3s ease !important;
    width: 100%;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

/* 3. Range Sliders (Webkit styling for modern look) */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #204971;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 4px 6px rgba(32, 73, 113, 0.4);
    border: 3px solid #ffffff;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 4px;
}
input[type="range"]:focus {
    outline: none;
}

/* 4. Beautiful Buttons (Calculate, Reset) */
button, 
input[type="submit"], 
.elementor-button,
.calc-btn {
    background: #204971 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    border: none !important;
    padding: 14px 28px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

button:hover, 
input[type="submit"]:hover, 
.elementor-button:hover,
.calc-btn:hover {
    background: #f8c300 !important;
    color: #204971 !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 25px -5px rgba(32, 73, 113, 0.4) !important;
}

/* 5. Highlight Results Area (Bhari & Thalak Design) */
/* Targeting common result classes or strongly styled text */
.result-box,
#result div,
.result div,
.results div.result-box,
.results div,
.calc-result,
.final-amount,
.total-value {
    background: #204971 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    margin-top: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 20px -5px rgba(32, 73, 113, 0.3), 0 4px 6px -2px rgba(32, 73, 113, 0.1) !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Add a cool hover effect to the result boxes */
.result-box:hover,
#result div:hover,
.result div:hover,
.results div:hover,
.calc-result:hover,
.final-amount:hover,
.total-value:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(32, 73, 113, 0.4), 0 10px 10px -5px rgba(32, 73, 113, 0.2) !important;
    border-color: rgba(248, 195, 0, 0.6) !important; /* Yellow glow border */
}

/* Make big numbers look premium */
.result-box span,
#result div span,
.result div span,
.calc-result span,
h2.elementor-heading-title,
.total-value span {
    color: #f8c300 !important; /* Brand Yellow for numbers */
    font-weight: 800 !important;
    font-size: 1.1em !important;
}

/* Consistent spacing within the four calculator widgets only. */
.elementor-widget-html .form-group {
    margin-bottom: 20px;
}
.elementor-widget-html label {
    margin-top: 20px;
    margin-bottom: 8px;
}
.elementor-widget-html .form-group label {
    margin-top: 0;
}
.elementor-widget-html .result,
.elementor-widget-html .results,
.elementor-widget-html canvas {
    margin-top: 20px;
}
.elementor-widget-html .result-box,
.elementor-widget-html #result > div {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}
.elementor-widget-html .raya-result-or {
    margin: 20px 0 0;
    text-align: center;
    font-weight: 700;
}
