/* WYCC Calculator Styles - Scoped to .wycc-scope to avoid conflicts */

/* Reset Elementor widget styles */
.elementor-widget-shortcode .wycc-scope,
.elementor-shortcode .wycc-scope,
.wycc-scope {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Neutralize Elementor's default widget padding/margin */
.elementor-widget-shortcode > .elementor-widget-container,
.elementor-shortcode > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

.wycc-scope .wycc-calc {
    font-family: Inter, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1A2755 !important;
    width: 100% !important;
}

.wycc-scope .wycc-calc *,
.wycc-scope .wycc-calc ::before,
.wycc-scope .wycc-calc ::after {
    box-sizing: border-box !important;
}

.wycc-scope .wycc-head {
    text-align: center;
    margin-bottom: 30px;
}

.wycc-scope .wycc-head h1 {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 900 !important;
    font-size: 2.5rem !important;
    color: #1A2755 !important;
    margin: 0 0 10px !important;
    text-transform: uppercase !important;
}

.wycc-scope .wycc-head p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.wycc-scope .wycc-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px !important;
    margin: 0 0 15px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

/* Force display for zone section when shown - override Elementor */
.wycc-scope [id^="w-zone-sec-"][style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
    position: relative !important;
}

.wycc-scope .wycc-section h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    color: #1A2755 !important;
    margin: 0 0 20px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #1A2755;
    padding-bottom: 10px;
}

.wycc-scope .wycc-group {
    margin-bottom: 20px;
}

.wycc-scope .wycc-group label {
    display: block;
    font-weight: 600;
    color: #1A2755;
    margin-bottom: 8px;
    font-size: .95rem;
}

.wycc-scope .wycc-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    color: #1A2755;
    background: #fff;
    transition: all .3s ease;
    font-family: Inter, sans-serif;
}

.wycc-scope .wycc-group select:focus {
    outline: 0;
    border-color: #1A2755;
    box-shadow: 0 0 0 3px rgba(26, 39, 85, .1);
}

.wycc-scope .wycc-radio-group,
.wycc-scope .wycc-check-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wycc-scope .wycc-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all .3s ease;
    background: #fff;
}

.wycc-scope .wycc-option:hover {
    border-color: #1A2755;
    background: #f4f8fb;
}

.wycc-scope .wycc-option.selected {
    border-color: #1A2755;
    background: #eef2ff;
    box-shadow: 0 2px 8px rgba(26, 39, 85, .15);
}

.wycc-scope .wycc-option.disabled {
    opacity: .5;
    cursor: not-allowed;
    background: #f5f5f5;
    pointer-events: none;
}

.wycc-scope .wycc-option input[type=radio],
.wycc-scope .wycc-option input[type=checkbox] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wycc-scope .wycc-option label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.wycc-scope .wycc-price {
    font-weight: 700;
    color: #1A2755;
    font-size: 1.1rem;
}

.wycc-scope .wycc-info {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: .85rem;
    color: #666;
    line-height: 1.5;
}

.wycc-scope .wycc-summary {
    background: linear-gradient(135deg, #1A2755 0%, #2c3e80 100%);
    color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(26, 39, 85, .25);
}

.wycc-scope .wycc-summary h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 900 !important;
    font-size: 1.8rem !important;
    color: #fff !important;
    margin: 0 0 20px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid rgba(255, 255, 255, .3);
    padding-bottom: 15px;
}

.wycc-scope .wycc-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.wycc-scope .wycc-item:last-child {
    border-bottom: 0;
}

.wycc-scope .wycc-item.total {
    font-size: 1.5rem;
    font-weight: 900;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, .4);
}

.wycc-scope .wycc-label {
    font-weight: 500;
}

.wycc-scope .wycc-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.wycc-scope .wycc-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: .9rem;
}

.wycc-scope .wycc-alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.wycc-scope .wycc-alert-warn {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

/* Compare Plans Button */
.wycc-scope .wycc-compare-btn {
    background: linear-gradient(135deg, #1A2755 0%, #2c3e80 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(26, 39, 85, .2);
    font-family: Inter, sans-serif;
    white-space: nowrap;
}

.wycc-scope .wycc-compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 39, 85, .3);
}

.wycc-scope .wycc-compare-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.wycc-scope .wycc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wycc-scope .wycc-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wycc-scope .wycc-modal-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    line-height: 1;
}

.wycc-scope .wycc-modal-close:hover,
.wycc-scope .wycc-modal-close:focus {
    color: #1A2755;
}

.wycc-scope .wycc-modal-body {
    padding: 40px 30px 30px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Modal Comparison Table Styles */
.wycc-scope .wycc-table-scope {
    font-family: 'Inter', sans-serif !important;
    color: #1A2755 !important;
    width: 100% !important;
    overflow-x: auto !important;
    background-color: transparent !important;
}

.wycc-scope .wycc-table-scope table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    min-width: 600px !important;
    background: #fff !important;
    margin: 0 !important;
    border: none !important;
}

/* HEADERS (TH) */
.wycc-scope .wycc-table-scope th {
    background-color: #1A2755 !important;
    color: #ffffff !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    padding: 15px !important;
    text-align: center !important;
    font-size: 1.2rem !important;
    border: 1px solid #0f1836 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
}

.wycc-scope .wycc-table-scope th.feature-col {
    text-align: left !important;
    width: 25% !important;
}

/* STANDARD CELLS (TD) */
.wycc-scope .wycc-table-scope td {
    background-color: #ffffff !important;
    color: #1A2755 !important;
    font-family: 'Inter', sans-serif !important;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}

/* SECTION HEADERS */
.wycc-scope .wycc-table-scope tr.section-header td {
    background-color: #f0f2f5 !important;
    color: #1A2755 !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    padding: 12px 15px !important;
    font-size: 1.05rem !important;
    border: 1px solid #dcdcdc !important;
    text-align: left !important;
}

/* FEATURE NAME COLUMN (Left) */
.wycc-scope .wycc-table-scope td.feature-name {
    text-align: left !important;
    font-weight: 600 !important;
    background-color: #fafafa !important;
    color: #1A2755 !important;
}

/* HIGHLIGHTS */
.wycc-scope .wycc-table-scope .highlight {
    font-weight: 700 !important;
    color: #1A2755 !important;
}

.wycc-scope .wycc-table-scope .grayed {
    color: #b0b0b0 !important;
    font-style: italic !important;
    background-color: #fcfcfc !important;
}

/* LIMIT ROW (Top Row) */
.wycc-scope .wycc-table-scope tr.limit-row td {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    background-color: #eef2ff !important;
    color: #1A2755 !important;
    border-bottom: 2px solid #d0d7de !important;
}

.wycc-scope .wycc-table-scope tr.limit-row td.feature-name {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 900 !important;
}

@media (max-width: 768px) {
    .wycc-scope .wycc-head h1 {
        font-size: 2rem !important;
    }

    .wycc-scope .wycc-section {
        padding: 20px 15px;
    }

    .wycc-scope .wycc-summary {
        padding: 20px;
    }

    .wycc-scope .wycc-item {
        font-size: .9rem;
    }

    .wycc-scope .wycc-item.total {
        font-size: 1.2rem;
    }

    .wycc-scope .wycc-modal-content {
        width: 98%;
        margin: 5% auto;
    }

    .wycc-scope .wycc-modal-body {
        padding: 50px 15px 20px;
    }

    .wycc-scope .wycc-compare-btn {
        width: 100%;
        justify-content: center;
    }

    .wycc-scope .wycc-table-scope th,
    .wycc-scope .wycc-table-scope td {
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
}