﻿

@font-face {
    font-family: 'YekanBakh-Regular';
    src: url('/fonts/font-family:truetype/YekanBakh-Regular.eot?#') format('eot'), /* IE6�8 */
    url('/fonts/YekanBakh-Regular.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/fonts/YekanBakh-Regular.woff2') format('woff2'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/fonts/YekanBakh-Regular.ttf') format('ttf'); /* Saf3�5, Chrome4+, FF3.5, Opera 10+ */
}
:root {
    --bg: #f7f8fa;
    --text: #171a21;
    --muted: #8993a3;
    --border: #e5e9ef;
    --white: #ffffff;
    --black: #15181e;
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #080f20;
    --text: #f5f7ff;
    --muted: #9baecc;
    --border: #344766;
    --white: #111d33;
    --black: #f2f5fb;
}

body {
    background: radial-gradient( ellipse at 50% 35%, #14223c 0%, #0b1427 48%, #070d1b 100% );
    color: var(--text);
}

.form-card {
    background: rgba(19, 32, 55, 0.82);
    border: 1px solid rgba(95, 129, 182, 0.28);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
}

.field-label {
    color: #e5ebf7;
}

.input-wrap input,
.input-wrap textarea,
.select-trigger {
    color: #f1f5ff;
    background: rgba(255, 255, 255, 0.045);
    border-color: #344967;
}

    .input-wrap input::placeholder,
    .input-wrap textarea::placeholder,
    .select-trigger .selected-text {
        color: #94a6c4;
    }

.select-options {
    background: #111d32;
    border-color: #344967;
}

.select-option {
    color: #e5ebf7;
}

    .select-option:hover,
    .select-option[aria-selected="true"] {
        background: #24344f;
        color: #ffffff;
    }

.submit-btn {
    background: linear-gradient(110deg, #f4f6fb, #dce4f1);
    color: #101a2c;
}

.privacy-note,
.herorequest p {
    color: #a5b5d0;
}

.logo {
    color: #ffffff;
}
button, input, textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

/* شکل‌های تزئینی پس‌زمینه */

.background-shape {
    position: fixed;
    width: 420px;
    height: 480px;
    border-radius: 48%;
    background: linear-gradient( 145deg, rgba(224, 229, 237, 0.18), rgba(210, 217, 229, 0.48), rgba(255, 255, 255, 0.15) );
    filter: blur(1px);
    pointer-events: none;
    z-index: -1;
}

.shape-left {
    top: 110px;
    left: -255px;
    transform: rotate(42deg);
}

.shape-right {
    bottom: -210px;
    right: -270px;
    transform: rotate(42deg);
}

/* عنوان صفحه */

.herorequest {
    text-align: center;
    padding: 65px 20px 0;
}

.eyebrow {
    font-family: Arial, sans-serif;
    direction: ltr;
    letter-spacing: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #9aa4b5;
    margin-bottom: 20px;
}

.herorequest h1 {
    font-size: clamp(29px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.herorequest p {
    color: #687284;
    font-size: 14px;
    font-weight: 400;
    line-height: 2.1;
}

/* کارت فرم */

.form-card {
    width: min(552px, calc(100% - 36px));
    margin: 49px auto 70px;
    padding: 51px 47px 43px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 65px rgba(28, 38, 56, 0.085), 0 3px 12px rgba(28, 38, 56, 0.025);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 29px;
}

.field-label {
    display: block;
    color: #303744;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.input-wrap {
    position: relative;
}

    .input-wrap input,
    .input-wrap textarea,
    .select-trigger {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.68);
        color: #303744;
        font-size: 12px;
        font-weight: 400;
        outline: none;
        transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }

    .input-wrap input {
        height: 45px;
        padding: 0 17px 0 46px;
    }

        .input-wrap input::placeholder,
        .input-wrap textarea::placeholder {
            color: #9aa4b4;
            opacity: 1;
        }

        .input-wrap input:focus,
        .input-wrap textarea:focus,
        .select-trigger:focus-visible {
            border-color: #abb4c2;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(125, 139, 160, 0.08);
        }

.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #7d8797;
    pointer-events: none;
}

    .field-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

/* منوی کشویی موضوع درخواست */

.custom-select {
    position: relative;
    z-index: 5;
}

.select-trigger {
    height: 45px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    cursor: pointer;
}

    .select-trigger .selected-text {
        color: #9aa4b4;
    }

    .select-trigger.has-value .selected-text {
        color: #303744;
    }

.chevron {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #6d7888;
    transition: transform 0.25s ease;
}

.custom-select.open .chevron {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(24, 33, 49, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(0.985);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 20;
}

.custom-select.open .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.select-option {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #454d5b;
    text-align: right;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.18s, color 0.18s;
}

    .select-option:hover {
        background: #f4f6f9;
        color: #15181e;
    }

    .select-option[aria-selected="true"] {
        background: #f4f6f9;
        color: #15181e;
        font-weight: 600;
    }

.option-check {
    width: 15px;
    height: 15px;
    opacity: 0;
    color: #333b49;
}

.select-option[aria-selected="true"] .option-check {
    opacity: 1;
}

/* توضیحات */

.textarea-wrap {
    position: relative;
}

    .textarea-wrap textarea {
        display: block;
        min-height: 112px;
        resize: vertical;
        padding: 15px 17px;
        line-height: 2;
    }

.textarea-icon {
    top: 18px;
    transform: none;
}

/* دکمه ثبت */

.submit-btn {
    width: 100%;
    height: 51px;
    margin-top: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    background: linear-gradient(110deg, #171a20, #101318);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(12, 16, 24, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(12, 16, 24, 0.15);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn svg {
        width: 19px;
        height: 19px;
    }

.privacy-note {
    margin-top: 19px;
    color: #939cab;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

    .privacy-note svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

.form-message {
    display: none;
    margin-top: 15px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.9;
}

    .form-message.error {
        display: block;
        background: #fff1f0;
        color: #a53232;
    }

    .form-message.success {
        display: block;
        background: #effaf3;
        color: #207447;
    }

/* ریسپانسیو */

@media (max-width: 600px) {
    .navbar {
        width: calc(100% - 36px);
        height: 68px;
    }

    .nav-links {
        gap: 17px;
    }

        .nav-links a {
            font-size: 11px;
        }

    .logo svg {
        width: 23px;
        height: 23px;
    }

    .nav-indicator {
        width: 36px;
        height: 24px;
    }

    .herorequest {
        padding-top: 48px;
    }

    .eyebrow {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .herorequest h1 {
        margin-bottom: 19px;
        font-size: 30px;
    }

    .herorequest p {
        font-size: 12px;
    }

    .form-card {
        margin-top: 35px;
        padding: 31px 22px 29px;
        border-radius: 17px;
    }

    .form-group {
        margin-bottom: 23px;
    }

    .field-label {
        font-size: 12px;
    }

    .input-wrap input,
    .select-trigger {
        height: 46px;
    }

    .textarea-wrap textarea {
        min-height: 105px;
    }

    .submit-btn {
        height: 49px;
    }

    .background-shape {
        opacity: 0.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}



/* اصلاح چیدمان کلی صفحه */
body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* عنوان و توضیحات */
.herorequest {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 65px 20px 65px 20px;
    box-sizing: border-box;
}

    .herorequest .eyebrow {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .herorequest h1 {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 0 24px;
        line-height: 1.7;
    }

    .herorequest p {
        display: block;
        width: 100%;
        text-align: center;
        line-height: 2.2;
        margin: 0;
    }

/* فرم در مرکز صفحه */
.form-card {
    display: block;
    width: min(552px, calc(100% - 36px));
    margin: 0 auto 60px;
    padding: 45px;
    box-sizing: border-box;
    position: relative;
}

    /* جلوگیری از بیرون‌زدگی فیلدها */
    .form-card form,
    .form-group,
    .input-wrap {
        width: 100%;
        min-width: 0;
    }

        .input-wrap input,
        .input-wrap textarea,
        .select-trigger {
            width: 100%;
            box-sizing: border-box;
        }

/* نمایش صحیح در موبایل */
@media (max-width: 600px) {
    .herorequest {
        padding-top: 45px;
    }

        .herorequest h1 {
            font-size: 30px;
            margin-bottom: 18px;
        }

        .herorequest p {
            font-size: 12px;
        }

    .form-card {
        padding: 28px 22px;
        margin-top: 32px;
    }
}

