/* Wizard Container */
.wizard-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-height: 600px;
}

/* Progress Bar */
.wizard-progress {
    height: 4px;
    background: #e0e0e0;
    position: relative;
    margin-bottom: 30px;
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width 0.4s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: -42px;
    /* Pull up to overlap line */
    margin-bottom: 40px;
    position: relative;
}

.step-dot {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #999;
    transition: all 0.4s;
}

.step-dot.active {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.step-dot.completed {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* Steps Visibility */
.wizard-step {
    display: none;
    animation: fadeIn 0.5s;
}

.wizard-step.active {
    display: block;
}

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

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

/* Step 1: Modality Selection */
.cards-selection {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.selection-card {
    background: #fdfdfd;
    border: 2px solid #eee;
    padding: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    max-width: 300px;
}

.selection-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.selection-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.selection-card h3 {
    color: var(--text-dark);
}

.selection-card .price-tag {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 15px;
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-gold);
    outline: none;
}

/* Calendar */
.calendar-wrapper {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h4 {
    margin: 0;
    color: var(--primary-blue);
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
}

.weekdays,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
}

.weekdays div {
    font-weight: bold;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.days div {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.days div:hover:not(.empty) {
    background-color: #f0f0f0;
}

.days div.selected {
    background-color: var(--accent-gold);
    color: #fff;
}

.days div.today {
    border: 1px solid var(--accent-gold);
}

.time-slots {
    margin-top: 20px;
    text-align: center;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.slot-btn {
    padding: 8px;
    border: 1px solid var(--primary-blue);
    background: #fff;
    color: var(--primary-blue);
    border-radius: 4px;
    cursor: pointer;
}

.slot-btn.selected {
    background: var(--primary-blue);
    color: #fff;
}

/* Payment */
.payment-info {
    text-align: center;
}

.alert-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.method-item {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.link-btn {
    display: inline-block;
    margin: 5px;
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Nav Buttons */
.nav-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.hidden {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

/* Success Icon */
.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
}

.btn-success {
    background-color: #25d366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .cards-selection {
        flex-direction: column;
        align-items: center;
        /* Center cards horizontally */
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .wizard-container {
        padding: 20px;
        margin: 20px auto;
    }

    /* Prevent iOS Zoom on inputs */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Improve button touch targets */
    .slot-btn {
        min-height: 44px;
        min-width: 44px;
    }
}
