:root {
    --cz-dark: #222222;
    --cz-gold: #c5a059;
    --cz-gold-hover: #d6b472;
    --cz-white: #ffffff;
    --cz-gray: #333333;
    --cz-text-gray: #bbbbbb;
    --cz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.czaro-configurator {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cz-dark);
    color: var(--cz-white);
    max-width: 800px;
    margin: 20px auto;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.cz-image-container {
    width: 100%;
    height: 300px;
    margin-bottom: 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.cz-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.czaro-configurator * {
    box-sizing: border-box;
}

.cz-header {
    margin-bottom: 40px;
    text-align: center;
}

.cz-header h2 {
    color: var(--cz-gold);
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cz-progress-bar {
    width: 100%;
    height: 4px;
    background: #444;
    margin-top: 20px;
    border-radius: 2px;
    position: relative;
}

.cz-progress-fill {
    height: 100%;
    background: var(--cz-gold);
    transition: width 0.5s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--cz-gold);
}

/* Card Styling */
.cz-step-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cz-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

/* Tiles Grid */
.cz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.cz-tile {
    background: var(--cz-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--cz-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cz-tile:hover {
    background: #3d3d3d;
    transform: translateY(-5px);
    border-color: #555;
}

.cz-tile.active {
    border-color: var(--cz-gold);
    background: rgba(197, 160, 89, 0.1);
}

.cz-tile i, .cz-tile svg {
    color: var(--cz-gold);
    width: 28px;
    height: 28px;
}

.cz-tile-label {
    font-weight: 500;
    font-size: 14px;
}

/* Select Styling */
.cz-select-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.cz-select {
    width: 100%;
    padding: 15px;
    background: var(--cz-gray);
    border: 2px solid #444;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    outline: none;
    cursor: pointer;
    transition: var(--cz-transition);
}

.cz-select:focus {
    border-color: var(--cz-gold);
}

/* Price Section */
.cz-price-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: center;
}

.cz-price-net {
    font-size: 26px;
    font-weight: 800;
    color: var(--cz-gold);
}

.cz-price-gross {
    font-size: 14px;
    color: var(--cz-text-gray);
    margin-top: 3px;
}

.cz-legal {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Controls */
.cz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.cz-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cz-transition);
    border: 2px solid transparent; /* Added to keep height consistent */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    height: 50px; /* Fixed height for perfect alignment */
}

.cz-btn-prev {
    background: transparent;
    color: var(--cz-text-gray);
    border-color: #444;
}

.cz-btn-prev:hover {
    background: #333;
    color: white;
}

.cz-btn-next {
    background: var(--cz-gold);
    color: var(--cz-dark);
}

.cz-btn-next:hover {
    background: var(--cz-gold-hover);
    transform: scale(1.05);
}

.cz-btn-contact {
    background: transparent;
    color: var(--cz-white);
    border-color: var(--cz-gold);
}

.cz-btn-contact:hover {
    background: var(--cz-gold);
    color: var(--cz-dark);
}

.cz-final-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cz-btn-final {
    background: #ffffff;
    color: #222222;
    padding: 12px 30px;
}

.cz-btn-final:hover {
    background: #eeeeee;
    transform: translateY(-2px);
}

/* Quantity Input */
.cz-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cz-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--cz-gold);
    background: transparent;
    color: var(--cz-gold);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cz-transition);
}

.cz-qty-btn:hover {
    background: var(--cz-gold);
    color: var(--cz-dark);
}

.cz-qty-val {
    font-size: 20px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

/* Dual Quantity */
.cz-dual-qty {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cz-qty-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--cz-gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.cz-qty-label {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cz-qty-label i {
    width: 20px;
    height: 20px;
    color: var(--cz-gold);
}

/* Summary */
.cz-summary-list {
    background: var(--cz-gray);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cz-summary-item {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.cz-summary-item span {
    color: var(--cz-text-gray);
}

.cz-summary-item strong {
    color: var(--cz-white);
}

.cz-final-price {
    margin-top: 30px;
    text-align: center;
    padding: 25px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.cz-legal a {
    color: var(--cz-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--cz-transition);
}

.cz-legal a:hover {
    border-color: var(--cz-gold);
}

/* Responsive */
@media (max-width: 600px) {
    .czaro-configurator {
        padding: 15px;
        margin: 10px;
    }
    .cz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cz-dual-qty {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .cz-summary-list {
        grid-template-columns: 1fr;
    }
    .cz-controls {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: stretch;
    }
    .cz-final-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cz-btn {
        width: 100%;
    }
    .cz-price-net {
        font-size: 24px;
    }
}


