/* EPT Calculator - Premium Theme (Updated Spacing) */
#ept-calc-v3-wrapper {
    --ept-primary: #66cc00;
    --ept-primary-dark: #4d9900;
    --ept-text: #1e293b;
    --ept-text-light: #64748b;
    --ept-bg: #ffffff;
    --ept-surface: #f8fafc;
    --ept-border: #e2e8f0;

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--ept-bg);
    border: 1px solid var(--ept-border);
    border-radius: 24px;
    padding: 32px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    color: var(--ept-text);
    position: relative;
    overflow: hidden;
}

#ept-calc-v3-wrapper * {
    box-sizing: border-box;
}

/* Header */
#ept-calc-v3-wrapper .ept-v3-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--ept-border);
}

#ept-calc-v3-wrapper .ept-v3-icon-box {
    width: 48px;
    height: 48px;
    background: #f0fdf4;
    color: var(--ept-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ept-calc-v3-wrapper h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ept-text);
}

#ept-calc-v3-wrapper .ept-v3-subtitle {
    font-size: 13px;
    color: var(--ept-text-light);
    margin-top: 2px;
}

/* Destinations */
#ept-calc-v3-wrapper .ept-v3-destinations {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

#ept-calc-v3-wrapper .ept-v3-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#ept-calc-v3-wrapper label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ept-text-light);
}

#ept-calc-v3-wrapper input[type="text"],
#ept-calc-v3-wrapper input[type="number"],
#ept-calc-v3-wrapper select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--ept-border);
    border-radius: 12px;
    background: var(--ept-surface);
    transition: all 0.2s;
    color: var(--ept-text);
    font-weight: 500;
}

#ept-calc-v3-wrapper input:focus,
#ept-calc-v3-wrapper select:focus {
    outline: none;
    border-color: var(--ept-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 204, 0, 0.1);
}

#ept-calc-v3-wrapper #ept-v3-swap {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--ept-border);
    background: #fff;
    color: var(--ept-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

#ept-calc-v3-wrapper #ept-v3-swap:hover {
    color: var(--ept-primary);
    border-color: var(--ept-primary);
}

/* Grid Options */
#ept-calc-v3-wrapper .ept-v3-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Stepper */
#ept-calc-v3-wrapper .ept-v3-stepper {
    display: flex;
    align-items: center;
    background: var(--ept-surface);
    border: 1px solid var(--ept-border);
    border-radius: 12px;
    overflow: hidden;
}

#ept-calc-v3-wrapper .ept-v3-stepper button {
    width: 40px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--ept-text-light);
    cursor: pointer;
}

#ept-calc-v3-wrapper .ept-v3-stepper button:hover {
    color: var(--ept-primary);
    background: rgba(0, 0, 0, 0.02);
}

#ept-calc-v3-wrapper .ept-v3-stepper input {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    height: 44px;
}

#ept-calc-v3-wrapper .ept-v3-stepper input:focus {
    box-shadow: none;
}

/* Custom Consumption Box */
#ept-v3-custom-box input {
    margin-top: 4px;
    border-style: dashed;
}

/* BEV Box */
#ept-calc-v3-wrapper .ept-v3-bev-box {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ept-calc-v3-wrapper .ept-v3-bev-inner {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #bbf7d0;
}

#ept-range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Action Button */
#ept-calc-v3-wrapper .ept-v3-action-btn {
    width: 100%;
    padding: 16px;
    background: var(--ept-primary);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(102, 204, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.1s;
    margin-top: 32px;
    /* INCREASED SPACING per user request */
}

#ept-calc-v3-wrapper .ept-v3-action-btn:hover {
    background: var(--ept-primary-dark);
}

#ept-calc-v3-wrapper .ept-v3-action-btn:active {
    transform: scale(0.98);
}

/* Results */
#ept-calc-v3-wrapper .ept-v3-card {
    background: var(--ept-surface);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--ept-border);
    margin-top: 32px;
}

#ept-calc-v3-wrapper .ept-v3-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--ept-border);
}

#ept-calc-v3-wrapper .ept-v3-price-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--ept-primary-dark);
}

#ept-calc-v3-wrapper .ept-v3-grid-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#ept-calc-v3-wrapper .ept-v3-stat-item {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--ept-border);
    text-align: center;
}

/* Share Grid */
#ept-calc-v3-wrapper .ept-v3-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

#ept-calc-v3-wrapper .ept-v3-share-full {
    grid-column: span 2;
}

#ept-calc-v3-wrapper .ept-btn-outline {
    background: white;
    border: 1px solid var(--ept-border);
    color: var(--ept-text);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#ept-calc-v3-wrapper .ept-btn-outline:hover {
    background: #f8fafc;
    border-color: var(--ept-text-light);
}

#ept-calc-v3-wrapper .ept-wa {
    color: #16a34a;
}

#ept-calc-v3-wrapper .ept-tg {
    color: #0284c7;
}

/* Mobile */
@media (max-width: 600px) {
    #ept-calc-v3-wrapper .ept-v3-options-grid {
        grid-template-columns: 1fr;
    }

    #ept-calc-v3-wrapper #ept-v3-swap {
        right: 12px;
        top: calc(50% + 14px);
    }
}