/* SMOOTH TRANSITIONS + PERFECT PROGRESS BAR + NO BOUNCING */
* { box-sizing: border-box; margin: 0; padding: 0; }

.tea-wizard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px 80px;
    background: #e8ebe3;
    min-height: 80vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === PERFECT PROGRESS BAR === */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 56px;
    position: relative;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    flex: 1;
    max-width: 160px;
}
/* Connecting LINE between steps */
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 3px;
    background: #ddd;
    z-index: 1;
}
.progress-step.completed:not(:last-child)::after {
    background: #39AC0C;
}
/* Step CIRCLE */
.progress-step span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    z-index: 10;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.progress-step.active span {
    background: #39AC0C;
    color: #fff;
    box-shadow: 0 4px 12px rgba(57,172,12,0.3);
}
.progress-step.completed span {
    background: #39AC0C;
    color: #fff;
}
.progress-step label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-align: center;
}
.progress-step.active label {
    color: #39AC0C;
    font-weight: 700;
}

/* === SMOOTH STEP TRANSITIONS (no translateY - prevents Elementor bounce) === */
.wiz-step {
    display: none;
    opacity: 0;
}
.wiz-step.active {
    display: block;
    animation: wizFadeIn 0.4s ease-out forwards;
    transform: translateZ(0); /* GPU layer isolation from Elementor */
    will-change: opacity;
}
@keyframes wizFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wiz-step > h1 {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    color: #161614;
    margin-bottom: 10px;
    line-height: 1.15;
}
.step-subtitle {
    font-size: 16px;
    text-align: center;
    color: #161614;
    opacity: 0.7;
    margin-bottom: 40px;
}

/* === METHOD CARDS (NO HOVER BOUNCE) === */
.method-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.method-item {
    cursor: pointer;
    text-align: center;
}
.method-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid transparent;
    display: block;
    transition: border-color 0.3s ease;
}
.method-item.selected img {
    border-color: #39AC0C;
}
.method-label {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #161614;
}

/* === CAN OPTIONS (NO BOUNCE) === */
.cans-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.can-option {
    background: #FFFFFF;
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.can-option.selected {
    border-color: #39AC0C;
    background: #f4fbf0;
}
.can-option img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 16px;
}
.can-option h3 {
    font-size: 24px;
    font-weight: 800;
    color: #161614;
    margin-bottom: 4px;
}
.can-option p {
    font-size: 15px;
    color: #161614;
    opacity: 0.7;
}

/* === CONFIG HEADER === */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.progress-count {
    font-size: 15px;
    color: #161614;
    background: #FFFFFF;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.progress-count .done-count {
    color: #39AC0C;
    font-size: 17px;
}
.btn-popular {
    background: #161614;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-popular:hover {
    background: #39AC0C;
}

/* === CAN SLOTS (NO BOUNCE) === */
.can-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.can-slot {
    background: #FFFFFF;
    border: 2px dashed #C2B27F;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.can-slot:hover {
    border-color: #39AC0C;
    background: #f4fbf0;
}
.can-slot.filled {
    border-style: solid;
    border-color: #39AC0C;
    background: #f4fbf0;
}
.can-slot .slot-plus {
    font-size: 36px;
    color: #C2B27F;
    line-height: 1;
}
.can-slot.filled .slot-plus {
    display: none;
}
.can-slot .slot-label {
    font-size: 13px;
    color: #161614;
    opacity: 0.7;
    font-weight: 700;
}
.can-slot .slot-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 6px;
}
.can-slot .slot-name {
    font-size: 14px;
    color: #39AC0C;
    font-weight: 700;
    margin-bottom: 4px;
}
.can-slot .slot-ingredients {
    font-size: 11px;
    color: #161614;
    opacity: 0.7;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
}

.info-notice {
    background: #fef7e8;
    border: 1px solid #f0d9a0;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    color: #8b6914;
    font-size: 13px;
}

/* === QUOTE SECTION === */
.complete-set-preview {
    text-align: center;
    margin-bottom: 32px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.complete-set-preview img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.quote-summary, .quote-contact {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.quote-summary h3, .quote-contact h3 {
    font-size: 20px;
    font-weight: 800;
    color: #161614;
    margin-bottom: 20px;
}
.quote-summary p {
    font-size: 14px;
    color: #161614;
    margin: 8px 0;
    line-height: 1.6;
}
#quoteSummary h4 {
    font-size: 16px;
    color: #161614;
    margin: 16px 0 10px;
    font-weight: 800;
}
#quoteSummary .blend-item {
    background: #f7f9f4;
    border: 1px solid #dde8d5;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
#quoteSummary .blend-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
#quoteSummary .blend-item-text strong {
    display: block;
    color: #161614;
    font-size: 15px;
    margin-bottom: 4px;
}
#quoteSummary .blend-item-text small {
    color: #161614;
    opacity: 0.75;
    font-size: 13px;
    display: block;
    line-height: 1.5;
}

.quote-contact input, .quote-contact textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ECD0B5;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 14px;
    background: #fafff7;
    color: #161614;
    transition: border-color 0.3s ease;
}
.quote-contact input:focus, .quote-contact textarea:focus {
    outline: none;
    border-color: #39AC0C;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #39AC0C;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-submit:hover {
    background: #2e9009;
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === SUCCESS === */
.success-panel {
    text-align: center;
    padding: 60px 30px;
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.success-icon {
    width: 70px;
    height: 70px;
    background: #39AC0C;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}
.success-panel h2 {
    font-size: 28px;
    font-weight: 800;
    color: #161614;
    margin-bottom: 16px;
}
.success-panel p {
    font-size: 15px;
    color: #161614;
    opacity: 0.8;
    margin-bottom: 10px;
    line-height: 1.6;
}
.btn-primary {
    margin-top: 24px;
    padding: 14px 36px;
    background: #39AC0C;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-primary:hover {
    background: #2e9009;
}

/* === NAVIGATION === */
.wiz-nav {
    margin-top: 40px;
    text-align: center;
}
.btn-back {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #ECD0B5;
    color: #161614;
    transition: background 0.3s ease;
}
.btn-back:hover {
    background: #d4b89f;
}

/* === MODAL === */
.wiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}
.wiz-modal.active {
    display: block;
}
.modal-backdrop, .existing-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 22, 20, 0.6);
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 20px;
    padding: 44px 32px 32px;
    width: 90%;
    max-width: 550px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
.modal-close-btn, .existing-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161614;
    line-height: 1;
    z-index: 10;
    transition: background 0.2s ease;
}
.modal-close-btn:hover, .existing-close-btn:hover {
    background: #e0e0e0;
}
.modal-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #161614;
    margin-bottom: 8px;
    padding-right: 40px;
}
.modal-hint {
    font-size: 13px;
    color: #161614;
    opacity: 0.6;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #161614;
    font-size: 13px;
}
.category-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #39AC0C !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px !important;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8f5e1;
}
.form-group select, .form-group input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #ECD0B5;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fafff7;
    color: #161614;
    transition: border-color 0.3s ease;
}
.form-group select:focus, .form-group input[type="text"]:focus {
    outline: none;
    border-color: #39AC0C;
}

.ingredient-checks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ingredient-checks label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400 !important;
    font-size: 13px;
    color: #161614;
    cursor: pointer;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #e8ead8;
    background: #fafff7;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.ingredient-checks label:hover {
    border-color: #39AC0C;
    background: #f4fbf0;
}
.ingredient-checks input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #39AC0C;
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}
.modal-actions button {
    flex: 1;
    padding: 13px 22px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-cancel {
    background: #f0f0f0;
    color: #161614;
}
.btn-cancel:hover {
    background: #e0e0e0;
}
.btn-save {
    background: #39AC0C;
    color: #FFFFFF;
}
.btn-save:hover {
    background: #2e9009;
}

.existing-blend-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #ECD0B5;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fafff7;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.existing-blend-option:hover {
    border-color: #39AC0C;
    background: #f4fbf0;
}
.existing-blend-option img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
}
.existing-blend-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #161614;
    margin-bottom: 3px;
}
.existing-blend-info p {
    font-size: 12px;
    color: #161614;
    opacity: 0.7;
}

.selected-blend-preview {
    text-align: center;
    margin-bottom: 22px;
    padding: 22px;
    background: #f4fbf0;
    border-radius: 16px;
    border: 2px solid #c8e6b8;
}
.selected-blend-preview img {
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}
.selected-blend-name {
    font-size: 16px;
    font-weight: 700;
    color: #161614;
}
.optional {
    font-weight: 400;
    color: #161614;
    opacity: 0.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .method-cards, .cans-selection {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .quote-grid {
        grid-template-columns: 1fr;
    }
    .can-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    .ingredient-checks {
        grid-template-columns: repeat(2, 1fr);
    }
    .wiz-step > h1 {
        font-size: 30px;
    }
    .progress-step {
        max-width: 100px;
    }
    .progress-step span {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .progress-step:not(:last-child)::after {
        top: 21px;
        left: calc(50% + 24px);
        right: calc(-50% + 24px);
    }
}
@media (max-width: 560px) {
    .can-slots {
        grid-template-columns: 1fr;
    }
    .ingredient-checks {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 36px 20px 28px;
    }
    .modal-actions {
        flex-direction: column;
    }
    .progress-step {
        max-width: 80px;
    }
    .progress-step span {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .progress-step:not(:last-child)::after {
        top: 18px;
        left: calc(50% + 20px);
        right: calc(-50% + 20px);
    }
}
