/**
 * Booking Wizard CSS - Simplified Version
 */

 :root {
    /* Bridge variables: reference The7 theme CSS vars with fallbacks */
    --primary: var(--the7-accent-color, #cb1023);
    --primary-light: var(--the7-accent-bg-2, #fa1c41);
    --secondary: var(--the7-accent-bg-2, #fa1c41);
    --background: var(--the7-body-bg-color, #f8f8f9);
    --card-bg: var(--the7-page-bg-color, #ffffff);
    --text-dark: var(--the7-title-color, #3b3f4a);
    --text-light: var(--the7-base-color, #787d85);
    --border-radius: var(--the7-general-border-radius, 0px);
    --btn-border-radius: var(--the7-btn-m-border-radius, 100px);
    --input-border: var(--the7-input-border-color, rgba(51,51,51,0.11));
    --input-border-radius: var(--the7-input-border-radius, 2px);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* The7 Theme Gradients */
    --primary-gradient: linear-gradient(180deg, #cb1023 0%, #fa1c41 100%);
    --primary-gradient-hover: linear-gradient(180deg, #fa1c41 0%, #cb1023 100%);

    /* Form styling */
    --input-focus: var(--the7-accent-color, #cb1023);
    --error: #e74c3c;
    --success: #4CAF50;
}

.booking-wizard-container {
    background-color: var(--background);
    color: var(--text-dark);
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
    font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
    font-size: 14px;
    line-height: 26px;
}

/* Progress indicator */
.progress-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.progress-step:not(:last-child) {
    margin-right: 80px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #e2e8f0;
    width: 60px;
    right: -70px;
    top: 50%;
}

.progress-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    transition: all 0.3s;
}

.progress-text {
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s;
}

.progress-step.active .progress-number {
    background-color: var(--primary);
    color: white;
}

.progress-step.active .progress-text {
    color: var(--primary);
    font-weight: 500;
}

.progress-step.completed .progress-number {
    background-color: var(--primary);
    color: white;
}

.progress-step:not(:last-child).completed::after,
.progress-step:not(:last-child).active::after {
    background-color: var(--primary);
}


.group-title {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--primary);
}

.group-title i {
    margin-right: 10px;
}

/* Course Level Cards */
.course-level-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    gap: 10px;
}

.course-card {
    flex: 1;
    min-width: 0;
    max-width: 32%;
    height: 180px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: transform 0.3s;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

.course-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(203, 16, 35, 0.7), rgba(250, 28, 65, 0.9));
    z-index: 2;
}

.course-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
}
.course-card-content {
    position: relative;
    padding: 20px;
    color: white;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.course-details {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.more-info-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--btn-border-radius);
    font-weight: bold;
    font-family: "Roboto", Helvetica, Arial, Verdana, sans-serif;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s;
    font-size: 14px;
}

.more-info-btn:hover {
    background: var(--primary-gradient-hover);
}

.course-card.selected {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-card.selected .course-card-overlay {
    background: linear-gradient(to bottom, rgba(250, 28, 65, 0.8), rgba(203, 16, 35, 0.95));
}

/* Option Groups */
.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-item {
    flex: 1 0 calc(50% - 10px);
    min-width: 120px;
}

.option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #f1f5f9;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.option-btn:hover:not(.disabled) {
    background-color: #e2e8f0;
}

.option-btn.selected {
    background-color: rgba(203, 16, 35, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: bold;
}

.option-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #eaecee;
}

/* Submit Button */
.submit-container {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--btn-border-radius);
    font-size: 16px;
    font-family: "Roboto", Helvetica, Arial, Verdana, sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Form styles */
.form-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.optional-label {
    color: var(--text-light);
    font-weight: normal;
    font-size: 14px;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--input-border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(203, 16, 35, 0.2);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.cr-number-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cr-number-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Validation styles */
.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 6px;
    display: none;
}

.form-control.error {
    border-color: var(--error);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-control.error + .error-message {
    display: block;
}

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

.back-btn {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 28px;
    border-radius: var(--btn-border-radius);
    font-size: 16px;
    font-family: "Roboto", Helvetica, Arial, Verdana, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background-color: rgba(203, 16, 35, 0.1);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .progress-step:not(:last-child) {
        margin-right: 50px;
    }

    .progress-step:not(:last-child)::after {
        width: 30px;
        right: -40px;
    }

    .progress-text {
        font-size: 12px;
    }

    .option-item {
        flex: 1 0 100%;
    }

    .course-level-container {
        flex-wrap: wrap;
    }

    .course-card {
        flex: 1 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .buttons-container {
        flex-direction: column;
        gap: 15px;
    }

    .back-btn, .submit-btn {
        width: 100%;
    }
}
