/* Entertainment Lab Wizard Form Styles */

body {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

.wizard-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.wizard-step.active .wizard-step-circle {
    background: #198754;
    color: white;
}

.wizard-step.completed .wizard-step-circle {
    background: #198754;
    color: white;
}

.wizard-content {
    display: none;
}

.wizard-content.active {
    display: block;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    color: #198754;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #198754;
}

.required-field::after {
    content: ' *';
    color: red;
}

.team-member-entry {
    position: relative;
    margin-bottom: 15px;
}

.remove-member-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.char-counter {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.bg-gray {
    background-color: #f8f9fa;
}

.alert-success-custom {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* Font family for all form elements */
.form-control,
.form-select,
.form-check-label,
.btn,
textarea,
input,
select,
button,
label,
option {
    font-family: "IBM Plex Sans Arabic", sans-serif !important;
}

/* ===== RTL Support ===== */

/* Wizard steps RTL adjustments */
[dir="rtl"] .wizard-steps::before {
    left: auto;
    right: 0;
}

/* Character counter alignment - LTR should be right-aligned, RTL should be left-aligned for proper reading */
[dir="ltr"] .char-counter {
    text-align: right !important;
}
[dir="rtl"] .char-counter {
    text-align: left !important;
}

/* Remove member button positioning */
[dir="rtl"] .remove-member-btn {
    right: auto !important;
    left: 10px !important;
}

/* Spinner spacing in submit button */
[dir="ltr"] .spinner-border {
    margin-right: 0.5rem !important;
}
[dir="rtl"] .spinner-border {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* Alert icons spacing and positioning */
.alert {
    position: relative;
    overflow: auto;
}
.alert::after {
    content: "";
    display: table;
    clear: both;
}
/* Keep icons on the left (trailing in RTL) for both directions */
.alert i.bi-exclamation-triangle,
.alert i.bi-shield-check {
    float: left;
    margin-right: 0.5rem;
    margin-left: 0;
    line-height: inherit;
}
[dir="rtl"] .alert span {
    direction: rtl;
    text-align: right;
}
[dir="ltr"] .alert span {
    direction: ltr;
    text-align: left;
}
.alert span {
    display: block;
    overflow: hidden;
}

/* Success message icon spacing */
[dir="ltr"] .alert-success-custom i {
    margin-right: 0;
}
[dir="rtl"] .alert-success-custom i {
    margin-left: 0;
    margin-right: 0;
}

/* Form check (radio/checkbox) alignment */
[dir="rtl"] .form-check {
    padding-left: 0 !important;
    padding-right: 1.5em !important;
}
[dir="rtl"] .form-check-input {
    float: right !important;
    margin-left: 0.5em !important;
    margin-right: -1.5em !important;
}

/* Invalid and valid feedback positioning */
[dir="rtl"] .invalid-feedback,
[dir="rtl"] .valid-feedback {
    text-align: right !important;
}
[dir="ltr"] .invalid-feedback,
[dir="ltr"] .valid-feedback {
    text-align: left !important;
}

/* Validation icons positioning on form controls */
/* LTR: validation icon on the left (leading) */
[dir="ltr"] .form-control.is-invalid,
[dir="ltr"] .form-control.is-valid {
    background-position: left calc(0.375em + 0.1875rem) center !important;
    padding-left: calc(1.5em + 0.75rem) !important;
    padding-right: 0.75rem !important;
}
/* RTL: validation icon on the right (leading) */
[dir="rtl"] .form-control.is-invalid,
[dir="rtl"] .form-control.is-valid {
    background-position: right calc(0.375em + 0.1875rem) center !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    padding-left: 0.75rem !important;
}

/* Adjust select dropdown to accommodate both chevron and validation icon */
/* LTR: Validation icon on left (leading), chevron on right (trailing) */
[dir="ltr"] .form-select.is-invalid,
[dir="ltr"] .form-select.is-valid {
    background-position: right 0.75rem center, left 0.75rem center !important;
    padding-right: 2.25rem !important;
    padding-left: calc(1.5em + 0.75rem) !important;
}

/* RTL: Validation icon on right (leading), chevron on left (trailing) */
[dir="rtl"] .form-select.is-invalid,
[dir="rtl"] .form-select.is-valid {
    background-position: left 0.75rem center, right 0.75rem center !important;
    padding-left: 2.25rem !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}

/* Input group icons (if any) */
[dir="rtl"] .input-group-text {
    border-radius: 0.25rem 0 0 0.25rem;
}
[dir="ltr"] .input-group-text {
    border-radius: 0.25rem 0 0 0.25rem;
}

/* Fix dropdown chevron position in RTL */
[dir="rtl"] .form-select {
    background-position: left 0.75rem center !important;
    padding-right: 0.75rem !important;
    padding-left: 2.25rem !important;
}
[dir="ltr"] .form-select {
    background-position: right 0.75rem center !important;
    padding-right: 2.25rem !important;
    padding-left: 0.75rem !important;
}
