/* =========================================================
   NIMA ZAHEDI — CONTACT
   Cinematic Editorial Contact Page
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    background: #090807 !important;
}

body.nz-contact-preview {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    overflow-x: hidden;

    direction: rtl;

    background:
        radial-gradient(
            circle at 18% 48%,
            rgba(151, 88, 61, 0.06),
            transparent 31%
        ),
        #090807 !important;

    color: #eee9e3;

    font-family: "fnum", Tahoma, Arial, sans-serif;
}

.nz-contact-preview *,
.nz-contact-preview *::before,
.nz-contact-preview *::after {
    box-sizing: border-box;
}

.nz-contact-preview a {
    color: inherit;
    text-decoration: none;
}

.nz-contact-preview button,
.nz-contact-preview input,
.nz-contact-preview textarea {
    font: inherit;
}

.nz-contact-preview img {
    display: block;
}
/* =========================================================
   PAGE
   ========================================================= */

.nz-contact-page {
    width: min(1320px, calc(100% - 52px));

    min-height: 100vh;

    margin-right: auto;
    margin-left: auto;

    display: grid;

    grid-template-rows:
        64px
        minmax(0, 1fr)
        44px;
}


/* =========================================================
   HEADER
   ========================================================= */

.nz-contact-header {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 24px;

    direction: ltr;

    border-bottom: 1px solid rgba(238, 233, 227, 0.09);
}


/* =========================================================
   BRAND
   ========================================================= */

.nz-contact-brand {
    justify-self: start;

    display: flex;
    align-items: center;

    gap: 10px;

    direction: ltr;
}

.nz-contact-brand-logo {
    width: 40px !important;
    max-width: 40px !important;

    height: 40px !important;
    max-height: 40px !important;

    margin: 0 !important;

    object-fit: contain !important;
}

.nz-contact-brand-divider {
    width: 1px;
    height: 22px;

    background: rgba(158, 94, 69, 0.34);
}

.nz-contact-brand-copy {
    display: flex;
    flex-direction: column;

    gap: 1px;
}

.nz-contact-brand-copy strong {
    direction: rtl;

    white-space: nowrap;

    font-size: 11px;
    font-weight: 400;

    color: #e8e2dc;
}

.nz-contact-brand-copy small {
    direction: ltr;

    white-space: nowrap;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;

    letter-spacing: 2.5px;

    color: #766d66;
}


/* =========================================================
   HEADER META
   ========================================================= */

.nz-contact-header-meta {
    justify-self: center;

    display: flex;
    align-items: center;

    gap: 9px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;

    letter-spacing: 2.7px;

    color: #8f5843;
}

.nz-contact-header-meta i {
    width: 24px;
    height: 1px;

    background: rgba(158, 94, 69, 0.4);
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.nz-contact-language {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 8px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 7px;

    letter-spacing: 1.4px;

    color: #655e58;
}

.nz-contact-language .is-active {
    color: #e8e2dc;
}

.nz-contact-language i {
    width: 19px;
    height: 1px;

    background: rgba(238, 233, 227, 0.18);
}


/* =========================================================
   MAIN
   ========================================================= */

.nz-contact-main {
    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;

    padding: 22px 0;
}


/* =========================================================
   MASTER PANEL
   ========================================================= */

.nz-contact-panel {
    position: relative;

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(320px, 0.82fr)
        minmax(0, 1.18fr);

    direction: ltr;

    overflow: hidden;

    border: 1px solid rgba(238, 233, 227, 0.11);

    background:
        linear-gradient(
            115deg,
            rgba(158, 94, 69, 0.045),
            transparent 38%
        ),
        rgba(14, 12, 11, 0.82);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.16);
}

.nz-contact-panel::before {
    content: "";

    position: absolute;
    z-index: 5;

    top: -1px;
    left: -1px;

    width: 82px;
    height: 2px;

    background: #9e5e45;
}

.nz-contact-panel::after {
    content: "";

    position: absolute;
    z-index: 5;

    right: -1px;
    bottom: -1px;

    width: 82px;
    height: 2px;

    background: rgba(158, 94, 69, 0.65);
}


/* =========================================================
   IDENTITY COLUMN
   ========================================================= */

.nz-contact-identity {
    min-width: 0;

    padding: 20px 24px;

    display: grid;

    grid-template-rows:
        22px
        minmax(0, 1fr)
        25px;

    direction: ltr;

    border-right: 1px solid rgba(238, 233, 227, 0.09);

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(158, 94, 69, 0.075),
            transparent 38%
        ),
        #0c0a09;
}


/* =========================================================
   IDENTITY META
   ========================================================= */

.nz-contact-identity-meta {
    display: flex;
    align-items: center;

    gap: 9px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;

    letter-spacing: 2.5px;

    color: #9e5e45;
}

.nz-contact-identity-meta i {
    width: 30px;
    height: 1px;

    background: rgba(158, 94, 69, 0.45);
}


/* =========================================================
   IDENTITY CONTENT
   ========================================================= */

.nz-contact-identity-content {
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 7px 16px 10px;

    direction: rtl;
}


/* =========================================================
   EMBLEM
   ========================================================= */

.nz-contact-emblem {
    position: relative;

    width: 190px;
    height: 190px;

    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nz-contact-emblem::before,
.nz-contact-emblem::after {
    content: "";

    position: absolute;

    background: rgba(158, 94, 69, 0.13);
}

.nz-contact-emblem::before {
    top: 50%;
    left: -28px;

    width: calc(100% + 56px);
    height: 1px;
}

.nz-contact-emblem::after {
    top: -28px;
    left: 50%;

    width: 1px;
    height: calc(100% + 56px);
}

.nz-contact-orbit {
    position: absolute;

    top: 50%;
    left: 50%;

    aspect-ratio: 1;

    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.nz-contact-orbit-outer {
    width: 188px;

    border: 1px solid rgba(158, 94, 69, 0.23);
}

.nz-contact-orbit-inner {
    width: 146px;

    border: 1px solid rgba(158, 94, 69, 0.11);
}

.nz-contact-emblem img {
    position: relative;
    z-index: 2;

    width: 138px !important;
    max-width: 138px !important;

    height: 138px !important;
    max-height: 138px !important;

    margin: 0 !important;

    object-fit: contain !important;
}


/* =========================================================
   INTRO
   ========================================================= */

.nz-contact-intro {
    text-align: right;
}

.nz-contact-eyebrow {
    display: block;

    margin-bottom: 5px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;

    letter-spacing: 2.8px;

    color: #9e5e45;
}

.nz-contact-intro h1 {
    margin: 0;

    font-size: 35px;
    font-weight: 400;
    line-height: 1.35;

    color: #f2ede7;
}

.nz-contact-intro p {
    max-width: 390px;

    margin: 5px 0 0;

    font-size: 9px;
    line-height: 1.85;

    color: #918880;
}


/* =========================================================
   PLATFORMS
   ========================================================= */

.nz-contact-platforms {
    margin-top: 15px;
    padding-top: 12px;

    border-top: 1px solid rgba(238, 233, 227, 0.075);
}

.nz-contact-platforms-label {
    display: block;

    margin-bottom: 8px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;

    letter-spacing: 2.4px;

    color: #755044;
}

.nz-contact-platform-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 7px;

    letter-spacing: 1px;

    color: #aaa19a;
}

.nz-contact-platform-list i {
    width: 16px;
    height: 1px;

    background: rgba(158, 94, 69, 0.4);
}


/* =========================================================
   IDENTITY FOOTER
   ========================================================= */

.nz-contact-identity-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    white-space: nowrap;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 4px;

    letter-spacing: 1.7px;

    color: #69615b;
}

.nz-contact-identity-footer i {
    width: 12px;
    height: 1px;

    background: rgba(158, 94, 69, 0.42);
}


/* =========================================================
   FORM COLUMN
   ========================================================= */

.nz-contact-form-column {
    min-width: 0;

    padding:
        clamp(28px, 3.4vw, 45px)
        clamp(32px, 4vw, 55px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    direction: rtl;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.nz-contact-form-header {
    padding-bottom: 16px;
    margin-bottom: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    border-bottom: 1px solid rgba(238, 233, 227, 0.09);
}

.nz-contact-form-header > div {
    display: flex;
    align-items: flex-start;

    gap: 12px;
}

.nz-contact-form-index {
    margin-top: 3px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 6px;

    color: #9e5e45;
}

.nz-contact-form-kicker {
    display: block;

    margin-bottom: 4px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;

    letter-spacing: 2.7px;

    color: #81503e;
}

.nz-contact-form-header h2 {
    margin: 0;

    font-size: 25px;
    font-weight: 400;
    line-height: 1.4;

    color: #eee9e3;
}

.nz-contact-form-status {
    direction: ltr;

    white-space: nowrap;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;

    letter-spacing: 2.2px;

    color: #716760;
}


/* =========================================================
   NOTICE
   ========================================================= */

.nz-contact-notice {
    margin-bottom: 14px;
    padding: 9px 12px;

    border: 1px solid rgba(238, 233, 227, 0.08);

    font-size: 8px;
    line-height: 1.7;
}

.nz-contact-notice-success {
    border-right: 2px solid #9e5e45;

    color: #c8beb6;

    background: rgba(158, 94, 69, 0.055);
}

.nz-contact-notice-error {
    border-right: 2px solid #a85e55;

    color: #c8aaa5;

    background: rgba(168, 94, 85, 0.05);
}


/* =========================================================
   FORM
   ========================================================= */

.nz-contact-form {
    display: grid;

    gap: 14px;
}

.nz-contact-fields-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}


/* =========================================================
   FIELD
   ========================================================= */

.nz-contact-field {
    display: grid;

    gap: 6px;
}

.nz-contact-field > span {
    display: flex;
    align-items: center;

    gap: 4px;

    font-size: 7px;

    color: #817870;
}

.nz-contact-field em {
    font-style: normal;

    color: #9e5e45;
}

.nz-contact-field input,
.nz-contact-field textarea {
    width: 100%;

    margin: 0;

    outline: 0;

    border: 1px solid rgba(238, 233, 227, 0.095);
    border-radius: 0;

    background: rgba(255, 255, 255, 0.025);

    color: #e8e2dc;

    caret-color: #b27154;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.nz-contact-field input {
    height: 45px;

    padding: 0 14px;
}

.nz-contact-field textarea {
    min-height: 118px;
    max-height: 150px;

    padding: 12px 14px;

    resize: vertical;

    line-height: 1.8;
}

.nz-contact-field input::placeholder,
.nz-contact-field textarea::placeholder {
    color: #5e5752;

    opacity: 1;
}

.nz-contact-field input:hover,
.nz-contact-field textarea:hover {
    border-color: rgba(158, 94, 69, 0.26);
}

.nz-contact-field input:focus,
.nz-contact-field textarea:focus {
    border-color: rgba(177, 105, 75, 0.62);

    background: rgba(158, 94, 69, 0.035);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.nz-contact-form-actions {
    margin-top: 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.nz-contact-submit {
    min-width: 145px;
    height: 43px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid #9e5e45;

    background: #9e5e45;

    color: #fff9f4;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nz-contact-submit span {
    font-size: 9px;
}

.nz-contact-submit svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nz-contact-submit:hover {
    border-color: #b56c4e;

    background: #b56c4e;

    transform: translateY(-1px);
}

.nz-contact-submit:focus-visible {
    outline: 2px solid rgba(181, 108, 78, 0.48);
    outline-offset: 3px;
}

.nz-contact-required {
    font-size: 6px;

    color: #645c56;
}


/* =========================================================
   FOOTER
   ========================================================= */

.nz-contact-footer {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 20px;

    direction: ltr;

    border-top: 1px solid rgba(238, 233, 227, 0.09);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 6px;

    color: #625b56;
}

.nz-contact-footer-signature {
    font-size: 5px;

    letter-spacing: 2px;

    color: #504a46;
}

.nz-contact-footer a {
    justify-self: end;

    direction: rtl;

    font-family: "fnum", Tahoma, Arial, sans-serif;

    font-size: 7px;

    color: #817870;

    transition: color 0.2s ease;
}

.nz-contact-footer a:hover {
    color: #eee9e3;
}


/* =========================================================
   ADMIN BAR
   ========================================================= */

@media (min-width: 783px) {

    body.admin-bar.nz-contact-preview,
    body.admin-bar.nz-contact-preview .nz-contact-page {
        min-height: calc(100vh - 32px);
    }

}


/* =========================================================
   DESKTOP VIEWPORT FIT
   ========================================================= */

@media (min-width: 901px) {

    body.nz-contact-preview {
        overflow-y: hidden;
    }

    .nz-contact-page {
        height: 100vh;
    }

    body.admin-bar.nz-contact-preview .nz-contact-page {
        height: calc(100vh - 32px);
    }

}


/* =========================================================
   SHORT DESKTOP
   ========================================================= */

@media (min-width: 901px) and (max-height: 760px) {

    .nz-contact-page {
        grid-template-rows:
            54px
            minmax(0, 1fr)
            36px;
    }

    .nz-contact-main {
        padding: 13px 0;
    }

    .nz-contact-panel {
        grid-template-columns:
            minmax(285px, 0.78fr)
            minmax(0, 1.22fr);
    }

    .nz-contact-identity {
        padding: 14px 19px;
    }

    .nz-contact-emblem {
        width: 145px;
        height: 145px;

        margin-bottom: 8px;
    }

    .nz-contact-orbit-outer {
        width: 145px;
    }

    .nz-contact-orbit-inner {
        width: 110px;
    }

    .nz-contact-emblem img {
        width: 105px !important;
        max-width: 105px !important;

        height: 105px !important;
        max-height: 105px !important;
    }

    .nz-contact-intro h1 {
        font-size: 29px;
    }

    .nz-contact-intro p {
        font-size: 8px;
        line-height: 1.7;
    }

    .nz-contact-platforms {
        margin-top: 9px;
        padding-top: 8px;
    }

    .nz-contact-form-column {
        padding:
            18px
            clamp(27px, 3.5vw, 44px);
    }

    .nz-contact-form-header {
        padding-bottom: 10px;
        margin-bottom: 11px;
    }

    .nz-contact-form {
        gap: 10px;
    }

    .nz-contact-field input {
        height: 39px;
    }

    .nz-contact-field textarea {
        min-height: 88px;
        max-height: 105px;
    }

    .nz-contact-submit {
        height: 39px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    body.nz-contact-preview {
        overflow-y: auto;
    }

    .nz-contact-page {
        width: min(760px, calc(100% - 32px));

        min-height: 100svh;

        display: flex;
        flex-direction: column;
    }

    .nz-contact-header {
        min-height: 62px;

        grid-template-columns:
            1fr
            auto;
    }

    .nz-contact-header-meta {
        display: none;
    }

    .nz-contact-main {
        display: block;

        padding: 25px 0;
    }

    .nz-contact-panel {
        display: flex;
        flex-direction: column;

        direction: rtl;
    }

    .nz-contact-form-column {
        order: 1;

        padding: 30px;
    }

    .nz-contact-identity {
        order: 2;

        min-height: 450px;

        border-top: 1px solid rgba(238, 233, 227, 0.09);
        border-right: 0;
    }

    .nz-contact-footer {
        min-height: 48px;

        margin-top: auto;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .nz-contact-page {
        width: calc(100% - 24px);
    }

    .nz-contact-header {
        min-height: 56px;
    }

    .nz-contact-brand-logo {
        width: 37px !important;
        max-width: 37px !important;

        height: 37px !important;
        max-height: 37px !important;
    }

    .nz-contact-brand-copy strong {
        font-size: 10px;
    }

    .nz-contact-brand-copy small {
        display: none;
    }

    .nz-contact-main {
        padding: 18px 0 22px;
    }

    .nz-contact-form-column {
        padding: 22px 17px;
    }

    .nz-contact-form-header {
        align-items: flex-start;
    }

    .nz-contact-form-status {
        display: none;
    }

    .nz-contact-form-header h2 {
        font-size: 22px;
    }

    .nz-contact-fields-row {
        grid-template-columns: 1fr;
    }

    .nz-contact-field input {
        height: 44px;
    }

    .nz-contact-field textarea {
        min-height: 125px;
    }

    .nz-contact-form-actions {
        align-items: flex-end;
        flex-direction: column;

        gap: 9px;
    }

    .nz-contact-submit {
        width: 100%;
    }

    .nz-contact-identity {
        min-height: 390px;

        padding: 16px;
    }

    .nz-contact-emblem {
        width: 160px;
        height: 160px;
    }

    .nz-contact-orbit-outer {
        width: 160px;
    }

    .nz-contact-orbit-inner {
        width: 123px;
    }

    .nz-contact-emblem img {
        width: 118px !important;
        max-width: 118px !important;

        height: 118px !important;
        max-height: 118px !important;
    }

    .nz-contact-footer {
        min-height: 56px;

        grid-template-columns:
            1fr
            auto;
    }

    .nz-contact-footer-signature {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .nz-contact-page {
        width: calc(100% - 20px);
    }

    .nz-contact-brand-divider,
    .nz-contact-brand-copy {
        display: none;
    }

    .nz-contact-identity-content {
        padding-right: 5px;
        padding-left: 5px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .nz-contact-submit,
    .nz-contact-field input,
    .nz-contact-field textarea,
    .nz-contact-footer a {
        transition: none;
    }

}
/* =========================================================
   ENGLISH / LTR — scoped to the translated Contact page
   Persian layout and existing responsive ordering remain intact.
   ========================================================= */

.nz-contact-page[lang="en"] .nz-contact-identity-content,
.nz-contact-page[lang="en"] .nz-contact-form-column,
.nz-contact-page[lang="en"] .nz-contact-intro,
.nz-contact-page[lang="en"] .nz-contact-form,
.nz-contact-page[lang="en"] .nz-contact-field,
.nz-contact-page[lang="en"] .nz-contact-notice {
    direction: ltr;
    text-align: left;
}

.nz-contact-page[lang="en"] .nz-contact-intro,
.nz-contact-page[lang="en"] .nz-contact-form-header h2,
.nz-contact-page[lang="en"] .nz-contact-field > span,
.nz-contact-page[lang="en"] .nz-contact-required,
.nz-contact-page[lang="en"] .nz-contact-footer a {
    direction: ltr;
    text-align: left;
}

.nz-contact-page[lang="en"] .nz-contact-field input,
.nz-contact-page[lang="en"] .nz-contact-field textarea {
    direction: ltr;
    text-align: left;
}

.nz-contact-page[lang="en"] .nz-contact-intro,
.nz-contact-page[lang="en"] .nz-contact-form-column {
    font-family: Georgia, "Times New Roman", serif;
}

.nz-contact-page[lang="en"] .nz-contact-footer a {
    font-family: Georgia, "Times New Roman", serif;
}

.nz-contact-page[lang="en"] .nz-contact-language a {
    color: inherit;
    text-decoration: none;
}

.nz-contact-page[lang="en"] .nz-contact-language a:hover,
.nz-contact-page[lang="en"] .nz-contact-language a:focus-visible {
    color: #e8e2dc;
}

.nz-contact-page[lang="en"] .nz-contact-intro p,
.nz-contact-page[lang="en"] .nz-contact-form-header h2 {
    overflow-wrap: anywhere;
}
