#wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    /* Top padding removed */
    padding-top: 0 !important;
}

.wizard-step {
    animation: fadeIn 0.5s ease;
}

.wizard-step.hidden {
    display: none;
}

.step-title {
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
    /* Reduced from 30px */
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 0 !important;
    /* Ensure no top margin */
}

.wizard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Wizard Grid for Options/Products */
.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.option-card,
.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    /* overflow: hidden; removed to allow badges to overflow */
}

.option-card:hover,
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--secondary-color);
}

.option-card.selected,
.product-card.selected {
    border-color: var(--primary-color);
    background-color: #f0faff;
}

.product-card img {
    width: 100%;
    height: 480px;
    /* Massive increase */
    object-fit: contain;
    /* Don't crop flyers */
    display: block;
    background: #f8fafc;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card {
    padding: 0 !important;
}

.product-card:hover img {
    transform: scale(1.02);
}

.product-image-container {
    position: relative;
    cursor: zoom-in;
}

.product-image-container::after {
    content: "🔍 Click para ampliar";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-image-container:hover::after {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--color-pink);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
    z-index: 20;
    text-transform: uppercase;
    transform: rotate(2deg);
}

.product-features-wrapper {
    display: none;
    /* Hard hide */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-features-wrapper.show {
    display: block !important;
    opacity: 1;
    margin-bottom: 20px;
}

.product-features {
    text-align: left;
    margin: 0;
    padding: 15px;
    font-size: 0.85rem;
    color: #4a5568;
    background: #f8fafc;
    border-radius: 12px;
}

.product-features li {
    margin-bottom: 8px;
    list-style: none;
    display: flex;
    align-items: center;
}

.product-features li::before {
    content: "✓";
    color: var(--color-price-green);
    font-weight: bold;
    margin-right: 10px;
}

.view-details-link {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.view-details-link:hover {
    color: var(--color-teal-dark);
}

.product-price {
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.new-price {
    color: var(--color-price-green);
    font-weight: 900;
    font-size: 1.5rem;
}

.select-product-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.option-card:hover .select-product-btn,
.product-card:hover .select-product-btn {
    background: var(--color-teal-dark);
}

.secondary-button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.action-button.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MIGRATED STEP 4 STYLES --- */
#step-4 .wizard-card label {
    color: #333;
    font-weight: 600;
}

#step-4 .wizard-card p {
    color: #555;
    font-size: 0.95rem;
}

#step-4 .wizard-card h3,
#step-4 .wizard-card h4,
#step-4 .wizard-card h5 {
    color: #1A7B8C;
}

#step-4 .wizard-card,
#step-4 .pet-data-card,
#step-4 .form-grid,
#step-4 .form-group {
    overflow: visible;
    position: static;
}

#step-4 .custom-select-wrapper {
    position: relative;
    z-index: auto;
}

#step-4 .custom-select-wrapper.open {
    z-index: 1000;
}

.custom-options {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: absolute;
    width: 100%;
    border: 1px solid #ddd;
    z-index: 9999;
    background: white;
}

.custom-option {
    color: #333;
    padding: 10px;
}

.custom-option:hover {
    background: #f0f4f8;
}

/* Responsive Grid Override */
.checkout-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.payment-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.payment-option {
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: #333;
}

.payment-option:hover {
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.payment-option.active {
    border-color: #1A7B8C;
    background-color: #f0f8fa;
    box-shadow: 0 4px 12px rgba(26, 123, 140, 0.15);
}

.payment-option.active::after {
    content: '✔';
    color: #1A7B8C;
    font-weight: 900;
    font-size: 1.2rem;
}

#checkout-total {
    color: #1A7B8C;
    font-size: 1.5rem;
    font-weight: 800;
}

.action-button {
    width: 100%;
    background-color: #C2D83E;
    color: #1A7B8C;
    border: none;
    padding: 18px;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(194, 216, 62, 0.4);
}

.action-button:hover {
    transform: scale(1.02);
    background-color: #dbe87a;
}

@media (max-width: 768px) {
    .checkout-v2-grid {
        grid-template-columns: 1fr;
    }
}

/* --- VISIBILITY OVERRIDES FOR STEP 4 (Fix for index.css !important rules) --- */
#step-4 .wizard-card #registrationForm .form-group label {
    color: #333 !important;
    opacity: 1 !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}

#step-4 .wizard-card #registrationForm input[type="text"],
#step-4 .wizard-card #registrationForm input[type="tel"],
#step-4 .wizard-card #registrationForm input[type="email"] {
    background-color: #ffffff !important;
    border: 2px solid #ddd !important;
    color: #333 !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
}

#step-4 .wizard-card #registrationForm input:focus {
    border-color: #1A7B8C !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(26, 123, 140, 0.1) !important;
}

#step-4 .wizard-card #registrationForm input::placeholder {
    color: #999 !important;
}

#step-4 .wizard-card .pet-data-card {
    background-color: #fcfdfe !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: none !important;
    padding: 20px !important;
}

#step-4 .wizard-card .pet-data-card h5 {
    color: #1A7B8C !important;
    margin-top: 0 !important;
}

#step-4 .wizard-card #registrationForm .custom-select-trigger span {
    color: #333 !important;
}

/* --- MOBILE RESPONSIVENESS FOR STEP 4 --- */
@media (max-width: 768px) {
    #step-4 .wizard-card {
        padding: 20px !important;
        margin: 0 !important;
        border-radius: 15px !important;
    }

    #step-4 .pet-data-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    #step-4 .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    #step-4 .wizard-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
    }

    #step-4 .wizard-card #registrationForm .form-group label {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }

    #step-4 .wizard-card #registrationForm input[type="text"],
    #step-4 .wizard-card #registrationForm input[type="tel"],
    #step-4 .wizard-card #registrationForm input[type="email"],
    #step-4 .wizard-card .custom-select-trigger {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    .checkout-v2-grid {
        gap: 20px !important;
    }
}