/* Shared static pages — about / contact (aligned with homepage-v2) */

:root {
    --zfs-yellow: #fbc42f;
    --zfs-yellow-soft: #fff9e8;
    --zfs-dark: #383838;
    --zfs-text: #333333;
    --zfs-muted: #777777;
    --zfs-border: #ececec;
    --zfs-radius: 16px;
    --zfs-bg: #fafafa;
}

.zf-static,
.zf-static * {
    box-sizing: border-box;
}

.zf-static {
    direction: rtl;
    text-align: right;
    font-family: yekan, Tahoma, Arial, sans-serif;
    color: var(--zfs-text);
    background: var(--zfs-bg);
    font-size: 16px;
    line-height: 2;
    padding: 0 0 56px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.zf-static-hide {
    display: none !important;
}

.zf-static__wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 20px 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.zf-static__wrap--wide {
    max-width: 1040px;
}

/* Hero */
.zf-static__hero {
    text-align: center;
    padding: 56px 20px 28px;
    margin: 0 0 4px;
    position: relative;
    z-index: 2;
    background: var(--zfs-bg);
}

.zf-static__hero h1 {
    font-size: clamp(1.55em, 2.4vw, 2em);
    font-weight: 800;
    color: var(--zfs-dark);
    margin: 0 0 14px;
    letter-spacing: -.2px;
    line-height: 1.35;
}

.zf-static__rule {
    width: 54px;
    height: 3px;
    background: var(--zfs-yellow);
    border-radius: 3px;
    margin: 0 auto 18px;
}

.zf-static__hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--zfs-muted);
    font-size: 1.02em;
    line-height: 1.9;
    padding: 0 4px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    white-space: normal;
}

/* Body text */
.zf-static__body {
    background: #fff;
    border: 1px solid var(--zfs-border);
    border-radius: var(--zfs-radius);
    padding: 28px 30px;
    margin-bottom: 28px;
}

.zf-static__body h2 {
    margin: 0 0 14px;
    font-size: 1.2em;
    font-weight: 800;
    color: var(--zfs-dark);
    line-height: 1.4;
}

.zf-static__body p {
    margin: 0 0 14px;
    color: var(--zfs-text);
    text-align: justify;
    text-justify: inter-word;
}

.zf-static__body p:last-child {
    margin-bottom: 0;
}

/* Feature row (about) */
.zf-static__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.zf-static__feature {
    background: #fff;
    border: 1px solid var(--zfs-border);
    border-radius: var(--zfs-radius);
    padding: 22px 18px;
    text-align: center;
    min-width: 0;
}

.zf-static__feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--zfs-yellow-soft);
    color: #9a7710;
    font-size: 18px;
}

.zf-static__feature h3 {
    margin: 0 0 6px;
    font-size: 1em;
    font-weight: 800;
    color: var(--zfs-dark);
    line-height: 1.4;
}

.zf-static__feature p {
    margin: 0;
    font-size: .92em;
    color: var(--zfs-muted);
    line-height: 1.7;
}

/* CTA */
.zf-static__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 24px;
}

.zf-static__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    min-width: 140px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95em;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.zf-static__btn--primary {
    background: var(--zfs-yellow);
    color: var(--zfs-dark) !important;
}

.zf-static__btn--primary:hover,
.zf-static__btn--primary:focus {
    background: #efb820;
    color: var(--zfs-dark) !important;
}

.zf-static__btn--ghost {
    background: #fff;
    border-color: var(--zfs-border);
    color: var(--zfs-dark) !important;
}

.zf-static__btn--ghost:hover,
.zf-static__btn--ghost:focus {
    border-color: var(--zfs-yellow);
    background: var(--zfs-yellow-soft);
    color: var(--zfs-dark) !important;
}

/* Contact layout — form primary (right in RTL), info secondary */
.zf-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 22px;
    align-items: start;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

.zf-contact__panel {
    background: #fff;
    border: 1px solid var(--zfs-border);
    border-radius: var(--zfs-radius);
    padding: 26px 24px;
    min-width: 0;
    position: relative;
    z-index: 1;
    margin: 0 !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.zf-contact__panel h2 {
    margin: 0 0 8px;
    font-size: 1.15em;
    font-weight: 800;
    color: var(--zfs-dark);
    line-height: 1.4;
}

.zf-contact__panel-lead {
    margin: 0 0 18px;
    color: var(--zfs-muted);
    font-size: .95em;
    line-height: 1.8;
}

.zf-contact__panel-lead a {
    color: var(--zfs-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--zfs-yellow);
    text-decoration: none;
}

.zf-contact__panel-lead a:hover {
    color: #000;
}

.zf-contact__field {
    margin-bottom: 12px;
}

.zf-contact__field .zf-contact__error {
    display: block;
    margin-bottom: 6px;
    color: #c0392b;
    font-size: .85em;
    font-weight: 600;
    line-height: 1.5;
}

.zf-contact__input,
.zf-contact__textarea,
.zf-static .form-control {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid var(--zfs-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--zfs-dark) !important;
    font-family: inherit !important;
    font-size: 16px !important; /* prevents iOS zoom on focus */
    padding: 12px 14px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .15s ease, background .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.zf-contact__input {
    height: 48px !important;
    line-height: 1.3 !important;
}

.zf-contact__textarea {
    min-height: 150px !important;
    height: auto !important;
    resize: vertical;
    line-height: 1.7 !important;
}

.zf-contact__input:focus,
.zf-contact__textarea:focus {
    border-color: var(--zfs-yellow) !important;
    background: #fffdf6 !important;
}

.zf-contact__submit {
    width: 100%;
    margin-top: 10px;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--zfs-yellow) !important;
    color: var(--zfs-dark) !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    font-size: 1em !important;
    min-height: 50px;
    cursor: pointer;
    transition: background .15s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
}

.zf-contact__submit:hover,
.zf-contact__submit:focus {
    background: #efb820 !important;
    color: var(--zfs-dark) !important;
}

.zf-contact__submit:disabled {
    opacity: .65;
    cursor: default;
}

.zf-contact__alert {
    display: block;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--zfs-yellow-soft);
    color: #8a6d12;
    font-weight: 700;
    text-align: center;
    line-height: 1.7;
}

.zf-contact__info-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zf-contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
}

.zf-contact__info-item:first-child {
    padding-top: 2px;
}

.zf-contact__info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.zf-contact__info-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--zfs-yellow-soft);
    color: #9a7710;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zf-contact__info-label {
    display: block;
    font-size: .78em;
    font-weight: 700;
    color: var(--zfs-muted);
    margin-bottom: 2px;
}

.zf-contact__info-value {
    display: block;
    color: var(--zfs-dark);
    font-weight: 700;
    word-break: break-word;
    line-height: 1.6;
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}

.zf-contact__info-value--text {
    direction: rtl;
    text-align: right;
}

.zf-contact__info-value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.zf-contact__info-value a:hover {
    color: #000;
    border-bottom-color: var(--zfs-yellow);
}

/* Tablet */
@media (max-width: 991px) {
    .zf-static__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .zf-static__feature {
        padding: 18px 12px;
    }

    .zf-contact__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* فرم اول، اطلاعات تماس بعد — بدون جابجایی لایه‌ای */
    .zf-contact__panel--form {
        order: 1;
    }

    .zf-contact__panel--info {
        order: 2;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .zf-static {
        font-size: 15px;
        /* فضای کافی برای منوی پایین موبایل + دکمه چت */
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    }

    .zf-static__wrap,
    .zf-static__wrap--wide {
        padding: 0 14px 8px;
    }

    .zf-static__hero {
        padding: 28px 14px 20px;
        margin-bottom: 12px;
        background: var(--zfs-bg);
    }

    .zf-static__hero h1 {
        font-size: 1.45em;
        margin-bottom: 10px;
    }

    .zf-static__rule {
        margin-bottom: 14px;
    }

    .zf-static__hero p {
        font-size: .98em;
        line-height: 1.85;
    }

    .zf-static__body {
        padding: 18px 16px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .zf-static__body h2 {
        font-size: 1.08em;
        margin-bottom: 10px;
    }

    .zf-static__body p {
        margin-bottom: 12px;
        text-align: right;
    }

    .zf-static__features {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .zf-static__feature {
        display: grid;
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 2px;
        text-align: right;
        padding: 14px 14px;
        align-items: center;
    }

    .zf-static__feature-icon {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .zf-static__feature h3 {
        margin: 0;
        font-size: .98em;
    }

    .zf-static__feature p {
        font-size: .88em;
        line-height: 1.6;
    }

    .zf-static__cta {
        flex-direction: column;
        gap: 8px;
        margin: 4px 0 12px;
    }

    .zf-static__btn {
        width: 100%;
        min-width: 0;
    }

    .zf-contact__panel {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .zf-contact__panel h2 {
        font-size: 1.08em;
    }

    .zf-contact__panel-lead {
        margin-bottom: 14px;
        font-size: .92em;
    }

    .zf-contact__field {
        margin-bottom: 10px;
    }

    .zf-contact__info-item {
        padding: 12px 0;
        gap: 10px;
    }

    .zf-contact__info-icon {
        width: 38px;
        height: 38px;
    }

    .zf-contact__submit {
        min-height: 48px;
    }
}

/* Terms acceptance checkbox (login / business register) */
.zf-terms-accept {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    direction: rtl;
    text-align: right;
    margin: 12px 0 4px;
    font-size: 13px;
    line-height: 1.7;
    color: #383838;
}

.zf-terms-accept input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #fbc42f;
    cursor: pointer;
}

.zf-terms-accept label,
.zf-terms-accept .zf-terms-accept__text {
    flex: 1;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.zf-terms-accept a {
    color: #b8860b;
    font-weight: 700;
    text-decoration: underline;
}

.zf-terms-accept a:hover,
.zf-terms-accept a:focus {
    color: #8a6500;
}

/* Very small phones */
@media (max-width: 380px) {
    .zf-static__wrap,
    .zf-static__wrap--wide {
        padding: 0 12px;
    }

    .zf-static__hero {
        padding: 28px 12px 18px;
    }

    .zf-static__hero h1 {
        font-size: 1.35em;
    }
}

/* Desktop polish — فقط دسکتاپ واقعی */
@media (min-width: 992px) {
    .zf-contact__panel--info {
        position: sticky;
        top: 88px;
        align-self: start;
    }
}

@media (max-width: 991px) {
    .zf-contact__panel--info {
        position: static !important;
        top: auto !important;
    }
}
