:root {

    --egc-primary: #2ecc71; /* Garden Green */

    --egc-primary-dark: #27ae60;

    --egc-text: #2c3e50;

    --egc-bg-light: #f9fbfd;

    --egc-border: #e2e8f0;

    --egc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

}



.egc-wrapper {

    max-width: 600px;

    margin: 0 auto;

    font-family: 'Segoe UI', system-ui, sans-serif;

    background: #fff;

    border-radius: 12px;

    box-shadow: var(--egc-shadow);

    padding: 20px;

    border: 1px solid var(--egc-border);

}



/* --- Inputs --- */

.egc-field-group { margin-bottom: 25px; }

.egc-field-group label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--egc-text); }



/* Range Slider */

.egc-range-wrapper { display: flex; align-items: center; gap: 15px; }

input[type=range] { flex: 1; accent-color: var(--egc-primary); height: 6px; }

.egc-range-value { font-weight: bold; min-width: 60px; text-align: right; color: var(--egc-primary-dark); }



/* Image Cards Grid */

.egc-grid-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

.egc-card-option input { display: none; }

.egc-card-content {

    border: 2px solid var(--egc-border);

    border-radius: 8px;

    padding: 15px;

    text-align: center;

    cursor: pointer;

    transition: all 0.2s;

}

.egc-card-option input:checked + .egc-card-content {

    border-color: var(--egc-primary);

    background-color: #f0fff4;

}

.egc-icon { font-size: 24px; margin-bottom: 8px; }

.egc-card-title { display: block; font-weight: 600; font-size: 14px; }

.egc-card-sub { display: block; font-size: 12px; color: #718096; margin-top: 4px; }



/* Toggle Switch */

.egc-toggle-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }

.egc-switch { position: relative; display: inline-block; width: 50px; height: 26px; }

.egc-switch input { opacity: 0; width: 0; height: 0; }

.egc-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }

.egc-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }

input:checked + .egc-slider { background-color: var(--egc-primary); }

input:checked + .egc-slider:before { transform: translateX(24px); }



/* --- Action Bar --- */

.egc-action-bar {

    background: var(--egc-bg-light);

    padding: 15px;

    border-radius: 8px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;

}

.egc-total-preview .label { display: block; font-size: 12px; color: #718096; }

.egc-total-preview .value { font-weight: 800; font-size: 18px; color: var(--egc-text); }

.blur-effect { filter: blur(4px); opacity: 0.6; } /* The secret sauce for curiosity */



/* --- Buttons --- */

.egc-btn-primary {

    background: var(--egc-primary);

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 6px;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s;

}

.egc-btn-primary:hover { background: var(--egc-primary-dark); }

.egc-btn-secondary { background: #cbd5e0; color: #2d3748; border: none; padding: 12px; border-radius: 6px; cursor: pointer; margin-top: 10px;}

.full-width { width: 100%; }



/* --- Modal (The Gate) --- */

.egc-modal {

    display: none; 

    position: fixed; z-index: 9999; 

    left: 0; top: 0; width: 100%; height: 100%; 

    background-color: rgba(0,0,0,0.5);

    align-items: center; justify-content: center;

}

.egc-modal-content {

    background-color: #fefefe;

    padding: 30px;

    border-radius: 12px;

    width: 90%;

    max-width: 400px;

    position: relative;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

}

.egc-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #aaa; }

.egc-input-group { margin-bottom: 15px; }

.egc-input-group input { width: 100%; padding: 10px; border: 1px solid var(--egc-border); border-radius: 6px; }



/* --- Result Step --- */

.egc-final-price { font-size: 42px; font-weight: 800; color: var(--egc-primary); margin: 20px 0; text-align: center; }

.egc-success-icon { font-size: 50px; text-align: center; display: block; margin-bottom: 10px; }

#egc-step-result h3 { text-align: center; }

.egc-note { text-align: center; color: #718096; font-size: 14px; margin-bottom: 20px;}

/* Fix for Intl Tel Input */
.iti { width: 100%; }
#egc-phone {
    padding-left: 90px !important; /* Make room for the flag */
}
.iti__flag-container {
    z-index: 99999; /* Ensure dropdown is above modal */
}