/**
* 2007-2023 PrestaShop
*/

:root {
    --brand-teal: #1e7068;
    --brand-teal-hover: #155a53;
    --brand-light-gray: #f8f9fa;
    --brand-border: #e5e5e5;
    --brand-text: #333333;
    --brand-white: #ffffff;
}

#plaudioconfigurator-wizard {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    box-shadow: none;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
}

#plaudioconfigurator-wizard h1.h1 {
    color: var(--brand-teal);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 2px solid var(--brand-teal);
    padding-bottom: 10px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Horizontal Step Indicator */
.wizard-steps-indicator {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px;
}

.wizard-steps-indicator .d-flex {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex !important;
    justify-content: space-between;
}

.step-dot {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-dot span {
    display: block;
    width: 36px;
    height: 36px;
    line-height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    margin: 0 auto 8px;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
}

.step-dot label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin: 0;
    display: block;
}

.step-dot.active span {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
    transform: scale(1.1);
}

.step-dot.active label {
    color: var(--brand-teal);
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #eee;
    z-index: 1;
}

#plaudioconfigurator-wizard h2 {
    color: var(--brand-text);
    font-weight: 600;
    margin-bottom: 2.5rem;
    font-size: 1.4rem;
}

/* Card Improvements */
#plaudioconfigurator-wizard .card-body {
    padding: 2rem;
}

#plaudioconfigurator-wizard .wizard-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--brand-border);
    border-radius: 4px;
    background: var(--brand-white);
    height: 100%;
}

#plaudioconfigurator-wizard .wizard-option:hover {
    border-color: var(--brand-teal);
    transform: translateY(-3px);
}

/* Selection Feedback (Removed background tint) */
#plaudioconfigurator-wizard .wizard-option.selected,
#plaudioconfigurator-wizard .product-card.selected {
    border-color: var(--brand-teal) !important;
    background-color: var(--brand-white) !important;
    box-shadow: inset 0 0 0 1px var(--brand-teal);
    position: relative;
}

#plaudioconfigurator-wizard .wizard-option.selected::after,
#plaudioconfigurator-wizard .product-card.selected::after {
    content: "check_circle";
    font-family: 'Material Icons';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--brand-teal);
    font-size: 24px;
    z-index: 10;
}

/* Product Cards */
#plaudioconfigurator-wizard .product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--brand-border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    position: relative;
    background: var(--brand-white);
}

#plaudioconfigurator-wizard .product-card .card-body {
    padding: 1.5rem;
}

#plaudioconfigurator-wizard .product-card .card-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--brand-text);
    min-height: 3.6em; /* Force space for ~3 lines */
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#plaudioconfigurator-wizard .product-card .card-text strong {
    color: var(--brand-teal);
    font-size: 1.1rem;
}

/* Centered Navigation */
.wizard-navigation {
    border-top: 1px solid var(--brand-border);
    padding-top: 30px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#btn-next, #btn-prev, #btn-skip, #btn-add-to-cart {
    min-width: 180px;
    padding: 14px 30px;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

#btn-next, #btn-add-to-cart {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: white;
}

#btn-prev {
    background-color: #fff;
    color: var(--brand-text);
    border: 1px solid var(--brand-text);
}

#btn-skip {
    background-color: transparent;
    color: var(--brand-teal);
    border: 1px solid var(--brand-teal);
}

#btn-skip:hover {
    background-color: var(--brand-teal);
    color: #fff;
}

/* Modal Styling Improvements */
#add-to-cart-modal .modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

#add-to-cart-modal .modal-body {
    padding: 4rem 3rem !important;
}

#modal-loader .spinner-border {
    color: var(--brand-teal) !important;
}

.success-icon-container i {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.progress-bar {
    transition: width 1.5s linear;
}

/* Animation */
.step-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
