﻿/* ── Variables ───────────────────────────────────── */
:root {
    --gold: #cfb26b;
    --gold-lt: #d4ae58;
    --olive: #4a5c3a;
    --olive-dk: #2e3a24;
    --cream: #f7f3eb;
    --sand: #ede5d4;
    --sf-text: #2a2118;
    --muted: #7a6e5f;
    --err: #c0392b;
}

/* ── Page wrapper ────────────────────────────────── */
.sufara-page {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--cream);
    min-height: 100vh;
    direction: rtl;
    padding-bottom: 60px;
}

/* ── Hero ────────────────────────────────────────── */
.sf-hero {
    background: #406e5a;
    position: relative;
    overflow: hidden;
}

    .sf-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(184,151,58,.05) 30px, rgba(184,151,58,.05) 31px), repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(184,151,58,.05) 30px, rgba(184,151,58,.05) 31px);
    }

.sf-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    max-width: 780px;
    margin: 0 auto;
}

.sf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-logo {
    width: 52px;
    height: 52px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(184,151,58,.4);
}

.sf-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

    .sf-title span {
        color: var(--gold-lt);
        display: block;
        font-size: 13px;
        font-weight: 400;
        margin-top: 2px;
    }

.sf-badge {
    background: rgba(184,151,58,.2);
    border: 1px solid rgba(184,151,58,.4);
    color: var(--gold-lt);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Card ────────────────────────────────────────── */
.sf-container {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 20px;
}

.sf-card {
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(42,33,24,.1);
    overflow: hidden;
}

/* ── Card header ─────────────────────────────────── */
.sf-card-head {
    background: #fff;
    padding: 28px 32px 0;
    border-bottom: 2px solid var(--sand);
}

.sf-form-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.4;
}

.sf-form-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 16px;
}

/* ── Progress ────────────────────────────────────── */
.sf-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 0;
}

.sf-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .sf-step-dot .dot {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--sand);
        border: 2px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
        transition: all .3s;
    }

    .sf-step-dot .lbl {
        font-size: 11px;
        color: var(--muted);
        white-space: nowrap;
        transition: all .3s;
    }

    .sf-step-dot.active .dot {
        background: var(--gold);
        border-color: var(--gold);
        color: #fff;
        box-shadow: 0 0 0 4px rgba(184,151,58,.2);
    }

    .sf-step-dot.active .lbl {
        color: var(--gold);
        font-weight: 600;
    }

    .sf-step-dot.done .dot {
        background: var(--olive);
        border-color: var(--olive);
        color: #fff;
    }

    .sf-step-dot.done .lbl {
        color: var(--olive);
    }

.sf-step-line {
    height: 2px;
    width: 80px;
    background: var(--sand);
    margin-bottom: 20px;
    transition: background .3s;
}

    .sf-step-line.done {
        background: var(--olive);
    }

/* ── Section header ──────────────────────────────── */
.sf-sec-head {
    background: linear-gradient(135deg, var(--olive), var(--olive-dk));
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 -32px 20px;
}

/* ── Body / panels ───────────────────────────────── */
.sf-body {
    padding: 24px 32px 28px;
}

.sf-panel {
    display: none;
    animation: sfFadeIn .3s ease;
}

    .sf-panel.active {
        display: block;
    }

@keyframes sfFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Fields ──────────────────────────────────────── */
.sf-field {
    margin-bottom: 20px;
}

    .sf-field label {
        display: block;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--sf-text);
        margin-bottom: 8px;
        line-height: 1.5;
    }

        .sf-field label .req {
            color: var(--err);
        }

    .sf-field input[type=text],
    .sf-field input[type=email],
    .sf-field input[type=password],
    .sf-field input[type=tel],
    .sf-field textarea {
        width: 95% !important;
        padding: 10px 14px;
        border: 1.5px solid #ddd;
        border-radius: 8px;
        font-family: 'IBM Plex Sans Arabic', sans-serif;
        font-size: 14px;
        color: var(--sf-text);
        background: #fff;
        outline: none;
        direction: rtl;
        transition: border-color .2s, box-shadow .2s;
    }

        .sf-field input:focus, .sf-field textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(184,151,58,.15);
        }

        .sf-field input.sf-err, .sf-field textarea.sf-err {
            border-color: var(--err);
        }

    .sf-field textarea {
        resize: vertical;
        min-height: 90px;
        line-height: 1.6;
    }

/* ── Error msg ───────────────────────────────────── */
.sf-ferr {
    font-size: 12px;
    color: var(--err);
    margin-top: 5px;
    display: none;
}

    .sf-ferr.show {
        display: block;
    }

/* ── Radio / Checkbox ────────────────────────────── */
.sf-radio-grp, .sf-check-grp {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #e8e3da;
    background: var(--cream);
    transition: all .2s;
}

    .sf-opt:hover {
        border-color: var(--gold);
        background: #fdf9f0;
    }

    .sf-opt input {
        width: 18px;
        height: 18px;
        accent-color: var(--gold);
        flex-shrink: 0;
        margin-top: 1px;
        cursor: pointer;
    }

    .sf-opt span {
        font-size: 13.5px;
        color: var(--sf-text);
        line-height: 1.5;
    }

    .sf-opt.selected {
        border-color: var(--gold);
        background: #fdf7e8;
    }

/* ── Info box ────────────────────────────────────── */
.sf-info {
    background: #f0f5ec;
    border: 1px solid #c5d4b5;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 13.5px;
    color: var(--olive-dk);
    line-height: 1.7;
}

    .sf-info ul {
        margin: 8px 0 0;
        padding-right: 20px;
    }

        .sf-info ul li {
            margin-bottom: 4px;
        }

/* ── Nav buttons ─────────────────────────────────── */
.sf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-top: 1px solid var(--sand);
    background: var(--cream);
}

.sf-btn {
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.sf-btn-next {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 4px 12px rgba(184,151,58,.3);
}

    .sf-btn-next:hover {
        background: var(--gold-lt);
        transform: translateY(-1px);
    }

.sf-btn-back {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid #ddd;
}

    .sf-btn-back:hover {
        border-color: var(--muted);
        color: var(--sf-text);
    }

    .sf-btn-back:disabled {
        opacity: .3;
        cursor: not-allowed;
    }

.sf-btn-submit {
    background: var(--olive);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46,58,36,.3);
    padding: 10px 36px;
}

    .sf-btn-submit:hover {
        background: var(--olive-dk);
        transform: translateY(-1px);
    }

/* ── Req note ────────────────────────────────────── */
.sf-req-note {
    font-size: 12px;
    color: var(--err);
    padding: 6px 32px;
    background: #fff5f5;
}

/* ── Success ─────────────────────────────────────── */
.sf-success {
    display: none;
    padding: 60px 32px;
    text-align: center;
}

.sf-success-ico {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--olive), var(--olive-dk));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(46,58,36,.25);
}

.sf-success h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: 10px;
}

.sf-success p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.sf-ref-box {
    background: var(--sand);
    border-radius: 10px;
    padding: 12px 24px;
    margin: 20px auto;
    display: inline-block;
    font-size: 13px;
    color: var(--olive-dk);
    font-weight: 600;
}
.sf-validation-summary {
    background-color: #fdf2f2;
    border-right: 5px solid #de3545; 
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

    .sf-validation-summary h4 {
        color: #de3545;
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: bold;
    }

    .sf-validation-summary ul {
        margin: 0;
        padding-right: 20px; 
        color: #333;
    }

        .sf-validation-summary ul li {
            margin-bottom: 5px;
            font-size: 14px;
        }
.sf-field {
    position: relative;
}

.sf-pass-container {
    display: block;
    width: 95% !important;
}

    .sf-pass-container input {
        width: 100% !important;
        padding-left: 40px !important;
    }

/* التموضع الجديد والثابت للعين */
.toggle-password-icon {
    position: absolute;
    top: 45px;
    left: 7%;
    cursor: pointer;
    color: #a0a0a0;
    transition: color 0.2s;
    z-index: 9999 !important; 
}

    .toggle-password-icon:hover {
        color: #333;
    }