/* domhe-interactive-form/style.css */
:root {
    --primary-pink: #FF98B8;  /* Pastel brand pink */
    --primary-pink-dark: #FF7CA3; 
    --secondary-pink: #FFE2EE; /* Very light pink background */
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --gray-border: #E0E0E0;
    --white: #FFFFFF;
    --font-family: 'Quicksand', sans-serif;
}

/* Global resets removed to prevent overriding the main site styles */

.wizard-section *,
.wizard-section *::before,
.wizard-section *::after {
    box-sizing: border-box;
}

/* Progress bar container fix */
.wizard-section .progress-container {
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
    height: 50px;
}

.wizard-section .progress-line {
    background: var(--light-gray, #F5F5F5);
    height: 8px;
    border-radius: 10px;
    position: absolute;
    top: 18px;
    left: 30px;
    right: 30px;
    z-index: 1;
}

.wizard-section .progress-fill {
    background: var(--primary-pink, #FF98B8);
    height: 8px;
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s ease-in-out;
    position: absolute;
    top: 18px;
    left: 30px;
    z-index: 2;
}

.wizard-section .progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.wizard-section .step {
    background: var(--white, #FFFFFF);
    border: 3px solid var(--light-gray, #F5F5F5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.wizard-section .step.active,
.wizard-section .step.completed {
    border-color: var(--primary-pink, #FF98B8);
}

.wizard-section .step .bear-avatar {
    font-size: 1.2rem;
}

/* Wizard steps */
.wizard-section .wizard-step {
    display: none;
    animation: wizardFadeIn 0.4s ease;
}

.wizard-section .wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-section .wizard-step h3 {
    color: var(--primary-pink-dark, #FF7CA3);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Service cards in wizard */
.wizard-section .service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.wizard-section .service-option {
    cursor: pointer;
    border: 2px solid var(--gray-border, #E0E0E0);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white, #FFFFFF);
}

.wizard-section .service-option:hover,
.wizard-section .service-option.selected {
    border-color: var(--primary-pink, #FF98B8);
    background-color: var(--secondary-pink, #FFE2EE);
}

.wizard-section .service-option .icon-pink {
    font-size: 2rem;
    color: #999;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: block;
}

.wizard-section .service-option:hover .icon-pink,
.wizard-section .service-option.selected .icon-pink {
    color: var(--primary-pink, #FF98B8);
    transform: scale(1.1);
}

.wizard-section .service-option h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.wizard-section .service-option p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* Counter controls */
.wizard-section .counter-group {
    margin-bottom: 20px;
}

.wizard-section .counter-group label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
}

.wizard-section .counter-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-border, #E0E0E0);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.wizard-section .counter-btn {
    background: var(--light-gray, #F5F5F5);
    border: none;
    padding: 12px 18px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
    transition: background 0.3s ease;
}

.wizard-section .counter-btn:hover {
    background: #E0E0E0;
}

.wizard-section .counter-control input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    font-family: var(--font-family, 'Quicksand', sans-serif);
    background: transparent;
}

/* Fila de dos horarios (inicio y fin) */
.wizard-section .time-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.wizard-section .time-row .input-group {
    flex: 1;
}

/* Input groups */
.wizard-section .input-group {
    margin-bottom: 20px;
}

.wizard-section .input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.wizard-section .input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-border, #E0E0E0);
    border-radius: 8px;
    font-family: var(--font-family, 'Quicksand', sans-serif);
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.wizard-section .input-group input:focus {
    outline: none;
    border-color: var(--primary-pink, #FF98B8);
}

/* Error message */
.wizard-section .error-msg {
    color: #E81A63;
    display: none;
    margin-top: 10px;
    font-size: 0.85rem;
}

.wizard-section .error-msg.show {
    display: block;
}

/* Wizard actions */
.wizard-section .wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.wizard-section .wizard-actions.right {
    justify-content: flex-end;
}

/* Summary card */
.wizard-section .summary-card {
    background: var(--secondary-pink, #FFE2EE);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
}

.wizard-section .summary-icon {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 15px;
}

.wizard-section .summary-card h3 {
    margin-bottom: 10px;
}

.wizard-section .summary-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.wizard-section .summary-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 152, 184, 0.3);
    color: #444;
}

.wizard-section .summary-list li:last-child {
    border-bottom: none;
}

/* Send WhatsApp button */
.wizard-section .send-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.wizard-section .send-whatsapp:hover {
    background: #1EBE5C;
}

.wizard-section {
    font-family: var(--font-family);
    background-color: var(--secondary-pink);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    z-index: 22;
}

.wizard-container {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 152, 184, 0.15);
    padding: 30px;
    overflow: hidden;
}

/* Header */
.wizard-header {
    text-align: center;
    margin-bottom: 25px;
}

.wizard-header .logo {
    width: 80px;
    margin-bottom: 10px;
}

.wizard-header h2 {
    color: var(--primary-pink-dark);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: 'Quicksand', sans-serif;
}

.wizard-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
}

.progress-track {
    background: var(--light-gray);
    height: 8px;
    border-radius: 10px;
    position: relative;
    top: 18px;
    z-index: 1;
}

.progress-fill {
    background: var(--primary-pink);
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s ease-in-out;
}

.progress-steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.progress-step {
    background: var(--white);
    border: 3px solid var(--light-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    color: #999;
}

.progress-step.active, .progress-step.completed {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
}

.progress-step.completed {
    background: var(--primary-pink);
    color: var(--white);
}

.bear-icon {
    width: 22px;
    height: 22px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    color: var(--primary-pink-dark);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Service Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.option-card {
    cursor: pointer;
    position: relative;
}

.option-card input[type="radio"] {
    display: none;
}

.option-content {
    border: 2px solid var(--gray-border);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
}

.option-icon {
    font-size: 2rem;
    color: #999;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.option-content h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.option-content p {
    font-size: 0.8rem;
    color: #777;
}

.option-card input:checked + .option-content {
    border-color: var(--primary-pink);
    background-color: var(--secondary-pink);
}

.option-card input:checked + .option-content .option-icon {
    color: var(--primary-pink);
    transform: scale(1.1);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-pink);
}

.counter-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.counter-wrapper input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    font-family: var(--font-family);
}

.btn-counter {
    background: var(--light-gray);
    border: none;
    padding: 10px 18px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
    transition: background 0.3s ease;
}

.btn-counter:hover {
    background: #E0E0E0;
}

/* Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* If only one button (next) push it right */
.action-buttons .btn-next:only-child {
    margin-left: auto;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.95);
}

.btn-next {
    background: var(--primary-pink);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 152, 184, 0.4);
}

.btn-next:hover, .btn-submit:hover {
    background: var(--primary-pink-dark);
}

.btn-prev {
    background: var(--white);
    color: #777;
    border: 2px solid var(--gray-border);
}

.btn-prev:hover {
    border-color: #555;
    color: #333;
}

.btn-submit {
    background: #25D366; /* WhatsApp color */
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-submit:hover {
    background: #1EBE5C;
}

/* Summary Card */
.summary-card {
    background: var(--secondary-pink);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.pink-text {
    color: var(--primary-pink-dark);
}

.summary-disclaimer {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    line-height: 1.4;
}

/* ========================================
   Selector de días — Servicio Fijo
   ======================================== */
.wizard-section .days-group {
    margin-bottom: 20px;
}

.wizard-section .days-group > label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.wizard-section .days-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard-section .day-btn {
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wizard-section .day-btn:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
}

.wizard-section .day-btn.selected {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 152, 184, 0.45);
    transform: scale(1.05);
}

/* ========================================
   Nota informativa — Servicio Eventos
   ======================================== */
.wizard-section .eventos-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFF0F5;
    border: 1.5px solid #FF98B8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.wizard-section .eventos-note i {
    color: #E81A63;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.wizard-section .eventos-note p {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    border-left: 4px solid #FF98B8;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    pointer-events: all;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-error  { border-left-color: #E81A63; }
.toast-warning { border-left-color: #F59E0B; }
.toast-success { border-left-color: #25D366; }
.toast-info   { border-left-color: #3B82F6; }

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.toast-msg {
    flex: 1;
    color: #333;
    font-size: 0.9rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: unset;
        max-width: 100%;
        transform: translateY(calc(100% + 30px));
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .wizard-container {
        padding: 20px;
    }
}
