/* 
 * WCPC Frontend Styles - Premium Design (Restored & Centered Mascot)
 */

:root {
    --wcpc-primary: #15858A;
    --wcpc-secondary: #0076FA;
    --wcpc-bg: #f8fafb;
    --wcpc-white: #ffffff;
    --wcpc-text-dark: #2c3e50;
    --wcpc-text-light: #5a6c7d;
    --wcpc-border: #dbe4eb;
    --wcpc-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --wcpc-radius: 15px;
}

.wcpc-energy-calc-container {
    max-width: 1300px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    color: var(--wcpc-text-dark);
}

.wcpc-step {
    background: var(--wcpc-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* --- STEP 0: CENTERED INTRO --- */
.wcpc-intro-v3 {
    text-align: center;
}

.wcpc-mascot-centered {
    margin-bottom: 30px;
}

.wcpc-mascot-img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.wcpc-hero-title {
    font-size: 42px !important;
    font-weight: 900 !important;
    color: var(--wcpc-text-dark) !important;
    margin-bottom: 15px !important;
}

.wcpc-hero-subtitle {
    font-size: 18px;
    color: var(--wcpc-text-light);
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.wcpc-how-wrapper {
    margin: 50px 0;
}

.wcpc-how-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 35px;
}

.wcpc-how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.wcpc-how-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.wcpc-step-num-circle {
    width: 45px;
    height: 45px;
    background: var(--wcpc-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 118, 250, 0.2);
}

.wcpc-how-step p {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    min-height: 40px; /* Force uniform height for text */
    display: flex;
    align-items: flex-start;
    text-align: center;
}

.wcpc-step-connector {
    flex: 1;
    height: 2px;
    background: #e0e6ed;
    margin: 0 -20px;
    position: relative;
    top: -25px;
    z-index: 1;
}

/* --- BUTTONS (PREMIUM PILLS) --- */
.wcpc-btn-primary, .wcpc-btn-hire-offer, .wcpc-btn-submit, .wcpc-btn-start {
    background: var(--wcpc-secondary) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 40px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 118, 250, 0.3);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none !important;
}

.wcpc-btn-primary:hover, .wcpc-btn-hire-offer:hover, .wcpc-btn-submit:hover, .wcpc-btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 118, 250, 0.4);
    color: #fff !important;
}

.wcpc-actions-centered, .wcpc-intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    width: 100%;
}

.wcpc-back-link {
    width: 100%;
    text-align: center;
}

.wcpc-btn-back-link, .wcpc-btn-back {
    background: none !important;
    border: none !important;
    color: var(--wcpc-text-light) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer;
    padding: 5px 10px !important;
    display: inline-block;
}

/* --- PROFILE CARDS --- */
.wcpc-profile-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.wcpc-profile-card {
    cursor: pointer;
    border: 2px solid var(--wcpc-border);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    background: #fff;
}

.wcpc-profile-card.active {
    border-color: var(--wcpc-secondary);
    background: rgba(0, 118, 250, 0.03);
}

.wcpc-profile-card input { display: none; }

.wcpc-card-content strong { display: block; font-size: 16px; margin-bottom: 4px; }
.wcpc-card-content small { color: var(--wcpc-text-light); }

/* --- FORM SPACING --- */
.wcpc-form-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to prevent overlap */
    gap: 40px 45px; /* Increased vertical and horizontal gap */
    margin-bottom: 35px; /* Increased margin */
}

.wcpc-col, .wcpc-col-3 {
    flex: 1 1 200px; /* Grow, Shrink, Basis */
    min-width: 200px;
}

.wcpc-col-mini {
    flex: 1 1 150px;
    min-width: 150px;
}

.wcpc-col-large {
    flex: 2 1 350px;
    min-width: 300px;
}

.wcpc-margin-lg {
    margin-bottom: 60px !important;
}

@media (max-width: 768px) {
    .wcpc-form-row {
        flex-direction: column;
        gap: 20px;
    }
    .wcpc-col, .wcpc-col-3, .wcpc-col-mini, .wcpc-col-large {
        width: 100%;
        min-width: 0;
    }
}

.wcpc-form-group { margin-bottom: 60px; text-align: left; }
.wcpc-form-group label { display: block; font-weight: 700; margin-bottom: 12px; font-size: 15px; }

.wcpc-input, .wcpc-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--wcpc-border);
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.2s;
}

.wcpc-input:focus, .wcpc-select:focus { border-color: var(--wcpc-secondary); outline: none; }

/* --- MODERN RADIO GROUPS --- */
.wcpc-radio-group-modern {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.wcpc-radio-btn {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.wcpc-radio-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wcpc-radio-btn span {
    display: block;
    padding: 15px 25px;
    background: #fff;
    border: 2px solid var(--wcpc-border);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.2s;
    color: var(--wcpc-text-dark);
}

.wcpc-radio-btn:hover span {
    border-color: var(--wcpc-secondary);
}

.wcpc-radio-btn input:checked + span {
    border-color: var(--wcpc-secondary);
    background: rgba(0, 118, 250, 0.05);
    color: var(--wcpc-secondary);
    box-shadow: 0 4px 12px rgba(0, 118, 250, 0.1);
}

.wcpc-section-divider {
    font-weight: 800;
    font-size: 20px;
    color: var(--wcpc-primary);
    margin: 50px 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
    text-align: left;
}

/* --- RESULTS GRID --- */
.wcpc-results-grid { display: flex; gap: 30px; margin-top: 40px; }
.wcpc-offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.wcpc-offer-card {
    background: #fff;
    border: 1px solid var(--wcpc-border);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wcpc-offer-logo {
    max-height: 70px; /* Larger company logos */
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.wcpc-offer-title a {
    color: var(--wcpc-text-dark);
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 800;
    margin-top: 15px;
    display: block;
}

.wcpc-offer-subtitle-details {
    font-size: 13px;
    color: var(--wcpc-text-light);
    margin-bottom: 15px;
    text-align: center;
}
.wcpc-subtitle-powers, .wcpc-subtitle-prices {
     margin-bottom: 3px;
     line-height: 1.2;
}
.wcpc-subtitle-powers strong, .wcpc-subtitle-prices strong {
    color: var(--wcpc-text-dark);
}

.wcpc-price-val {
    font-size: 32px;
    font-weight: 900;
    color: var(--wcpc-primary);
    margin-bottom: 5px;
}

.wcpc-price-details {
    font-size: 11px; /* Reduced size */
    color: var(--wcpc-text-light);
    line-height: 1.4;
}

.wcpc-price-details strong {
    color: var(--wcpc-text-dark);
    font-weight: 700;
}

.wcpc-pot-row {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 10px; /* Labels even smaller */
}

/* --- PAGINATION --- */
.wcpc-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 10px; }
.wcpc-page-link {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--wcpc-border);
    background: #fff; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.wcpc-page-link.active { background: var(--wcpc-secondary); color: #fff; border-color: var(--wcpc-secondary); }

.wcpc-no-results {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border: 2px dashed var(--wcpc-border);
    border-radius: 20px;
    margin-top: 20px;
}
.wcpc-no-results h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--wcpc-text-dark);
    margin-bottom: 15px;
}
.wcpc-no-results p {
    color: var(--wcpc-text-light);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.wcpc-btn-reset-filters {
    padding: 14px 30px !important;
}

/* --- SIDEBAR FILTERS --- */
.wcpc-sidebar-filters {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--wcpc-border);
    border-radius: 15px;
    padding: 20px;
}

.wcpc-filter-accordion {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.wcpc-filter-head {
    padding: 12px 15px;
    background: #fafbfc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcpc-filter-head h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.wcpc-filter-body {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: none; /* Hidden by default to ensure sync with JS */
}

.wcpc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .wcpc-offers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wcpc-offers-grid { grid-template-columns: 1fr; }
    .wcpc-profile-cards { grid-template-columns: 1fr; }
    .wcpc-results-grid { flex-direction: column; }
    .wcpc-how-steps { flex-direction: column; gap: 30px; }
    .wcpc-step-connector { display: none; }
    .wcpc-step { padding: 30px; }

    /* Floating Filters for Mobile */
    .wcpc-sidebar-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0 20px 20px 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    .wcpc-sidebar-filters.active {
        left: 0;
    }
    .wcpc-radio-group-modern {
        flex-direction: column;
    }
    .wcpc-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        display: none;
    }
    .wcpc-filter-overlay.active {
        display: block;
    }
    .wcpc-sidebar-close {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 15px;
        background: #f1f1f1;
        border: none;
        font-size: 24px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        line-height: 40px;
        text-align: center;
        cursor: pointer;
    }
    .wcpc-mobile-filter-container {
        display: block !important;
        margin-bottom: 20px;
        width: 100%;
    }
    .wcpc-mobile-filter-btn {
        width: 100%;
        background: var(--wcpc-secondary);
        color: #fff;
        border: none;
        padding: 15px;
        border-radius: 12px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0, 118, 250, 0.3);
    }
    .wcpc-mobile-filter-footer {
        display: block !important;
        margin: 20px -20px -20px -20px;
        padding: 20px;
        background: #fafbfc;
        border-top: 1px solid var(--wcpc-border);
        text-align: center;
    }
    .wcpc-mobile-filter-footer .wcpc-btn-primary {
        width: 100%;
    }
}

.wcpc-mobile-filter-footer {
    display: none;
}

body.wcpc-body-lock {
    overflow: hidden !important;
}

.wcpc-sidebar-close, .wcpc-mobile-filter-container {
    display: none;
}
