/* Booking Wizard Styles */

.booking-wizard-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Progress Bar */
.wizard-progress {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.progress-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 4px;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    z-index: 2;
    transform: translateY(-50%);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.step-indicator {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 0 15px;
    z-index: 3;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

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

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

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.step-header p {
    color: #777;
    font-size: 0.95rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(215, 21, 122, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

/* Custom Select & Date */
select.form-control {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23D7157A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    appearance: none;
}

/* Time Slot Options */
.time-slot-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.slot-option {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}

.slot-option input {
    display: none;
}

.slot-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    transition: all 0.3s;
    background: #f9f9f9;
}

.slot-label i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #999;
}

.slot-option input:checked+.slot-label {
    border-color: var(--primary-color);
    background: rgba(215, 21, 122, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

.slot-option input:checked+.slot-label i {
    color: var(--primary-color);
}

/* Gender Options */
.gender-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.gender-option {
    cursor: pointer;
    flex: 1;
}

.gender-option input {
    display: none;
}

.gender-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.gender-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #999;
}

.gender-option input:checked+.gender-box {
    border-color: var(--primary-color);
    background: rgba(215, 21, 122, 0.05);
    color: var(--primary-color);
}

.gender-option input:checked+.gender-box i {
    color: var(--primary-color);
}

/* Phone Input */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding-left: 15px;
}

.phone-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 21, 122, 0.1);
}

.phone-input-group .country-code {
    color: #555;
    font-weight: 600;
    margin-right: 10px;
    border-right: 1px solid #eee;
    padding-right: 10px;
}

.phone-input-group input {
    border: none;
    box-shadow: none;
    margin: 0;
}

.phone-input-group input:focus {
    box-shadow: none;
}

/* Buttons */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.wizard-buttons.centered {
    justify-content: center;
    gap: 20px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
}

.btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Error Message */
.error-message {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Success Screen */
.success-screen {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    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;
    }
}

.booking-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: left;
}

.booking-summary h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-item .label {
    color: #777;
}

.summary-item .value {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .wizard-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .wizard-buttons button {
        width: 100%;
    }

    .gender-options {
        flex-direction: column;
    }

    .gender-box {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
    }

    .gender-box i {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 1.5rem;
    }

    .booking-wizard-container {
        padding: 20px;
    }
}

/* Shake Animation for Errors */
.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}