/* میزان معماری — registration form */

/* CTA banner ([mizan_register_cta]) */
.mz-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 0 2.5rem;
    padding: 1.75rem 2rem;
    background: #015599;
    color: #fff;
    border-radius: 8px;
}
.mz-cta-body {
    flex: 1 1 320px;
    min-width: 0;
}
.mz-cta-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .5rem;
}
.mz-cta-text {
    font-size: .875rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 .4rem;
}
.mz-cta-note {
    font-size: .8125rem;
    color: rgba(255, 255, 255, .7);
    margin: 0;
}
.mz-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: none;
    padding: .875rem 1.75rem;
    background: #fff;
    color: #015599;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .05em;
    border-radius: 6px;
    transition: background .2s, transform .2s;
}
.mz-cta-btn:hover {
    background: #e6f0f7;
    transform: translateY(-1px);
}

.mz-intro {
    max-width: 860px;
    margin: 0 auto 1.5rem;
    text-align: center;
}
.mz-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f2740;
    margin: 0 0 .75rem;
}
.mz-intro p {
    font-size: .9rem;
    line-height: 1.9;
    color: #475569;
    margin: 0 0 .4rem;
}
.mz-intro-note {
    color: #015599 !important;
}

/* Honeypot — hidden without being positioned off-canvas. A negative
   left/right offset becomes scrollable overflow in an RTL document (the
   scroll origin is on the right), which makes the whole page pan sideways. */
.mz-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Login / signup gate */
.mz-login {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.mz-login h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f2740;
    margin: 0 0 .75rem;
}
.mz-login-sub {
    font-size: .8125rem;
    line-height: 1.9;
    color: #64748b;
    margin: 0 0 1.5rem;
}
.mz-login .mz-submit {
    width: 100%;
    margin-top: .5rem;
}
.mz-login-foot {
    font-size: .75rem;
    text-align: center;
    margin: 1rem 0 0;
}
.mz-login-foot a {
    color: #015599;
}
.mz-login input[type="email"],
.mz-login input[type="password"] {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: .875rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    color: #1e293b;
}

.mz-form {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.mz-form .mz-section {
    border: 0;
    border-bottom: 1px dashed #e2e8f0;
    margin: 0 0 2rem;
    padding: 0 0 1.5rem;
}
.mz-form .mz-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}
.mz-form legend {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f2740;
    padding: 0 0 .625rem;
    width: 100%;
    border-bottom: 2px solid #015599;
    margin-bottom: 1.25rem;
}
.mz-subhead {
    font-size: 1rem;
    font-weight: 700;
    color: #015599;
    margin: 1.5rem 0 .75rem;
    padding-right: .625rem;
    border-right: 3px solid #015599;
}

.mz-field {
    margin-bottom: 1.25rem;
}
.mz-field > label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .375rem;
}
.mz-req {
    color: #dc2626;
}
.mz-field input[type="text"],
.mz-field input[type="email"],
.mz-field input[type="tel"],
.mz-field input[type="password"],
.mz-field select,
.mz-field textarea {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: .875rem;
    font-family: inherit;
    line-height: 1.8;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #fff;
    color: #1e293b;
}
.mz-field textarea {
    resize: vertical;
    min-height: 5.5rem;
}
.mz-field input:focus,
.mz-field select:focus,
.mz-field textarea:focus,
.mz-login input:focus {
    outline: none;
    border-color: #015599;
    box-shadow: 0 0 0 3px rgba(1, 85, 153, .1);
}
.mz-field input[type="file"] {
    width: 100%;
    font-size: .8125rem;
    padding: .5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    box-sizing: border-box;
}
.mz-field input[type="file"]::file-selector-button {
    font-family: inherit;
    font-size: .75rem;
    margin-left: .5rem;
    padding: .375rem .75rem;
    border: 1px solid #015599;
    border-radius: 4px;
    background: #015599;
    color: #fff;
    cursor: pointer;
}

.mz-hint {
    display: block;
    font-size: .75rem;
    color: #94a3b8;
    margin-top: .375rem;
    line-height: 1.7;
}

.mz-file-list {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    font-size: .75rem;
    color: #475569;
}
.mz-file-list li {
    padding: .25rem .5rem;
    background: #f1f5f9;
    border-radius: 4px;
    margin-bottom: .25rem;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}
.mz-file-list li.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.mz-check label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .875rem;
    line-height: 1.9;
    color: #334155;
    cursor: pointer;
}
.mz-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: .4rem;
    flex: none;
    accent-color: #015599;
}

.mz-field-error {
    display: none;
    font-size: .75rem;
    color: #dc2626;
    margin-top: .25rem;
}
.mz-field.mz-invalid .mz-field-error {
    display: block;
}
.mz-field.mz-invalid input,
.mz-field.mz-invalid select,
.mz-field.mz-invalid textarea {
    border-color: #dc2626;
    background: #fff5f5;
}

.mz-message {
    padding: .875rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: .875rem;
    line-height: 1.9;
    display: none;
}
.mz-message.mz-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.mz-message.mz-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.mz-progress {
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: none;
}
.mz-progress.is-active {
    display: block;
}
.mz-progress-bar {
    height: 100%;
    width: 0;
    background: #015599;
    transition: width .25s ease;
}

.mz-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.mz-submit {
    flex: 1 1 260px;
    padding: .875rem 1.5rem;
    background: #015599;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}
.mz-submit:hover {
    background: #01427a;
}
.mz-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.mz-reset {
    padding: .875rem 1.5rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: .9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}
.mz-reset:hover {
    background: #e2e8f0;
}

.mz-footnote {
    max-width: 860px;
    margin: 1.5rem auto 0;
    font-size: .8125rem;
    line-height: 2;
    color: #64748b;
}
.mz-footnote p {
    margin: 0 0 .5rem;
}

/* Admin detail view */
.mz-admin-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.mz-admin-col {
    flex: 1 1 420px;
    min-width: 320px;
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 12px;
}
.mz-admin-col h4 {
    margin: 14px 0 6px;
    font-size: 13px;
}
.mz-admin-section-title {
    margin: 10px 0 4px;
    font-weight: 600;
    color: #1d2327;
}
.mz-admin-files {
    margin: 0 0 8px 18px;
    list-style: disc;
}
.mz-admin-detail table.widefat td {
    word-break: break-word;
}

@media (max-width: 640px) {
    .mz-cta {
        padding: 1.5rem 1.25rem;
        align-items: flex-start;
    }
    .mz-cta-btn {
        width: 100%;
        justify-content: center;
    }
    .mz-form {
        padding: 1.25rem;
    }
    .mz-actions {
        flex-direction: column;
    }
    .mz-submit,
    .mz-reset {
        width: 100%;
    }
}