@import url('https://fonts.bunny.net/css?family=vazirmatn:400,500,600,700,800,900&display=swap');

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 12%, rgba(184, 146, 75, .14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6f7f5 48%, #ece8df 100%);
    color: #172033;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(18, 50, 74, .06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(18, 50, 74, .05) 1px, transparent 1px);
    background-size: 96px 96px;
    opacity: .45;
}

.contact-page {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 174px;
    height: auto;
    max-height: 88px;
    object-fit: contain;
    filter:
        drop-shadow(1px 0 0 rgba(255, 255, 255, .95))
        drop-shadow(-1px 0 0 rgba(255, 255, 255, .95))
        drop-shadow(0 1px 0 rgba(255, 255, 255, .95))
        drop-shadow(0 -1px 0 rgba(255, 255, 255, .95));
}

.brand strong {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.brand span span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 500;
}

.main-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-inline: auto;
    padding: 0;
}

.main-menu a,
.main-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    color: rgba(248, 253, 255, .86);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.menu-group {
    position: relative;
}

.menu-group summary {
    cursor: pointer;
    list-style: none;
}

.menu-group summary::-webkit-details-marker {
    display: none;
}

.submenu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 5;
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 38px rgba(2, 22, 34, .22);
}

.submenu a {
    justify-content: flex-start;
    color: #46586d;
}

.nav-toggle,
.mobile-menu-button {
    display: none;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.button {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .72);
    color: #172033;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.button.primary {
    border-color: rgba(23, 107, 135, .45);
    background: #176b87;
    color: #fff;
}

.contact-hero {
    max-width: 820px;
    margin: 60px auto 34px;
    color: #111827;
    text-align: center;
}

.contact-hero span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d8ddd5;
    border-radius: 999px;
    background: #ffffff;
    color: #12324a;
    font-size: 12px;
    font-weight: 900;
}

.contact-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.35;
}

.contact-hero p {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
    font-weight: 800;
    line-height: 2;
}

.contact-alert {
    max-width: 920px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 900;
}

.contact-alert-success {
    background: #d8f3e7;
    color: #176542;
}

.contact-alert-danger {
    background: #fde2e2;
    color: #9d2f2f;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: 18px;
    align-items: start;
}

.contact-info-panel,
.contact-form-panel {
    border: 1px solid #d8ddd5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 70px rgba(17, 24, 39, .1);
}

.contact-info-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.contact-info-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    background: #f8fafc;
}

.contact-info-card span {
    color: #8a6a2f;
    font-size: 12px;
    font-weight: 900;
}

.contact-info-card a,
.contact-info-card strong {
    color: #102138;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.8;
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #cfd8df;
    border-radius: 8px;
    background: #fff;
    color: #12324a;
    font-weight: 900;
    text-decoration: none;
}

.contact-form-panel {
    padding: 24px;
}

.contact-form-panel h2 {
    margin: 0;
    color: #102138;
    font-size: 26px;
    font-weight: 900;
}

.contact-form-panel p {
    margin: 8px 0 20px;
    color: #647084;
    font-weight: 700;
    line-height: 2;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
}

.contact-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    width: 100%;
    margin-bottom: 0;
    color: #102138;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.contact-form input,
.contact-form textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border: 1px solid #cfd9e3;
    border-radius: 8px;
    background: #fff;
    color: #102138;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    direction: rtl;
    text-align: right;
}

.contact-form input[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.contact-form input {
    min-height: 46px;
    padding: 0 12px;
}

.contact-form textarea {
    resize: vertical;
    padding: 12px;
    line-height: 1.9;
}

.contact-form small {
    display: block;
    margin-top: 6px;
    color: #b02a37;
    font-weight: 800;
}

.contact-actions {
    display: flex;
    justify-content: flex-start;
}

.contact-form button {
    width: fit-content;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #12324a;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.contact-form-disabled {
    padding: 16px;
    border-radius: 8px;
    background: #fff4df;
    color: #7a520d;
    font-weight: 900;
}

@media (max-width: 860px) {
    .contact-layout,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-field-full {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .contact-page {
        width: min(100%, calc(100% - 24px));
        padding: 12px 0;
    }

    .topbar {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0 12px;
        margin-bottom: 30px;
        padding: 0;
        border-color: rgba(255, 255, 255, .88);
        border-radius: 0;
        background: #fff;
    }

    .brand {
        flex: 1 1 0;
        padding: 10px 12px;
    }

    .brand img {
        width: 98px;
        max-height: 54px;
    }

    .brand strong {
        color: #24324a;
        font-size: 17px;
    }

    .brand span span {
        color: #647084;
        font-size: 11px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: -1;
        width: 54px;
        height: 56px;
        margin-right: auto;
        border: 0;
        background: transparent;
        color: #46586d;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
    }

    .mobile-menu-button span,
    .mobile-menu-button::before,
    .mobile-menu-button::after {
        content: "";
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .main-menu {
        display: none;
        grid-template-columns: 1fr;
        width: 100%;
        order: 3;
        padding: 12px;
        border-top: 1px solid #eef2f7;
        background: #fff;
    }

    .main-menu a,
    .main-menu summary {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-height: 50px;
        padding: 0 14px;
        border-bottom: 1px solid #eef2f7;
        color: #46586d;
    }

    .top-actions {
        display: none;
        order: 4;
        width: 100%;
        padding: 0 16px 16px;
        background: #fff;
    }

    .nav-toggle:checked ~ .main-menu {
        display: grid;
    }

    .nav-toggle:checked ~ .top-actions {
        display: flex;
    }
}
