/* =====================================================
   WP SOLARFLOW - COMPLETE PROFESSIONAL STYLES
   CLEAN FIXED VERSION
===================================================== */

#solarflow-wizard {
    max-width: 720px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.10);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   TITLE
========================= */
.sfp-main-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #111827;
}

/* =========================
   STEP SYSTEM
========================= */
.sfp-step {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
    background: #ffffff;
    border: 1px solid #eef2f7;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.sfp-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   HEADINGS
========================= */
.sfp-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

/* =========================
   RANGE SLIDER
========================= */
input[type="range"] {
    width: 100%;
    accent-color: #2ecc71;
}

/* =========================
   BILL DISPLAY
========================= */
#bill-value {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #2ecc71 !important;
}

/* =========================
   INPUTS & SELECTS
========================= */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    background: #fff;
    transition: 0.2s;
}

input:focus,
select:focus {
    border-color: #2ecc71;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
}

/* =========================
   BUTTONS BASE
========================= */
button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    background: #2ecc71;
    color: #fff;
    transition: 0.2s;
}

button:hover {
    background: #27ae60;
}

/* =========================
   NEXT BUTTON
========================= */
.sfp-next {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

/* =========================
   BACK BUTTON (FIXED FINAL VERSION)
========================= */
.sfp-back {
    display: inline-block !important;
    width: auto !important;

    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;

    margin: 10px auto 0 auto !important;

    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;

    text-align: center !important;
    cursor: pointer;

    opacity: 1 !important;
}

/* hover */
.sfp-back:hover {
    background: #e5e7eb !important;
}

/* =========================
   STEP 2 BUTTON LAYOUT FIX
========================= */
.sfp-step[data-step="2"] {
    display: flex;
    flex-direction: column;
}

/* Calculate button first */
.sfp-step[data-step="2"] .sfp-next {
    order: 1;
}

/* Back button BELOW calculate */
.sfp-step[data-step="2"] .sfp-back {
    order: 2;
    align-self: center;
}

/* =========================
   RESULTS
========================= */
#sfp-result,
#sfp-total-25 {
    font-size: 30px !important;
    font-weight: 900 !important;
    color: #111827;
}

/* =========================
   FOOTER
========================= */
#solarflow-wizard a {
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
}

/* =========================
   MODAL (UNCHANGED)
========================= */
.sfp-modal {
    display: none;
    position: fixed;
    z-index: 999999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}
/* =====================================================
   WP SOLARFLOW - COMPLETE PROFESSIONAL STYLES
   CLEAN FIXED VERSION
===================================================== */

#solarflow-wizard {
    max-width: 720px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.10);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   TITLE
========================= */
.sfp-main-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #111827;
}

/* =========================
   STEP SYSTEM
========================= */
.sfp-step {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
    background: #ffffff;
    border: 1px solid #eef2f7;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.sfp-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   HEADINGS
========================= */
.sfp-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

/* =========================
   RANGE SLIDER
========================= */
input[type="range"] {
    width: 100%;
    accent-color: #2ecc71;
}

/* =========================
   BILL DISPLAY
========================= */
.sfp-step div[style*="text-align:center"] {
    margin-top: 18px !important;
    padding: 10px 0;
}

#bill-value {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #2ecc71 !important;
}

/* =========================
   INPUTS & SELECTS
========================= */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    background: #fff;
}

/* =========================
   BUTTONS
========================= */
button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    background: #2ecc71;
    color: #fff;
}

/* =========================
   BACK BUTTON (CENTERED + SMALL)
========================= */
.sfp-back {
    display: block;
    margin: 10px auto 0 auto;
    width: auto;              /* IMPORTANT: shrink to text */
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;

    background: transparent;
    border: 1px solid #bbb;
    color: #444 !important;

    border-radius: 6px;
    cursor: pointer;
}

.sfp-back:hover {
    background: #f3f4f6;
    color: #000 !important;
}

/* =========================
   STEP 3 RESULTS (FIXED LAYOUT)
   🔥 THIS IS THE IMPORTANT FIX
========================= */

.sfp-step[data-step="3"] {
    display: block;
}

/* container for both result boxes */
.sfp-step[data-step="3"] > div:nth-of-type(1),
.sfp-step[data-step="3"] > div:nth-of-type(2) {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 15px;
}

/* spacing between them */
.sfp-step[data-step="3"] > div:nth-of-type(1) {
    margin-right: 3%;
}

/* labels */
.sfp-step[data-step="3"] > div > div:first-child {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

/* values */
#sfp-result,
#sfp-total-25 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #111827;
}

/* highlight second box */
.sfp-step[data-step="3"] > div:nth-of-type(2) {
    border: 1px solid rgba(46,204,113,0.3);
}

.sfp-step[data-step="3"] > div:nth-of-type(2) #sfp-total-25 {
    color: #2ecc71 !important;
}

/* chart full width */
.sfp-step[data-step="3"] > div:nth-of-type(3) {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* =========================
   FOOTER
========================= */
#solarflow-wizard a {
    color: #ef4444;
}



.sfp-modal-content {
    background: #fff;
    max-width: 550px; /* Limits the width of the popup */
    margin: 10% auto; /* Centers it vertically/horizontally */
    padding: 25px;
    border-radius: 15px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.sfp-modal-content img {
    width: 100%;       /* Ensures image fits inside the box */
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}
/* =========================
   SHADE HELP LINK STYLING
   (controls spacing + readability)
========================= */

.sfp-shade-help {
    margin-top: 14px;   /* space above */
    margin-bottom: 18px; /* space below */
    text-align: center; /* centers the link block */
}

#sfp-show-shade {
    display: inline-block;
    padding: 6px 10px;  /* makes it feel like a clickable UI element */
    border-radius: 6px;
    font-size: 13px;
    color: #2ecc71;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: 0.2s ease;
}

#sfp-show-shade:hover {
    color: #27ae60;
    background: rgba(46, 204, 113, 0.08);
}

/* =========================
   DROPDOWN FIELD TEXT STYLE
   (Step 2 form controls)
========================= */

/* Make dropdown text bigger + red */
#solarflow-wizard select {
    font-size: 16px;
    color: red;
    font-weight: 600;
}

/* Make dropdown options bold */
#solarflow-wizard select option {
    font-weight: 700;
    color: #111;
}

/* Optional: improve spacing and feel */
#solarflow-wizard select {
    padding: 12px 14px;
    border-radius: 10px;
}

/* Optional: hover/focus improvement */
#solarflow-wizard select:focus {
    outline: none;
    border: 1px solid #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
}
/* =========================
   MAIN TITLE STYLING
========================= */
#solarflow-wizard .sfp-main-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #2c3e50 !important; /* A strong navy/gray color */
    text-align: center !important;
    margin: 20px 0 !important;
}
/* =====================================================
   THE ULTIMATE TITLE OVERRIDE (Add to the bottom)
===================================================== */
html body #solarflow-wizard h2.sfp-main-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #111827 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin: 0 auto 30px auto !important;
    padding: 10px 0 !important;
    line-height: 1.2 !important;
}