:root {
    --seg-primary: #2C349C;
    --seg-secondary: #007a33;
    --seg-accent-red: #C8102E;
    --seg-accent-yellow: #FFCD00;
    --seg-white: #ffffff;
    --seg-light-gray: #f4f4f4;
    --seg-medium-gray: #dddddd;
    --seg-dark-gray: #333333;
    --seg-text: #222222;
}
#scc-calculator-wrapper {
    font-family: 'Manrope', sans-serif;
    /* max-width: 800px; */
    margin: 0 auto;
    background: #f9f9f9;
    padding: 20px;
    border-top-left-radius: 30px;
    border-bottom-right-radius:30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* Load fonts if not already loaded */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@700&display=swap');

/* Headings use Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
}

/* Body text uses Manrope */
body, p, span, div, li, a, button, input, textarea, select {
    font-family: "Manrope", sans-serif;
}

/* H2 Styling */
#scc-calculator-wrapper h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 55px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--seg-primary);
}

/* H3 Styling */
#scc-calculator-wrapper h3 {
    font-size: 30px;
    font-weight: 700;
    line-height: 38px;
    margin-bottom: 15px;
    color: var(--seg-secondary);
}

/* H4 Styling */
#scc-calculator-wrapper h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 15px;
}

/* Paragraph Styling */
#scc-calculator-wrapper p {
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
}

.scc-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-top-left-radius: 30px;
    border-bottom-right-radius:30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.scc-grid, .scc-grid-4 {
    display: grid;
    gap: 15px;
}
.scc-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.scc-grid-4 { grid-template-columns: repeat(4, 1fr); }

label { font-weight: 600; display: block; margin-bottom: 5px; font-size: 0.9rem; }
label small { font-weight: normal; color: #777; }
input[type="number"], input[type="text"], input[type="email"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#scc-submit-btn, .button-download {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}
#scc-submit-btn:hover { background: #2980b9; }

/* Dashboard Results */
.scc-header-row { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.scc-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.scc-card {
    background: white;
    padding: 20px;
    border-top-left-radius: 30px;
    border-bottom-right-radius:30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #3498db;
}
.scc-card h4 { margin: 0 0 10px 0; font-size: 14px; color: #7f8c8d; text-transform: uppercase; }
.cost-val { font-size: 24px; font-weight: bold; color: #2c3e50; margin: 0; }
.total-card { border-top: 4px solid #27ae60; background: #f9fff9; }
.main-total { grid-column: span 3; font-size: 1.2em; background: #2c3e50; color: white; border: none; }
.main-total .cost-val { color: #f1c40f; }
.main-total h4 { color: #bdc3c7; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; margin: 0 10px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.currency-label { font-weight: bold; color: #ccc; }
.currency-label.active { color: #333; }

@media (max-width: 600px) {
    .scc-grid-4, .scc-dashboard { grid-template-columns: 1fr; }
}



/* Container */
.scc-wrapper {
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-top-left-radius: 30px;
    border-bottom-right-radius:30px;
}

/* Sections */
.scc-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    padding-top: 30px !important;
    border-bottom: 1px solid #eee;
}

.scc-section h3 {
    border-left: 4px solid var(--seg-primary);
    padding-left: 10px;
    color: var(--seg-secondary);
	margin-bottom:15px !important;
}

/* Layout - FLEXBOX (Fixes 100% width issue) */
.scc-row-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4%; /* Gap between columns */
}

.scc-col-half {
    width: 48%; /* Forces 2 columns */
    box-sizing: border-box;
}

.scc-col-full {
    width: 100%;
    box-sizing: border-box;
}

/* Inputs */
.scc-wrapper label {
    display: block;
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 18px;
    /* color: #444; */
    color: var(--seg-primary);
}
.scc-wrapper input[type="text"],
.scc-wrapper input[type="email"],
.scc-wrapper input[type="number"],
.scc-wrapper select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Crucial for width calculation */
    height: 46px;
}
.scc-wrapper select option {
    background: var(--seg-secondary);
    color: var(--seg-white);
}
.scc-wrapper select option:hover, .scc-wrapper select option:checked  {
    background: var(--seg-primary) !important;
}

/* Submit Button */
.scc-submit button {
    background-color: var(--seg-secondary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}
.scc-submit button:hover {
    background-color: var(--seg-primary);
}
.scc-currency-toggle {
    display: flex;
}
/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; margin: 0 10px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }

/* Results Table */
.scc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.scc-results-table th, .scc-results-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
}
.scc-results-table th:first-child, .scc-results-table td:first-child {
    text-align: left;
}
.scc-results-table th { background-color: #f9f9f9; }
.scc-row-total { background-color: #eef; font-weight: bold; color: var(--seg-primary); }

/* Mobile Responsive */
@media (max-width: 600px) {
    .scc-col-half { width: 100%; margin-bottom: 15px; }
	.scc-wrapper {
	padding:15px;}
}

/* Add to your existing CSS */
.scc-pdf-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.scc-pdf-btn:hover {
    background-color: #555;
    color: #fff;
}



/* Existing CSS... plus: */
.scc-pdf-btn { display: inline-block; padding: 12px 25px; background: var(--seg-secondary); color: #fff; text-decoration: none; border-radius: 50px; font-weight: bold; }
.scc-pdf-btn:hover, .scc-pdf-btn:active, .scc-pdf-btn:target { background: var(--seg-primary); color: #fff; }

/* Toggle Colors */
input:checked + .slider { background-color: var(--seg-secondary); } /* Default Blue */
input:checked + .slider.active-srd { background-color: var(--seg-secondary); } /* Green when SRD active */



/* Hide the original select */
.scc-hidden-select {
    display: none;
}

/* Wrapper for the custom select */
.scc-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

/* The box user clicks on (The "Face" of the dropdown) */
.scc-select-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 14px;
    color: #444;
}

/* The Arrow Icon */
.scc-select-trigger:after {
    position: absolute;
    content: '';
    top: 50%;
    right: 15px;
    width: 0; 
    height: 0; 
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #666; /* Arrow Color */
    transform: translateY(-50%);
    transition: transform 0.3s;
}

/* Arrow rotates when open */
.scc-select-wrapper.open .scc-select-trigger:after {
    transform: translateY(-50%) rotate(180deg);
}

/* The Dropdown List (Hidden by default) */
.scc-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* max-height: 220px;
    overflow-y: auto; */
}

/* Show List when Open */
.scc-select-wrapper.open .scc-select-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

/* Individual Options */
.scc-option {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #444;
}

/* --- THE HOVER COLOR YOU WANTED --- */
.scc-option:hover {
    background-color: var(--seg-secondary); /* Blue Background */
    color: #fff; /* White Text */
}

/* Selected State */
.scc-option.selected {
    background-color: #f0f7fb;
    color: var(--seg-secondary);
    font-weight: bold;
}









/* DISABLED STATE (For Constraints) */
.scc-option.disabled-option {
    color: darkgray;
    background-color: lightgray;
    cursor: not-allowed;
    /* pointer-events: none;  Prevents clicking */
}
.scc-option.disabled-option:hover {
color: darkgray;
}

p.fd-desc {
	font-size: 14px !important;
	    margin-bottom: 10px !important;
}
