﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eef1f7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 24px 16px;
    font-family: inherit;
}

.register-card {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 20px;
    direction: rtl;
        overflow: hidden;
}

.card-header {
    background: #1e2d3d;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}

    .card-header svg {
        flex-shrink: 0;
    }

    .card-header h1 {
        color: #fff;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .card-header p {
        color: rgba(255,255,255,0.55);
        font-size: 12px;
        margin-top: 2px;
    }

.card-body {
    padding: 28px 32px 32px;
    padding-top: 0;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #8a94a6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f2f5;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

    .field label {
        font-size: 11.5px;
        font-weight: 500;
        color: #6b7280;
    }

    .field input,
    .field select,
    .field textarea {
        width: 100%;
        height: 42px;
        border: 1.5px solid #e5e7eb;
        border-radius: 10px;
        padding: 0 12px;
        font-size: 13px;
        color: #1f2937;
        background: #fff;
        outline: none;
        transition: border-color 0.18s, box-shadow 0.18s;
        -webkit-appearance: none;
        appearance: none;
    }

    .field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 12px center;
        padding-left: 32px;
    }

    .field textarea {
        height: 72px;
        padding: 10px 12px;
        resize: none;
    }

        .field input:focus,
        .field select:focus,
        .field textarea:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
        }

        .field input.input-error,
        .field select.input-error,
        .field textarea.input-error {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
        }

    .field input[type="password"] {
        letter-spacing: 2px;
    }

.text-danger {
    color: #ef4444;
    font-size: 11px;
}

/* File Upload */
.file-upload-area {
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    position: relative;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fafafa;
}

    .file-upload-area:hover {
        border-color: #3b82f6;
        background: #eff6ff;
    }

    .file-upload-area input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        height: 100% !important;
        border: none !important;
        box-shadow: none !important;
    }

    .file-upload-area svg {
        color: #9ca3af;
    }

    .file-upload-area .upload-text {
        font-size: 12px;
        color: #6b7280;
    }

    .file-upload-area .upload-hint {
        font-size: 11px;
        color: #9ca3af;
    }

    .file-upload-area .file-preview {
        max-height: 80px;
        border-radius: 6px;
        display: none;
    }

/* Physical card box */
.card-option-box {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
}

    .card-option-box label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: #374151;
        cursor: pointer;
        font-weight: 500;
    }

    .card-option-box input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #3b82f6;
        flex-shrink: 0;
        cursor: pointer;
    }

    .card-option-box .warning-note {
        margin-top: 8px;
        font-size: 11.5px;
        color: #dc2626;
        padding: 7px 10px;
        background: #fef2f2;
        border-radius: 7px;
        border: 1px solid #fecaca;
    }

/* Signature Pad */
.signature-wrap {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

    .signature-wrap canvas {
        display: block;
        width: 100%;
        height: 200px;
        cursor: crosshair;
        touch-action: none;
    }

.signature-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f9fafb;
    border-top: 1px solid #f0f2f5;
}

    .signature-toolbar span {
        font-size: 11px;
        color: #9ca3af;
    }

.sig-clear-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 11px;
    color: #6b7280;
    cursor: pointer;
    transition: 0.15s;
}

    .sig-clear-btn:hover {
        border-color: #ef4444;
        color: #ef4444;
        background: #fef2f2;
    }

/* Terms */
.terms-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

    .terms-row input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: #3b82f6;
        flex-shrink: 0;
        cursor: pointer;
    }

    .terms-row label {
        font-size: 12.5px;
        color: #374151;
    }

    .terms-row a {
        color: #3b82f6;
        text-decoration: none;
    }

        .terms-row a:hover {
            text-decoration: underline;
        }

/* Submit */
.submit-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.18s, transform 0.1s;
    margin-top: 4px;
}

    .submit-btn:hover {
        background: #1d4ed8;
    }

    .submit-btn:active {
        transform: scale(0.99);
    }

.section-gap {
    margin-bottom: 22px;
}

/* Divider */
.divider {
    height: 1px;
    background: #f0f2f5;
    margin: 22px 0;
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

    .modal-backdrop.open {
        display: flex;
    }

.modal-dialog {
    background: #fff;
    width: 340px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
}

    .modal-header h3 {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
    }

.modal-body {
    padding: 16px 20px;
    max-height: 280px;
    overflow-y: auto;
}

    .modal-body p {
        font-size: 13px;
        color: #374151;
        line-height: 1.8;
        margin-bottom: 10px;
    }

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f2f5;
    text-align: left;
}

.modal-close-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 7px 20px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* City disabled state */
.field select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .card-body {
        padding: 20px 18px 24px;
    }

    .card-header {
        padding: 18px 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }

    .col-span-3 {
        grid-column: span 2;
    }
}
.register-card {
    max-width: 850px;
    
    background: #fff;
    border-radius: 24px;
    overflow: hidden;

}


.card-header {
    padding: 25px 30px;
    background: linear-gradient(135deg,#3575f5,#5d9cff);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}


    .card-header h1 {
        margin: 0;
        font-size: 22px;
    }


    .card-header p {
        margin-top: 8px;
        opacity: .85;
        font-size: 13px;
    }


.card-body {
    padding: 30px;
}


.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #202A34;
    margin: 25px 0 15px;
    font-family: 'YekanBakhFaNum-light';
}


    .section-title::before {
        content: "";
        width: 5px;
        height: 22px;
        background: #3575f5;
        border-radius: 10px;
    }


.grid-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}


.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    transition: .2s;
}


    .field input:focus,
    .field select:focus,
    .field textarea:focus {
        border-color: #3575f5;
        box-shadow: 0 0 0 3px rgba(53,117,245,.12);
        outline: none;
    }


textarea {
    min-height: 110px;
    resize: none;
}


.divider {
    height: 1px;
    background: #eee;
    margin: 30px 0;
}


.document-box {
    background: #f8faff;
    border: 1px dashed #3575f5;
    border-radius: 18px;
    padding: 20px;
}


#signatureCanvas {
    width: 100%;
    height: 200px;
    background: white;
    border-radius: 12px;
}


.submit-btn {
    margin-top: 30px;
    width: 100%;
    height: 55px;
    border-radius: 15px;
    background: #3575f5;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}


    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(53,117,245,.3);
    }

.custom-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 14px 18px;
    border-radius: 14px;
    margin: 20px auto;
    max-width: 600px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(154, 52, 18, 0.08);
    animation: alertShow .35s ease;
}


.alert-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fb923c;
    color: white;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}


.alert-text {
    line-height: 1.8;
    font-family: 'YekanBakh-Regular';
}


@keyframes alertShow {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media(max-width:700px) {

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 20px;
    }
}

.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d9d9d9;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.step.active .step-circle {
    background: #3575f5;
}

.step-line {
    width: 70px;
    height: 3px;
    background: #ddd;
}

#step2 {
    display: none;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    margin: 20px 0;
}

.otp {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 25px;
    text-align: center;
}

    .otp:focus {
        outline: none;
        border-color: #3575f5;
    }

#timer {
    text-align: center;
    color: #777;
    margin-top: 10px;
}

#btnResend {
    display: none;
    margin: auto;
    margin-top: 10px;
}

.back-btn {
    margin-top: 15px;
    background: #ddd;
    color: #333;
}
