/* ========== Contact page ========== */
/* هم‌سبک با لیست مقالات و پروژه‌ها */

.ct {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 0 88px;
    color: #fff;
}

.ct__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
}

.ct__glow--1 {
    width: 460px;
    height: 460px;
    top: -160px;
    left: -130px;
    background: var(--page-blue);
    opacity: .35;
}

.ct__glow--2 {
    width: 420px;
    height: 420px;
    bottom: -140px;
    right: -120px;
    background: var(--page-blue);
    opacity: .4;
}

.ct__inner {
    position: relative;
    z-index: 1;
}

/* ---- head ---- */

.ct__head {
    text-align: center;
    margin-bottom: 40px;
}

.ct__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .28);
    background: rgba(253, 182, 20, .07);
    color: var(--page-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

.ct__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--page-orange);
    box-shadow: 0 0 0 0 rgba(253, 182, 20, .55);
    animation: ct-pulse 2.4s ease-out infinite;
}

@keyframes ct-pulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 182, 20, .5); }
    70% { box-shadow: 0 0 0 9px rgba(253, 182, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 182, 20, 0); }
}

.ct__title {
    margin: 16px 0 10px;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
}

.ct__subtitle {
    margin: 0 auto;
    max-width: 42ch;
    color: var(--page-muted);
    font-size: 15px;
    line-height: 2;
}

.ct__rule {
    display: block;
    width: 72px;
    height: 3px;
    margin: 20px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--page-orange), transparent);
}

/* ---- info cards grid ---- */

.ct__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 36px;
}

.ct-card {
    position: relative;
    min-width: 0;
}

.ct-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 260px;
    padding: 28px 26px 24px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--page-card) 0%, #191d28 100%);
    border: 1px solid var(--page-line);
    box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .8);
    text-decoration: none;
    color: inherit;
    transition:
        transform .5s cubic-bezier(.22, .7, .2, 1),
        border-color .4s ease,
        box-shadow .5s ease;
}

.ct-card__link:hover,
.ct-card__link:focus-visible {
    transform: translateY(-10px);
    border-color: rgba(253, 182, 20, .42);
    box-shadow: 0 38px 64px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(253, 182, 20, .12);
    text-decoration: none;
    color: inherit;
}

.ct-card__link:focus-visible {
    outline: none;
}

.ct-card__frame {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--page-orange), var(--page-orange-soft));
    transition: width .55s cubic-bezier(.22, .7, .2, 1);
}

.ct-card__link:hover .ct-card__frame,
.ct-card__link:focus-visible .ct-card__frame {
    width: 100%;
}

.ct-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 14px;
    color: #1a1305;
    background: var(--page-orange);
    box-shadow: 0 14px 28px -14px rgba(253, 182, 20, .75);
    transition: transform .45s cubic-bezier(.22, .7, .2, 1);
}

.ct-card__icon svg {
    width: 26px;
    height: 26px;
}

.ct-card__link:hover .ct-card__icon {
    transform: translateY(-3px);
}

.ct-card__label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--page-orange);
    font-size: 12.5px;
    font-weight: 700;
}

.ct-card__name {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.55;
    color: #fff;
    transition: color .3s ease;
}

.ct-card__link:hover .ct-card__name {
    color: var(--page-orange-soft);
}

.ct-card__text {
    flex: 1;
    margin: 0 0 20px;
    color: var(--page-muted);
    font-size: 14px;
    line-height: 2;
}

.ct-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--page-orange);
    font-size: 14px;
    font-weight: 800;
    transition: gap .35s ease, color .3s ease;
}

.ct-card__link:hover .ct-card__more {
    gap: 12px;
    color: var(--page-orange-soft);
}

.ct-card__arrow {
    width: 18px;
    height: 18px;
    transition: transform .4s cubic-bezier(.22, .7, .2, 1);
}

.ct-card__link:hover .ct-card__arrow {
    transform: translateX(-6px);
}

/* ---- form panel ---- */

.ct-form {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 42px 36px;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(30, 35, 48, .95), rgba(18, 21, 31, .98));
    border: 1px solid var(--page-line);
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .85);
    overflow: hidden;
}

.ct-form::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--page-orange), transparent);
}

.ct-form__head {
    text-align: center;
    margin-bottom: 28px;
}

.ct-form__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--page-orange);
    font-size: 13px;
    font-weight: 700;
}

.ct-form__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 800;
    color: #fff;
    line-height: 1.5;
}

.ct-form__text {
    margin: 0;
    color: var(--page-muted);
    font-size: 14.5px;
    line-height: 1.9;
}

.ct-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ct-field {
    margin-bottom: 18px;
}

.ct-field__label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 13.5px;
    font-weight: 700;
}

.ct-field__req {
    color: #ff6b6b;
}

.ct-field__opt {
    color: rgba(255, 255, 255, .4);
    font-weight: 500;
}

.ct-field__input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--page-line);
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font-size: 14.5px;
    line-height: 1.6;
    outline: none;
    transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.ct-field__input::placeholder {
    color: rgba(255, 255, 255, .35);
}

.ct-field__input:hover {
    border-color: rgba(253, 182, 20, .28);
}

.ct-field__input:focus {
    border-color: rgba(253, 182, 20, .55);
    background: rgba(253, 182, 20, .05);
    box-shadow: 0 0 0 3px rgba(253, 182, 20, .15);
}

.ct-field__input--area {
    resize: vertical;
    min-height: 130px;
}

.ct-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.ct-alert {
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.9;
}

.ct-alert ul {
    margin: 0;
    padding-right: 18px;
}

.ct-alert--success {
    color: #d8f5e3;
    background: rgba(46, 160, 98, .15);
    border: 1px solid rgba(46, 160, 98, .35);
}

.ct-alert--error {
    color: #ffd0d0;
    background: rgba(220, 70, 70, .14);
    border: 1px solid rgba(220, 70, 70, .35);
}

/* ---- button ---- */

.ct__btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 36px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .55);
    background: rgba(253, 182, 20, .08);
    color: var(--page-orange);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: color .35s ease, border-color .35s ease, transform .4s cubic-bezier(.22, .7, .2, 1), box-shadow .45s ease;
}

.ct__btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(90deg, #e5a000, var(--page-orange) 55%, var(--page-orange-soft));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .5s cubic-bezier(.22, .7, .2, 1);
}

.ct__btn:hover,
.ct__btn:focus-visible {
    color: #1a1305;
    border-color: var(--page-orange);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -18px rgba(253, 182, 20, .65);
    outline: none;
}

.ct__btn:hover::before,
.ct__btn:focus-visible::before {
    transform: scaleX(1);
}

.ct__btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform .4s cubic-bezier(.22, .7, .2, 1);
}

.ct__btn:hover .ct__btn-arrow {
    transform: translateX(-6px);
}

/* ---- reveal ---- */

[data-ct-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .7s cubic-bezier(.22, .7, .2, 1) var(--ct-delay, 0ms),
        transform .7s cubic-bezier(.22, .7, .2, 1) var(--ct-delay, 0ms);
    will-change: opacity, transform;
}

[data-ct-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---- responsive ---- */

@media (max-width: 991.98px) {
    .ct {
        padding: 48px 0 64px;
    }

    .ct__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 480px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 28px;
    }

    .ct-form {
        padding: 32px 24px 28px;
    }

    .ct-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 575.98px) {
    .ct {
        padding: 40px 0 52px;
    }

    .ct__title {
        font-size: 25px;
    }

    .ct-card__link {
        min-height: 0;
        padding: 24px 20px 20px;
    }

    .ct-form {
        padding: 28px 18px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct__eyebrow-dot,
    [data-ct-reveal],
    .ct-card__link,
    .ct-card__icon,
    .ct-card__arrow,
    .ct__btn,
    .ct__btn::before {
        animation: none !important;
        transition: none !important;
    }

    [data-ct-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .ct-card__link:hover {
        transform: none;
    }
}
