*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Tahoma, Arial, sans-serif;
}

body{
    background:#f7f8f6;
    color:#222;
    direction:rtl;
}

/* Header */

.app-header{
    max-width:1140px;
    margin:0 auto;
    position:relative;
    background:#fff;
    padding:20px 24px 18px;
    border-bottom:1px solid #e5e7eb;
}

.back-link{
    position:absolute;
    right:24px;
    top:50%;
    transform:translateY(-50%);
    background:#f1f3f2;
    color:#222;
    text-decoration:none;
    padding:10px 16px;
    border-radius:12px;
    font-size:14px;
}

.brand{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    text-align:center;
}

.brand-icon{
    font-size:38px;
}

.brand h1{
    font-size:34px;
    color:#2E7D32;
}

.brand p{
    font-size:14px;
    color:#666;
}

/* Page */

.register-page{
    max-width:760px;
    margin:30px auto;
    padding:0 16px;
}

.register-card{
    background:#fff;
    border-radius:20px;
    padding:24px;
    box-shadow:0 2px 12px rgba(0,0,0,.06);
}

.register-card h2{
    margin-bottom:8px;
    font-size:28px;
}

.register-subtitle{
    color:#666;
    margin-bottom:24px;
    line-height:1.6;
}

/* Form */

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}

.required{
    color:#d32f2f;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid #dcdcdc;
    border-radius:12px;
    padding:12px;
    font-size:15px;
    background:#fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:#2E7D32;
    box-shadow:0 0 0 3px rgba(46,125,50,.10);
}

.form-group textarea{
    min-height:120px;
    resize:vertical;
}

.name-note,
.phone-note,
.location-note{
    display:block;
    margin-top:6px;
    color:#777;
    font-size:13px;
    line-height:1.7;
}

.phone-field{
    display:flex;
    align-items:center;
    gap:10px;
}

.phone-field span{
    background:#f1f3f2;
    border:1px solid #ddd;
    border-radius:12px;
    padding:12px;
    white-space:nowrap;
}

.phone-field input{
    flex:1;
}

/* Location */

.location-btn{
    width:100%;
    border:1px solid #dcdcdc;
    background:#fff;
    color:#222;
    padding:12px;
    border-radius:12px;
    font-size:15px;
    cursor:pointer;
    text-align:center;
    font-weight:bold;
}

.location-btn:hover{
    background:#f7f8f6;
}

.location-done{
    border-color:#2E7D32;
    background:#eef8ef;
    color:#2E7D32;
}

/* Radio */

.radio-group{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:8px;
}

.radio-group label{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    margin:0;
    font-weight:normal;
    cursor:pointer;
    line-height:1.5;
}

.radio-group input[type="radio"]{
    width:auto;
    margin:0;
    flex:0 0 auto;
}

/* Upload */

.upload-box{
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:2px dashed #cfcfcf;
    border-radius:16px;
    padding:26px;
    cursor:pointer;
    text-align:center;
    font-weight:normal;
}


.store-image-preview{
    display:none;
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:18px;
    background:#fff;
    margin-bottom:8px;
}

.upload-box:hover{
    background:#f7f8f6;
    border-color:#2E7D32;
}

.upload-box input{
    display:none;
}

.upload-icon{
    font-size:34px;
}

/* Terms */

.terms-box{
    display:flex !important;
    align-items:flex-start;
    justify-content:flex-start;
    gap:10px;
    font-size:14px;
    line-height:1.7;
    margin:8px 0 14px;
    cursor:pointer;
    position:relative;
    z-index:20;
    user-select:none;
}

.terms-box input[type="checkbox"]{
    display:block !important;
    appearance:auto !important;
    -webkit-appearance:checkbox !important;
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    padding:0 !important;
    margin:5px 0 0 0 !important;
    border-radius:3px !important;
    flex:0 0 auto;
    position:relative;
    z-index:30;
    opacity:1 !important;
    pointer-events:auto !important;
    cursor:pointer;
}

.terms-box span{
    display:block;
    cursor:pointer;
    pointer-events:auto;
}

/* Messages */

#formMessage{
    font-size:14px;
    line-height:1.7;
    margin-bottom:12px;
}

.field-error{
    display:block;
    margin-top:6px;
    color:#d32f2f;
    font-size:13px;
}

.error-message{
    color:#d32f2f;
    background:#fff3f3;
    border:1px solid #ffd6d6;
    padding:10px 12px;
    border-radius:12px;
}

.success-message{
    color:#2E7D32;
    background:#eef8ef;
    border:1px solid #cde8cf;
    padding:10px 12px;
    border-radius:12px;
}

/* Button */

.primary-btn{
    width:100%;
    border:none;
    background:#2E7D32;
    color:#fff;
    padding:14px;
    border-radius:14px;
    font-size:17px;
    font-weight:bold;
    cursor:pointer;
    margin-top:10px;
    transition:.2s;
}

.primary-btn:hover{
    background:#256b2a;
}

/* Mobile */

@media (max-width:600px){

    .app-header{
        padding:18px 16px;
    }

    .back-link{
        right:16px;
        padding:8px 12px;
        font-size:13px;
    }

    .brand h1{
        font-size:28px;
    }

    .brand-icon{
        font-size:32px;
    }

    .register-page{
        margin:20px auto;
        padding:0 12px;
    }

    .register-card{
        padding:18px;
    }

    .register-card h2{
        font-size:24px;
    }

}
/* Global launch: English/LTR registration mode */
body.english-mode{
    direction:ltr;
}
body.english-mode .app-header,
body.english-mode .register-card,
body.english-mode input,
body.english-mode select,
body.english-mode textarea,
body.english-mode button{
    direction:ltr;
    text-align:left;
}
body.english-mode .brand{
    flex-direction:row;
}
body.english-mode .phone-field{
    direction:ltr;
}
