/* ========================
       STEPPER BAR
       ======================== */
.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    justify-content: space-around;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.stepper-item .s-box {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: large;
    font-weight: 700;
    flex-shrink: 0;
    padding: 5% 10%;
}

/* active step */
.stepper-item.active .s-box {
    background: #043cff !important;
    color: #fff;
}

.stepper-line.active {
    background: #043cff !important;

}

/* inactive steps */
.stepper-item.inactive .s-box {
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: transparent;
    color: rgba(255, 255, 255, 0.40);
}

.stepper-item .s-label {
    font-size: x-large;
    font-weight: 700;
    white-space: nowrap;
}

.stepper-item.active .s-label {
    background: var(--grad-blue-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stepper-item.inactive .s-label {
    color: rgba(255, 255, 255, 0.40);
}

/* connector line between steps */
.stepper-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    min-width: 20px;
}

/* ========================
       SECTION HEADING
       ======================== */
.section-titile-grad-text {
    background: var(--grad-blue-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ========================
       RADIO OPTION CARD
       ======================== */
.radio-card {

    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border .2s, background .2s;
    border: 1px solid transparent;
    position: relative;
}

.radio-card:hover {
    border-color: linear-gradient(110.11deg, #043CFF 0%, #00E3B2 100%);
}

.radio-card.selected {
    border-color: linear-gradient(110.11deg, #043CFF 0%, #00E3B2 100%);
    background: rgba(4, 60, 255, 0.08);
}

.radio-card input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: border-color .2s;
}

.radio-card input[type="radio"]:checked {
    border-color: linear-gradient(110.11deg, #043CFF 0%, #00E3B2 100%);
}

.radio-card:has(input[type="radio"]:checked)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(110.11deg, #043CFF 0%, #00E3B2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.radio-card input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(110.11deg, #043CFF 0%, #00E3B2 100%);
    border-radius: 50%;
}

.radio-card:has(input[type="radio"]:checked) .r-label {
    background: linear-gradient(180deg, #043cff 0%, #00e3b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.radio-card .r-label {
    font-size: large;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* ========================
       NEXT BUTTON
       ======================== */
.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
 
}

.btn-next .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #043cff, #00c8e0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-next .icon svg {
    width: 18px;
    height: 18px;
}

.step-counter {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.40);
    margin-top: 10px;
}



/* ========================
       CTA BANNER
       ======================== */
.cta-banner {
    background: linear-gradient(110.11deg, rgba(4, 60, 255, 0.7) 0%, rgba(0, 227, 178, 0.7) 100%);
    border-radius: 20px;
    padding: clamp(40px, 6vw, 70px) clamp(24px, 6%, 80px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
}

.cta-sub {
    font-size: clamp(13px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.80);
    font-weight: 500;
    max-width: 600px;
}

/* Buttons row */
.cta-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

/* "سجل الآن" — dark bg with gradient icon */
.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0c1124;
    border: none;
    border-radius: 14px;
    padding: 12px 20px 12px 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}

.btn-register:hover {
    background: linear-gradient(135deg, #043cff 0%, #00c8e0 100%);
}

.btn-register .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #043cff 0%, #00c8e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-register .icon svg {
    width: 17px;
    height: 17px;
}

/* "تواصل معنا" — ghost with white border */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 14px;
    padding: 14px 28px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.18);
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-label .required {
    color: #e53e3e;
    font-size: 14px;
    line-height: 1;
}

.field-wrap {
    position: relative;
}

.field-wrap .field-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.40;
    pointer-events: none;
    object-fit: contain;
}

.field-input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 48px 14px 16px;
    /* space for icon on right */
    font-family: var(--font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    direction: rtl;
    text-align: right;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

.field-input:focus {
    border-color: rgba(232, 233, 236, 0.55);
}



/* Select */
.field-select-wrap {
    position: relative;
}

.field-select {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 16px 14px 48px;
    /* space for chevron on left */
    font-family: var(--font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.30);
    direction: rtl;
    text-align: right;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s;
}

.field-select:focus {
    border-color: rgba(254, 254, 255, 0.55);
    color: rgba(255, 255, 255, 0.85);
}

.field-select option {
    background: #16192b;
    color: #fff;
}

/* chevron icon on the left side (RTL = visual left) */
.field-select-wrap .chevron {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.40);
}

.field-select-wrap .chevron svg {
    width: 16px;
    height: 16px;
}

/* Text input */
.field-input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    direction: rtl;
    text-align: right;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

.field-input:focus {
    border-color: rgba(230, 232, 238, 0.55);
}

/* Textarea */
.field-textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 16px;
    font-family: var(--font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    direction: rtl;
    text-align: right;
    outline: none;
    resize: vertical;
    min-height: 140px;
    transition: border-color .2s;
}

.field-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

.field-textarea:focus {
    border-color: rgba(225, 227, 236, 0.55);
}

/* ========================
       CHECKBOX
       ======================== */
.checkbox-wrap {
    display: flex;
    align-items: center;

    gap: 10px;
   
    cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: transparent;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, background .2s;
}

.checkbox-wrap input[type="checkbox"]:checked {
    background: var(--blue);
    border-color: var(--blue);
}

.checkbox-wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkbox-wrap .cb-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-align: right;
}


/* Registration Form Styles */

/* Alert Messages */
#registration-alert {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Radio Card Selection */
.radio-card {
    cursor: pointer;
    transition: all 0.3s ease;
}



.radio-card.active {
    border: 2px solid #007ae3 !important;
    background-color: rgba(0, 122, 227, 0.1) !important;
}

.radio-card:hover {
    border: 2px solid #007ae3 !important;
}

.radio-card .r-label {
    cursor: pointer;
    display: block;
    font-weight: 500;
    color: #ffffff;
}

/* Form Fields */
.field-group {
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.field-label .required {
    color: #ff4444;
    margin-left: 4px;
    font-weight: bold;
}

.field-wrap,
.field-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 1% 3%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: #007ae3;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 122, 227, 0.1);
}

.field-select-wrap .chevron {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    color: #007ae3;
    pointer-events: none;
}

.field-select-wrap .chevron svg {
    width: 100%;
    height: 100%;
}

.field-textarea {
    min-height: 100px;
    resize: vertical;
    padding: 12px 16px;
}

/* Checkbox */
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-top: 16px;
    gap: 10px;
}

.checkbox-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #007ae3;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-wrap .cb-label {
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
    gap: 8px;
    flex-wrap: wrap;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stepper-item .s-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stepper-item.active .s-box {
    background-color: #007ae3;
    color: #ffffff;
    border-color: #007ae3;
    box-shadow: 0 0 0 4px rgba(0, 122, 227, 0.2);
}

.stepper-item .s-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;

}

.stepper-item.active .s-label {
    color: #007ae3;
    font-weight: 600;
}

.stepper-line {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    flex-grow: 1;
    margin: 0 8px;
}

.stepper-item.active ~ .stepper-line {
    background-color: #007ae3;
}


.btn-next .icon {
    display: flex;
    align-items: center;
}

.btn-next .icon svg {
    width: 20px;
    height: 20px;
}

/* Step Content */
.step-one,
.step-two,
.step-three,
.step-four {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Background */
.glass-bg {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography */
.section-heading {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-titile-grad-text {
    background: linear-gradient(90deg, #007ae3 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .stepper {
        zoom: 60%;
    }

    .field-input,
    .field-select,
    .field-textarea {
        font-size: 16px;
        padding: 2% 10%;
    }

  

    .section-heading {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .stepper {
        zoom: 40%;
    }

    .grid.grid-cols-1.sm\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .flex.justify-between {
        flex-direction: column;
        gap: 12px;
    }

}

/* Accessibility */
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: 2px solid #007ae3;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #007ae3;
    outline-offset: 2px;
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid #007ae3;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .btn-primary,
    #registration-alert {
        display: none;
    }
}