/* EPF & VPF Calculator Stylesheet */
.epf-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.epf-container {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 320px; /* Locked narrow for AdSense space */
    box-sizing: border-box;
}

.epf-container h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #1e3a8a; /* Corporate Provident Blue */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.epf-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.epf-row {
    display: flex;
    gap: 10px;
}

.epf-half {
    flex: 1;
    min-width: 0;
}

.epf-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.epf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.epf-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.epf-half input {
    padding-left: 10px;
    padding-right: 28px;
}

.epf-input-wrapper input {
    padding-left: 30px; 
}

.epf-currency {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #64748b;
}

.epf-symbol {
    position: absolute;
    right: 10px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

.epf-note {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #64748b;
}

.epf-input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: #ffffff;
}

/* VPF Toggle Switch Styles */
.epf-switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.epf-switch-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.epf-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.epf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.epf-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.epf-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.epf-switch input:checked + .epf-slider {
    background-color: #2563eb;
}

.epf-switch input:checked + .epf-slider:before {
    transform: translateX(20px);
}

.epf-btn {
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.3);
}

.epf-btn:hover {
    background: #1e40af;
}

.epf-result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #eff6ff; 
    border: 1px solid #bfdbfe;
    display: none; 
}

.epf-result-box h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.05em;
}

.epf-result-main {
    margin: 10px 0 15px 0;
    font-size: 2.1rem;
    font-weight: 900;
    color: #1e3a8a;
}

.epf-breakdown {
    border-top: 1px solid #93c5fd;
    padding-top: 15px;
    text-align: left;
    font-size: 0.85rem;
    color: #1e40af;
}

.epf-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.epf-breakdown-row:last-child {
    margin-bottom: 0;
}

.epf-highlight {
    color: #2563eb;
    font-weight: 800;
}

.epf-rule-note {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    text-align: center;
    color: #64748b;
    border-top: 1px dashed #93c5fd;
    padding-top: 8px;
}