.lce-container {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.lce-container *,
.lce-container *::before,
.lce-container *::after {
    box-sizing: border-box;
}

/* Step 1: Input Form */
.lce-step-1 {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lce-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 30px;
    line-height: 1.3;
}

.lce-form-group {
    margin-bottom: 20px;
}

.lce-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.lce-container select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.lce-container select:focus {
    outline: none;
    border-color: #e02029;
}

/* Fuel type icon selector */
.lce-fuel-selector {
    display: flex;
    gap: 12px;
}

.lce-fuel-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.lce-fuel-option:hover {
    border-color: #aaa;
}

.lce-fuel-option.lce-selected {
    border-color: #e02029;
    background: #fdf2f2;
}

.lce-fuel-option svg {
    width: 36px;
    height: 36px;
    fill: #888;
    transition: fill 0.2s;
}

.lce-fuel-option.lce-selected svg {
    fill: #e02029;
}

.lce-fuel-option span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    transition: color 0.2s;
}

.lce-fuel-option.lce-selected span {
    color: #e02029;
}

.lce-calculate-btn {
    width: 100%;
    padding: 14px;
    background: #e02029;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.lce-calculate-btn:hover {
    background: #c41a22;
}

/* Step 2: Results */
.lce-step-2 {
    display: none;
}

.lce-results-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lce-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.lce-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lce-result-row:last-child {
    border-bottom: none;
}

.lce-result-label {
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    flex: 1;
}

.lce-result-value {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    margin-left: 16px;
}

/* Savings Card */
.lce-savings-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 36px 30px;
    margin-top: 30px;
    text-align: center;
}

.lce-savings-intro {
    color: #f07074;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.lce-timeframe-label {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.lce-savings-boxes {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.lce-savings-box {
    background: #e02029;
    border-radius: 10px;
    padding: 20px 24px;
    flex: 1;
    max-width: 260px;
}

.lce-box-label {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.lce-box-value {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
}

.lce-box-value sub {
    font-size: 0.55em;
    vertical-align: baseline;
    position: relative;
    top: 0.3em;
}

.lce-box-unit {
    font-size: 0.55em;
    font-weight: 700;
}

/* Timeframe buttons */
.lce-timeframe-section {
    text-align: center;
    margin-top: 30px;
}

.lce-timeframe-heading {
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 14px;
}

.lce-timeframe-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.lce-timeframe-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: #e0e0e0;
    color: #333;
}

.lce-timeframe-btn.lce-active {
    background: #e02029;
    color: #fff;
}

.lce-timeframe-btn:hover {
    opacity: 0.85;
}

/* Step transitions */
.lce-step-1,
.lce-step-2 {
    transition: opacity 0.3s ease;
}

/* Hide-on-step-2 helper for page builder columns */
.hide-on-step-2 {
    transition: opacity 0.3s ease;
}

/* Footer */
.lce-footer-text {
    text-align: center;
    margin-top: 36px;
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
}

.lce-footer-text a {
    color: #e02029;
    text-decoration: none;
}

.lce-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.lce-back-btn:hover {
    border-color: #999;
}

/* Two-column layout on larger screens */
@media (min-width: 860px) {
    .lce-container {
        max-width: 100%;
    }

    .lce-step-2-inner {
        display: flex;
        gap: 32px;
        align-items: stretch;
    }

    .lce-step-2-left {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .lce-step-2-right {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .lce-step-2-left .lce-savings-card {
        margin-top: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .lce-step-2-left .lce-timeframe-section {
        margin-top: 24px;
    }

    .lce-step-2-right .lce-results-card {
        margin-top: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .lce-savings-boxes {
        flex-direction: column;
        align-items: center;
    }

    .lce-savings-box {
        width: 100%;
        max-width: 100%;
    }

    .lce-step-1,
    .lce-results-card {
        padding: 24px;
    }
}
