﻿/* ============================================================
   SmartSchool Student Registration (LSR) - Design Tokens
   ============================================================ */

:root {
    --lsr-primary: #0f7a8a;
    --lsr-primary-dark: #0a5c69;
    --lsr-primary-light: #e5f4f6;
    --lsr-accent: #e8863c;
    --lsr-accent-dark: #cc6d26;
    --lsr-text: #1e2a35;
    --lsr-text-muted: #64748b;
    --lsr-border: #e3e8ee;
    --lsr-bg: #eef2f7;
    --lsr-card-bg: #ffffff;
    --lsr-radius-lg: 18px;
    --lsr-radius-md: 12px;
    --lsr-radius-sm: 10px;
    --lsr-shadow-card: 0 20px 45px -22px rgba(15, 42, 53, 0.28);
    --lsr-shadow-soft: 0 8px 20px -10px rgba(15, 42, 53, 0.18);
    --lsr-font-latin: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --lsr-font-ar: 'Cairo', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    background: radial-gradient(circle at 10% 0%, #f4fafb 0%, var(--lsr-bg) 45%, #eceff5 100%);
    font-family: var(--lsr-font-latin);
    color: var(--lsr-text);
    margin: 0;
    display: flex;
    flex-direction: column;
}

form#form1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.body-container {
    flex: 1 0 auto;
    display: block;
    width: 100%;
    padding-bottom: 32px;
}

/* ============================================================
   Page Shell / Container - full-width, professional layout
   ============================================================ */

.container {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto 0;
    background: var(--lsr-card-bg);
    padding: 0;
    border-radius: var(--lsr-radius-lg);
    box-shadow: var(--lsr-shadow-card);
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    .container > .header-branding-area,
    .container > .lsr-view-main,
    .container > .lsr-phone-gate,
    .container > .lsr-wizard-main > .lsr-progress-region,
    .container > .lsr-wizard-main > .form-step,
    .container > .lsr-wizard-main > .lsr-form-navigation {
        padding-left: clamp(20px, 4vw, 56px);
        padding-right: clamp(20px, 4vw, 56px);
    }

.btn-primary {
    background-color: var(--lsr-primary);
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: var(--lsr-radius-sm);
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: var(--lsr-primary-dark);
    }

h2.form-label {
    color: var(--lsr-primary);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.form-label {
    color: var(--lsr-text);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.lsr-required-mark {
    color: #d64545;
    font-weight: 800;
    margin-inline-start: 2px;
}

.lsr-field-invalid,
.select2-container.lsr-field-invalid .select2-selection--single,
.signature-wrapper.lsr-field-invalid,
.custom-selection-box.lsr-field-invalid {
    border-color: #d64545 !important;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15) !important;
}

input.lsr-field-invalid.form-control,
textarea.lsr-field-invalid.form-control,
select.lsr-field-invalid.form-control {
    background-color: #fff8f8;
}

/* ============================================================
   Header / Branding
   ============================================================ */

.header-branding-area {
    text-align: center;
    padding-top: 36px !important;
    padding-bottom: 26px !important;
    background: linear-gradient(180deg, var(--lsr-primary-light) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid var(--lsr-border);
}

.school-logo-style {
    max-height: 96px;
    max-width: 100%;
    width: auto;
    display: block;
    margin: 0 auto 22px auto;
    filter: drop-shadow(0 6px 10px rgba(15, 42, 53, 0.1));
}

.application-title {
    color: var(--lsr-primary-dark);
    font-weight: 700;
    font-size: 1.85rem;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.title-divider {
    width: 84px;
    height: 4px;
    background: linear-gradient(90deg, var(--lsr-primary), var(--lsr-accent));
    margin: 0 auto;
    border-radius: 4px;
}

/* ============================================================
   Progress region (step counter + stepper)
   ============================================================ */

.lsr-progress-region {
    padding-top: 22px;
    padding-bottom: 6px;
    background: #fbfdfe;
    border-bottom: 1px solid var(--lsr-border);
}

.lsr-step-chip {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--lsr-text-muted);
    font-weight: 600;
    font-family: var(--lsr-font-ar);
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    margin: 0 0 10px 0;
    padding: 0;
}

/* Connected circle + line stepper */
.lsr-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 14px 4px 18px;
    margin: 0 auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--lsr-primary-light) transparent;
    -webkit-overflow-scrolling: touch;
}

    .lsr-stepper::-webkit-scrollbar {
        height: 6px;
    }

    .lsr-stepper::-webkit-scrollbar-thumb {
        background: var(--lsr-border);
        border-radius: 6px;
    }

.lsr-stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 112px;
    padding: 0 4px;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

    .lsr-stepper-item.is-active,
    .lsr-stepper-item.is-completed {
        opacity: 1;
    }

    .lsr-stepper-item.is-reachable {
        cursor: pointer;
    }

    .lsr-stepper-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 19px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: var(--lsr-border);
        z-index: 1;
        transition: background-color 0.25s ease;
    }

    .lsr-stepper-item.is-completed:not(:last-child)::after {
        background: var(--lsr-primary);
    }

.lsr-stepper-item .step-index {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--lsr-border);
    color: var(--lsr-text-muted);
    font-family: var(--lsr-font-latin);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.lsr-stepper-item.is-completed .step-index {
    background: var(--lsr-primary);
    border-color: var(--lsr-primary);
    color: #fff;
}

.lsr-stepper-item.is-active .step-index {
    background: var(--lsr-primary);
    border-color: var(--lsr-accent);
    color: #fff;
    box-shadow: 0 0 0 5px var(--lsr-primary-light);
}

.lsr-stepper-item .step-title {
    margin-top: 9px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lsr-text-muted);
    text-align: center;
    white-space: nowrap;
    font-family: var(--lsr-font-ar);
    letter-spacing: 0.1px;
}

.lsr-stepper-item.is-active .step-title {
    color: var(--lsr-primary-dark);
    font-weight: 700;
}

.lsr-stepper-item.is-completed .step-title {
    color: var(--lsr-text);
}

/* ============================================================
   Wizard steps: hidden by default, JS toggles the active one
   ============================================================ */

.form-step {
    display: none;
    padding-top: 34px;
    padding-bottom: 8px;
}

    .form-step.is-active {
        display: block;
        flex: 1 0 auto;
        animation: lsrFadeIn 0.3s ease;
    }

@keyframes lsrFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean, Modern Section Header (per-step title) */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 16px 18px;
    margin: 0 0 28px 0;
    border-bottom: 1px solid var(--lsr-border);
    border-left: 4px solid var(--lsr-primary);
    position: relative;
}

    .section-header .title-en {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--lsr-text);
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .section-header .title-ar {
        font-family: var(--lsr-font-ar);
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--lsr-primary-dark);
    }

/* Simplified Sub-titles (Parents) */

.parent-sub-title {
    font-size: 1.05rem;
    color: var(--lsr-primary);
    font-weight: 700;
    margin: 20px 0 15px 0;
    display: flex;
    align-items: center;
}

    .parent-sub-title::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--lsr-accent);
        margin-right: 10px;
        flex-shrink: 0;
    }

/* ============================================================
   Inputs / Form Controls
   ============================================================ */

.form-control,
textarea.form-control {
    min-height: 46px;
    border: 1.5px solid var(--lsr-border);
    border-radius: var(--lsr-radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--lsr-text);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus {
        border-color: var(--lsr-primary);
        box-shadow: 0 0 0 3px var(--lsr-primary-light);
        outline: none;
    }

    .form-control[readonly] {
        background-color: #f7f9fb;
        color: var(--lsr-text-muted);
    }

textarea.form-control {
    min-height: 90px;
}

.row {
    row-gap: 4px;
}

.input-group .btn-outline-secondary {
    border: 1.5px solid var(--lsr-border);
    border-radius: 0 var(--lsr-radius-sm) var(--lsr-radius-sm) 0;
    color: var(--lsr-primary-dark);
    background: var(--lsr-primary-light);
    font-weight: 600;
    white-space: nowrap;
}

    .input-group .btn-outline-secondary:hover {
        background: var(--lsr-primary);
        color: #fff;
    }

/* Select2 overrides to match the input sizing/style above */

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1.5px solid var(--lsr-border);
    border-radius: var(--lsr-radius-sm);
    display: flex;
    align-items: center;
    padding: 0 4px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 44px;
        color: var(--lsr-text);
        padding-left: 10px;
        padding-right: 28px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px;
    }

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--lsr-primary);
    box-shadow: 0 0 0 3px var(--lsr-primary-light);
}

.select2-container--open {
    z-index: 1060;
}

.select2-dropdown {
    border-radius: var(--lsr-radius-sm);
    border-color: var(--lsr-border);
    overflow: hidden;
    box-shadow: var(--lsr-shadow-soft);
    box-sizing: border-box;
    max-width: calc(100vw - 24px) !important;
}

.select2-results__options {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
}

.select2-results__option {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--lsr-primary);
}

/* Professional Selection Container (languages / hobbies) */

.custom-selection-box {
    background: #fbfdfe;
    border: 1.5px solid var(--lsr-border);
    border-radius: var(--lsr-radius-sm);
    padding: 16px 18px;
    transition: all 0.25s ease;
    min-height: 160px;
    height: auto;
}

    .custom-selection-box:hover {
        border-color: var(--lsr-primary);
        box-shadow: var(--lsr-shadow-soft);
    }

.modern-list label {
    margin-left: 8px;
    margin-right: 22px;
    cursor: pointer;
    font-weight: 500;
    color: var(--lsr-text);
    font-size: 0.94rem;
}

.modern-list input[type="radio"],
.modern-list input[type="checkbox"] {
    cursor: pointer;
    transform: scale(1.15);
    accent-color: var(--lsr-primary);
}

.field-subtitle {
    font-weight: 700;
    color: var(--lsr-text);
    margin-bottom: 12px;
    display: block;
    font-size: 0.88rem;
}

/* ============================================================
   Attachments / Authorized-person notice
   ============================================================ */

input[type="file"].form-control {
    padding: 8px 12px;
    line-height: 1.6;
}

.authorized-notice {
    color: #b3261e;
    font-weight: 700;
    font-size: 1rem;
    background-color: #fdf1ef;
    border: 1px dashed #f1b3ac;
    padding: 16px;
    border-radius: var(--lsr-radius-sm);
    text-align: center;
    margin-top: 24px;
    font-family: var(--lsr-font-ar);
}

/* ============================================================
   Acknowledgment / Signature
   ============================================================ */

.undertaking-box {
    background-color: #fbfdfe;
    border: 1.5px solid var(--lsr-border);
    border-radius: var(--lsr-radius-md);
    padding: 28px;
    margin-top: 8px;
    font-family: var(--lsr-font-ar);
}

.undertaking-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--lsr-text);
    text-align: right;
    margin-bottom: 25px;
    font-weight: 500;
}

.signature-wrapper {
    border: 2px dashed #cbd5e1;
    background: #fff;
    border-radius: var(--lsr-radius-sm);
    position: relative;
    width: 100%;
    height: 160px;
}

#signature-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.sig-actions {
    margin-top: 6px;
    text-align: right;
}

.btn-clear {
    font-size: 12px;
    color: var(--lsr-accent-dark);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 600;
}

#mapSearchInput {
    direction: rtl;
    text-align: right;
    font-family: var(--lsr-font-ar);
}

/* ============================================================
   Bottom navigation bar (Previous / Next / Save)
   ============================================================ */

.lsr-form-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 22px;
    padding-bottom: 30px;
    border-top: 1px solid var(--lsr-border);
    background: #fbfdfe;
}

.lsr-form-navigation-status {
    font-family: var(--lsr-font-ar);
    font-size: 0.9rem;
    color: var(--lsr-text-muted);
    font-weight: 600;
}

.lsr-form-navigation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: auto;
    margin-inline-start: auto;
    justify-content: flex-end;
}

.lsr-btn-prev,
.lsr-btn-next,
.lsr-btn-save,
.lsr-btn-save-another {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--lsr-font-latin);
    line-height: 1;
}

.lsr-btn-prev::before {
    font-family: 'Material Icons';
    content: 'arrow_back';
    font-size: 18px;
}

.lsr-btn-next::after {
    font-family: 'Material Icons';
    content: 'arrow_forward';
    font-size: 18px;
}

.lsr-btn-save::before {
    font-family: 'Material Icons';
    content: 'task_alt';
    font-size: 18px;
}

.lsr-btn-save-another::before {
    font-family: 'Material Icons';
    content: 'person_add';
    font-size: 18px;
}

.lsr-btn-prev {
    background-color: #fff;
    color: var(--lsr-text-muted);
    border: 1.5px solid var(--lsr-border);
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: var(--lsr-radius-sm);
    font-weight: 600;
    transition: all 0.25s ease;
}

    .lsr-btn-prev:hover {
        background-color: #f7f9fb;
        border-color: #cbd5e1;
        color: var(--lsr-text);
    }

.lsr-btn-next {
    background-color: var(--lsr-primary);
    color: #fff;
    border: none;
    padding: 10px 26px;
    font-size: 0.95rem;
    border-radius: var(--lsr-radius-sm);
    font-weight: 700;
    box-shadow: var(--lsr-shadow-soft);
    transition: background-color 0.25s ease, transform 0.15s ease;
}

    .lsr-btn-next:hover {
        background-color: var(--lsr-primary-dark);
        transform: translateY(-1px);
    }

.lsr-btn-save {
    background-color: var(--lsr-accent) !important;
    border: none !important;
    padding: 10px 28px !important;
    font-size: 0.95rem !important;
    border-radius: var(--lsr-radius-sm) !important;
    font-weight: 700 !important;
    width: auto !important;
    box-shadow: 0 10px 24px -10px rgba(232, 134, 60, 0.55);
    transition: background-color 0.25s ease, transform 0.15s ease;
}

    .lsr-btn-save:hover {
        background-color: var(--lsr-accent-dark) !important;
        transform: translateY(-1px);
    }

.lsr-btn-save-another {
    background-color: #fff !important;
    color: var(--lsr-primary-dark) !important;
    border: 1.5px solid var(--lsr-primary) !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: var(--lsr-radius-sm) !important;
    font-weight: 700 !important;
    width: auto !important;
    box-shadow: none;
    transition: background-color 0.25s ease, transform 0.15s ease, color 0.25s ease;
}

    .lsr-btn-save-another:hover {
        background-color: var(--lsr-primary) !important;
        color: #fff !important;
        transform: translateY(-1px);
    }

.lsr-hidden {
    display: none !important;
}

/* ============================================================
   Phone gate (entry / resume draft)
   ============================================================ */

.lsr-phone-gate {
    padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 56px) 48px;
}

.lsr-phone-gate-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.lsr-phone-gate-icon {
    font-family: 'Material Icons';
    font-size: 42px;
    color: var(--lsr-primary);
    margin-bottom: 12px;
    line-height: 1;
}

.lsr-phone-gate-title {
    margin: 0 0 10px;
    color: var(--lsr-primary-dark);
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--lsr-font-ar);
}

.lsr-phone-gate-text {
    margin: 0 0 22px;
    color: var(--lsr-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.lsr-phone-gate-input {
    text-align: center;
    font-size: 1.1rem !important;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.lsr-phone-gate-error {
    color: #d64545;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.lsr-phone-gate-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.lsr-choice-panel {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.lsr-choice-title {
    margin: 0 0 8px;
    color: var(--lsr-primary-dark);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--lsr-font-ar);
}

.lsr-choice-text {
    margin: 0 0 18px;
    color: var(--lsr-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.lsr-choice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    text-align: start;
}

.lsr-choice-item {
    display: block;
    width: 100%;
    border: 1px solid rgba(30, 58, 138, 0.18);
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: start;
}

.lsr-choice-item:hover,
.lsr-choice-item:focus {
    border-color: var(--lsr-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    outline: none;
}

.lsr-choice-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lsr-primary);
    background: rgba(30, 58, 138, 0.08);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 6px;
}

.lsr-choice-item-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--lsr-primary-dark);
    margin-bottom: 2px;
}

.lsr-choice-item-meta,
.lsr-choice-item-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--lsr-text-muted);
    line-height: 1.4;
}

.lsr-choice-new-btn {
    width: 100%;
    margin-bottom: 8px;
}

.lsr-choice-back-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(30, 58, 138, 0.25);
    color: var(--lsr-primary-dark);
    border-radius: 10px;
    padding: 10px 14px;
}

.lsr-attach-disabled {
    opacity: 0.55;
    filter: grayscale(0.35);
}

.lsr-attach-disabled input[type="file"] {
    cursor: not-allowed;
    pointer-events: none;
}

.lsr-wizard-main[hidden] {
    display: none !important;
}

/* ============================================================
   Parents step: Father / Mother switch
   ============================================================ */

.lsr-parent-switch {
    display: inline-flex;
    gap: 0;
    margin: 0 0 12px 0;
    padding: 4px;
    background: #f1f5f8;
    border: 1px solid var(--lsr-border);
    border-radius: 12px;
}

.lsr-parent-switch-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--lsr-text-muted);
    font-family: var(--lsr-font-ar);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 28px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

    .lsr-parent-switch-btn:hover {
        color: var(--lsr-primary-dark);
    }

    .lsr-parent-switch-btn.is-active {
        background: var(--lsr-primary);
        color: #fff;
        box-shadow: 0 6px 16px -8px rgba(15, 122, 138, 0.55);
    }

.lsr-parent-hint {
    margin: 0 0 22px 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(15, 122, 138, 0.08), rgba(232, 134, 60, 0.08));
    border: 1px dashed rgba(15, 122, 138, 0.35);
    color: var(--lsr-primary-dark);
    font-family: var(--lsr-font-ar);
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 600;
}

    .lsr-parent-hint span {
        display: inline-block;
        margin-top: 2px;
        color: var(--lsr-text-muted);
        font-weight: 500;
        font-size: 0.84rem;
        font-family: var(--lsr-font-latin);
    }

.lsr-parent-panel {
    display: none;
    animation: lsrFadeIn 0.25s ease;
}

    .lsr-parent-panel.is-active {
        display: block;
    }

/* ============================================================
   Footer - clearly separated from the wizard card
   ============================================================ */

.footer-Contianer {
    flex-shrink: 0;
    width: 100%;
    margin-top: 28px;
    padding: 18px 16px 24px;
    text-align: center;
    background: transparent;
}

.footer-Contianer .inner-row.footer {
    position: relative;
    margin: 0 auto;
    max-width: calc(100% - 24px);
    padding: 14px 20px;
    background: #0f7a8a;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--lsr-shadow-soft);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-Contianer .bg-pattern,
.footer-Contianer .bg-pattern .shader {
    display: none;
}

.footer-Contianer p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 992px) {
    .container {
        width: calc(100% - 16px);
        margin: 10px auto 0;
        border-radius: var(--lsr-radius-md);
        min-height: 0;
    }

    .footer-Contianer {
        margin-top: 18px;
        padding: 12px 10px 18px;
    }

    .footer-Contianer .inner-row.footer {
        max-width: calc(100% - 16px);
    }
}

@media (max-width: 768px) {
    .application-title {
        font-size: 1.4rem;
    }

    .lsr-stepper-item {
        width: 88px;
    }

        .lsr-stepper-item .step-title {
            font-size: 0.66rem;
        }

    .section-header {
        padding-left: 12px;
    }

        .section-header .title-en {
            font-size: 1rem;
        }

        .section-header .title-ar {
            font-size: 1.1rem;
        }

    .lsr-form-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .lsr-form-navigation-status {
        text-align: center;
    }

    .lsr-form-navigation-actions {
        margin-left: 0;
        margin-inline-start: 0;
        justify-content: stretch;
    }

        .lsr-form-navigation-actions button {
            flex: 1;
            justify-content: center;
        }
}

/* ============================================================
   Custom alert modal — fixed overlay only (never grows page height)
   ============================================================ */

.lsr-alert-root[hidden] {
    display: none !important;
}

.lsr-alert-root {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.lsr-alert-root.is-open {
    pointer-events: auto;
    opacity: 1;
}

.lsr-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 42, 53, 0.42);
}

.lsr-alert-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 32px));
    margin: 0;
    padding: 28px 24px 22px;
    border-radius: 16px;
    border: 1px solid var(--lsr-border);
    background: #fff;
    box-shadow: 0 24px 48px -20px rgba(15, 42, 53, 0.45);
    font-family: var(--lsr-font-ar);
    text-align: center;
    transform: translateY(6px);
    transition: transform 0.16s ease;
}

.lsr-alert-root.is-open .lsr-alert-dialog {
    transform: translateY(0);
}

.lsr-alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--lsr-accent);
}

.lsr-alert-icon[data-type="success"] {
    background: var(--lsr-primary);
}

.lsr-alert-icon[data-type="error"] {
    background: #d64545;
}

.lsr-alert-icon[data-type="info"] {
    background: var(--lsr-primary);
}

.lsr-alert-title {
    color: var(--lsr-primary-dark);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.lsr-alert-text {
    color: var(--lsr-text);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
    margin: 0 0 8px;
}

.lsr-alert-btn {
    appearance: none;
    border: none;
    border-radius: 10px;
    background-color: var(--lsr-primary);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(15, 122, 138, 0.65);
    font-family: var(--lsr-font-ar);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 28px;
    margin: 18px 0 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.lsr-alert-btn:hover {
    background-color: var(--lsr-primary-dark);
    transform: translateY(-1px);
}

.lsr-alert-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--lsr-primary-light);
}
