/* 1. Main Container & Tool Wrapper */
.fc-tool-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(10, 61, 98, 0.06);
    border: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

/* 2. Tool Header Section */
.fc-tool-header {
    text-align: center;
    margin-bottom: 24px;
}

.fc-tool-title {
    color: #0a3d62;
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.fc-tool-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

/* 3. Input Grid & Form Controls */
.fc-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.fc-input-group {
    display: flex;
    flex-direction: column;
}

.fc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fc-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
}

.fc-required {
    color: #ef4444;
}

.fc-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.fc-input:focus {
    outline: none;
    border-color: #0a3d62;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.15);
}

.fc-composite-input {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.2s ease-in-out;
}

.fc-composite-input .fc-input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.fc-select {
    border: none;
    background: #e2e8f0;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    border-left: 1px solid #cbd5e1;
    outline: none;
    min-width: 60px;
    flex-shrink: 0;
}

.fc-composite-input:focus-within {
    border-color: #0a3d62;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.15);
}

/* 4. Touch-Friendly Custom Range Sliders */
.fc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    margin-top: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.fc-slider:hover {
    background: #cbd5e1;
}

/* Chrome, Safari, Edge, Opera Thumb */
.fc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0a3d62;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(10, 61, 98, 0.3);
    transition: transform 0.1s ease, background-color 0.15s ease;
}

.fc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #072c47;
}

/* Firefox Thumb */
.fc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0a3d62;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(10, 61, 98, 0.3);
    transition: transform 0.1s ease, background-color 0.15s ease;
}

.fc-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: #072c47;
}

/* 5. Strategy Cards & Radio Buttons */
.fc-strategy-container {
    margin-top: 24px;
}

.fc-strategy-heading {
    margin-bottom: 12px;
    display: block;
}

.fc-strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.fc-strategy-card input[type="radio"] {
    display: none;
}

.fc-strategy-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.fc-strat-title {
    font-size: 15px;
    color: #0a3d62;
    margin-bottom: 4px;
}

.fc-strat-desc {
    font-size: 12px;
    color: #64748b;
}

.fc-strategy-card input[type="radio"]:checked + .fc-strategy-label {
    background-color: #0a3d62;
    border-color: #0a3d62;
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.25);
}

.fc-strategy-card input[type="radio"]:checked + .fc-strategy-label .fc-strat-title {
    color: #ffffff;
}

.fc-strategy-card input[type="radio"]:checked + .fc-strategy-label .fc-strat-desc {
    color: #e2e8f0;
}

/* 6. Action Button */
.fc-btn-primary {
    width: 100%;
    margin-top: 28px;
    background: #0a3d62;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.2);
}

.fc-btn-primary:hover {
    background: #072c47;
}

.fc-btn-primary:active {
    transform: scale(0.99);
}

/* 7. Results Display Section */
.fc-results-wrapper {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px dashed #e2e8f0;
}

.fc-badge {
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
}

.fc-lt-badge-good { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.fc-lt-badge-bad { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.fc-lt-badge-warn { background-color: #fefce8; color: #a16207; border: 1px solid #fef08a; }

.fc-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.fc-res-card {
    background-color: #0a3d62;
    color: #ffffff;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fc-card-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 700;
}

.fc-card-split {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 10px;
}

.fc-split-item {
    flex: 1;
}

.fc-split-val {
    font-size: 17px;
    font-weight: 800;
    display: block;
}

.fc-split-label {
    font-size: 11px;
    opacity: 0.85;
    display: block;
    margin-bottom: 4px;
}

.fc-split-divider {
    border-left: 1px solid rgba(255,255,255,0.2);
    height: 32px;
}

.fc-card-single {
    padding-top: 4px;
}

.fc-single-val {
    font-size: 22px;
    font-weight: 800;
}

/* 8. Smart Advisory Alert Box */
.fc-advisory-box {
    padding: 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.fc-lt-alert-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fc-lt-adv-good { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; color: #0f172a; }
.fc-lt-adv-bad { background: #fef2f2; border: 1px solid #fecaca; border-left: 5px solid #dc2626; color: #0f172a; }
.fc-lt-adv-warn { background: #fefce8; border: 1px solid #fef08a; border-left: 5px solid #ca8a04; color: #0f172a; }

/* 9. अस्वीकरण Footer */
.fc-disclaimer {
    font-size: 12px;
    color: #64748b;
    text-align: justify;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

/* 10. Responsive Breakpoints */
@media (max-width: 850px) {
    .fc-results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
    .fc-results-grid { grid-template-columns: 1fr; }
    .fc-tool-wrapper { padding: 10px; }
    .fc-tool-title { font-size: 22px; }
}
