@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransansx/IRANSansX-Regular.a640ba2c1e0f.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransansx/IRANSansX-Medium.1855ffb6bc1a.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransansx/IRANSansX-DemiBold.bab42bfa84e0.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransansx/IRANSansX-Bold.a88cedf5e719.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    font-family: "IRANSansX", Tahoma, Arial, sans-serif;
    color: #0f172a;
    background: #f1f5f9;
}

* {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font: inherit;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc 45%, #ede9fe);
}

.account-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.account-page-wide .account-card {
    max-width: 680px;
}

.account-card {
    width: min(100%, 440px);
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.account-logo {
    display: block;
    width: 72px;
    margin: 8px auto 18px;
}

.account-card h1 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 25px;
}

.account-help {
    margin: 0 0 24px;
    color: #64748b;
    text-align: center;
    line-height: 1.9;
    font-size: 14px;
}

.account-back-link {
    display: inline-block;
    color: #0369a1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.field-error,
.form-alert-error {
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.7;
}

.field-error {
    margin-top: 5px;
}

.field-help {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.form-alert {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 10px;
}

.form-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.account-primary-button {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 11px;
    background: #0284c7;
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.account-primary-button:hover {
    background: #0369a1;
}

.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ========================================== */
/* Map-based location submission              */
/* ========================================== */
.location-picker-body {
    min-height: 100vh;
    background: #eef2f7;
}

.location-submission-page {
    width: min(1440px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px;
}

.location-submission-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.location-submission-header h1 {
    margin: 8px 0 6px;
    font-size: 25px;
}

.location-submission-header p {
    max-width: 880px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}

.location-submission-header img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.location-submission-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.location-map-card,
.location-details-card {
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.location-map-card {
    overflow: hidden;
}

.location-details-card {
    width: 100%;
    max-width: none;
    padding: 22px;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.location-details-card.is-locked {
    opacity: 0.58;
    filter: grayscale(0.2);
}

.location-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px;
}

.location-details-card .location-card-heading {
    padding: 0 0 18px;
}

.location-card-heading h2 {
    margin: 6px 0 0;
    font-size: 18px;
}

.location-step-badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 800;
}

.location-picker-map {
    width: 100%;
    min-height: 610px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    cursor: crosshair;
    direction: ltr;
}

.location-selection-status {
    margin: 14px 16px 16px;
    padding: 11px 13px;
    border: 1px dashed #94a3b8;
    border-radius: 11px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.8;
}

.location-selection-status.is-selected {
    border-style: solid;
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.location-selection-status.is-error {
    border-style: solid;
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

.location-secondary-button {
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.location-secondary-button:hover {
    background: #f8fafc;
}

.location-details-card fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 960px) {
    .location-submission-layout {
        grid-template-columns: 1fr;
    }

    .location-picker-map {
        min-height: 500px;
    }
}

@media (max-width: 640px) {
    .location-submission-page {
        padding: 10px;
    }

    .location-submission-header {
        padding: 15px;
    }

    .location-submission-header img {
        width: 48px;
        height: 48px;
    }

    .location-submission-header h1 {
        font-size: 21px;
    }

    .location-picker-map {
        min-height: 420px;
    }
}
