/*
Theme Name: Guichet
Theme URI:
Author:
Author URI:
Description: Guichet WordPress Theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guichet
Tags: custom-theme
*/

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fonts */
@font-face {
    font-family: 'Sedaghat';
    src: url('assets/fonts/sedaghat/webfont/Sedaghat.woff2') format('woff2'),
         url('assets/fonts/sedaghat/webfont/Sedaghat.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

#loading-screen img {
    width: 180px;
    height: auto;
}

/* Homepage Layout */
.home-page {
    overflow: hidden;
    background: #1a1a1a;
}

#homepage {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background: #000;
    direction: rtl;
}

.hp-bg-blur {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -1;
    filter: blur(40px);
    transform: scale(1.2);
}

.hp-bg-blur video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hp-image img,
.hp-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hp-typography {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    pointer-events: none;
    max-width: calc(100vw - 40px);
}

.hp-typography img {
    width: 50vw;
    max-width: 600px;
    height: auto;
}

.hp-nav {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 100;
    direction: rtl;
}

.hp-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.hp-nav ul li a {
    font-family: 'Sedaghat', sans-serif;
    font-size: 1.4rem;
    color: #f8f8f8;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

.hp-nav ul li a:hover {
    opacity: 0.5;
}

/* Hamburger button — hidden on desktop */
.hp-hamburger {
    display: none;
}

/* Mobile homepage */
@media (max-width: 768px) {
    .hp-hamburger {
        display: none;
    }

    .hp-nav {
        position: fixed;
        top: 24px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 150;
        width: 80vw;
    }

    .hp-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        justify-content: space-between;
        white-space: nowrap;
        width: 100%;
    }

    .hp-nav ul li a {
        font-size: clamp(1rem, 5vw, 1.6rem);
        white-space: nowrap;
    }

    .hp-typography {
        top: auto;
        bottom: 15%;
        right: 50%;
        transform: translateX(50%);
        width: 70%;
        justify-content: center;
        display: flex !important;
        z-index: 10;
    }

    #homepage {
        height: 100svh;
        overflow: hidden;
    }

    .hp-image video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hp-bg-blur {
        display: none;
    }
}

/* Header */
#site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

#site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#site-title a {
    font-size: 1.5rem;
    font-weight: 700;
}

#site-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

/* Main */
#main {
    padding: 40px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Footer */
#site-footer {
    background: transparent;
    padding: 30px 0;
    text-align: center;
    font-family: 'Peyda', sans-serif;
    font-size: 0.8rem;
    color: #888;
}

.portfolio-page #site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 16px 0;
    background: transparent;
}

.about-page #site-footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 1;
    color: rgba(248,248,248,0.5);
    padding: 0;
}

/* Posts */
.post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.post-meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 16px;
}

.post-content {
    line-height: 1.8;
}

/* Comments */
.comments-area {
    margin-top: 40px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 12px;
}

.comment-form input[type="submit"] {
    width: auto;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 24px;
}

/* ===== Portfolio Page ===== */

@font-face {
    font-family: 'Peyda';
    src: url('assets/fonts/Peyda/03- Non English/WebFonts/fonts/woff2/PeydaWebNoEn-Regular.woff2') format('woff2'),
         url('assets/fonts/Peyda/03- Non English/WebFonts/fonts/woff/PeydaWebNoEn-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('assets/fonts/Peyda/03- Non English/WebFonts/fonts/woff2/PeydaWebNoEn-Bold.woff2') format('woff2'),
         url('assets/fonts/Peyda/03- Non English/WebFonts/fonts/woff/PeydaWebNoEn-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('assets/fonts/Peyda/03- Non English/WebFonts/fonts/woff2/PeydaWebNoEn-Black.woff2') format('woff2'),
         url('assets/fonts/Peyda/03- Non English/WebFonts/fonts/woff/PeydaWebNoEn-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

.portfolio-page {
    background: #f8f8f8;
    direction: rtl;
}

/* Header */
#portfolio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px;
    direction: rtl;
    background: transparent;
}

#portfolio-header .ph-logo img {
    height: 36px;
    width: auto;
}

#portfolio-header .ph-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

#portfolio-header .ph-nav ul li a {
    font-family: 'Sedaghat', sans-serif;
    font-size: 1.3rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s;
}

#portfolio-header .ph-nav ul li a:hover {
    opacity: 0.5;
}

/* Main */
#portfolio-main {
    padding: 0 48px 80px;
}

/* Top Row */
.portfolio-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 40px 0;
    direction: rtl;
}

.portfolio-desc {
    font-family: 'Peyda', sans-serif;
    font-size: 0.95rem;
    line-height: 2;
    color: #1a1a1a;
    text-align: justify;
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.portfolio-desc p {
    max-width: 320px;
    text-align: justify;
    text-justify: kashida;
    -webkit-text-justify: kashida;
    word-spacing: 0.1em;
}

/* Filter */
.portfolio-filter {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-inner {
    position: relative;
    display: inline-block;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    justify-content: flex-end;
}

.filter-header h2 {
    font-family: 'Sedaghat', sans-serif;
    font-size: 2rem;
    color: #1a1a1a;
}

.filter-arrow {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: transform 0.3s;
    display: inline-block;
}

.filter-header.open .filter-arrow {
    transform: rotate(90deg);
}

.filter-list {
    list-style: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    text-align: right;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #f8f8f8;
    z-index: 9;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    text-align: left;
}

.filter-list.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
}

.filter-list li {
    padding: 6px 0;
}

.filter-btn {
    font-family: 'Sedaghat', sans-serif;
    font-size: 1.1rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.filter-btn:hover,
.filter-btn.active {
    color: #1a1a1a;
}

/* Project List */
.portfolio-list {
    margin-top: 20px;
    transition: margin-top 0.4s ease;
}

.project-row {
    position: relative;
    cursor: pointer;
    border-top: 1px solid #d0d0d0;
    overflow: hidden;
    transition: height 0.55s cubic-bezier(0.4, 0, 0.15, 1);
}

.project-row:last-child {
    border-bottom: 1px solid #d0d0d0;
}

.project-row-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 0;
    direction: rtl;
    width: 100%;
}

.project-title-col,
.project-cat {
    text-align: right;
    width: 200px;
    flex-shrink: 0;
}

.project-services {
    text-align: left;
    width: 200px;
    flex-shrink: 0;
}

.project-cat,
.project-title-col {
    font-family: 'Sedaghat', sans-serif;
    font-size: 1.35rem;
    color: #1a1a1a;
    text-align: right;
    min-width: unset;
}

.project-line {
    flex: 1;
    max-width: 480px;
    min-width: 40px;
    height: 1px;
    background: #1a1a1a;
}

.project-services {
    font-family: 'Peyda', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
    text-align: left;
    min-width: unset;
}

/* Slideshow on hover */
.project-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.15, 1);
    z-index: 0;
}

@media (hover: hover) and (min-width: 769px) {
    .project-row:hover {
        height: var(--row-open-h, 180px) !important;
    }

    .project-row:hover .project-preview {
        clip-path: inset(0 0 0% 0);
    }

    .project-row:hover .project-row-info {
        position: absolute;
        z-index: 1;
        height: 100%;
        padding: 0;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-row:hover .project-title-col {
        color: var(--hover-color, #f8f8f8);
        font-size: 1.6rem;
    }

    .project-row:hover .project-services {
        color: var(--hover-color, #f8f8f8);
        font-size: 1.1rem;
    }

    .project-row:hover .project-line {
        background: var(--hover-color, #f8f8f8);
    }
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.project-preview .preview-mobile {
    display: none;
}

.no-projects {
    font-family: 'Peyda', sans-serif;
    padding: 40px 0;
    color: #999;
    text-align: center;
}

/* ===== Single Project Page ===== */

.single-project-page {
    background: #f8f8f8;
    direction: rtl;
}

#project-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 48px 80px;
}

.project-title {
    font-family: 'Sedaghat', sans-serif;
    font-size: 4rem;
    color: #1a1a1a;
    text-align: right;
    margin-bottom: 16px;
    line-height: 1.2;
}

.project-back-btn {
    font-family: 'Peyda', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    text-align: right;
    direction: rtl;
    margin-bottom: 32px;
    transition: opacity 0.2s;
}

.project-back-btn:hover {
    opacity: 0.5;
}

/* Content blocks */
.project-content {
    font-family: 'Peyda', sans-serif;
    font-size: 1rem;
    line-height: 2;
    color: #1a1a1a;
    direction: rtl;
    text-align: right;
}

.project-content p {
    margin-bottom: 24px;
    font-weight: 400;
    text-align: justify;
    text-justify: kashida;
    -webkit-text-justify: kashida;
    word-spacing: 0.1em;
}

/* ── Gallery grid ── */
.project-content .wp-block-gallery,
.project-content .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* هر سل */
.project-content .wp-block-gallery > *,
.project-content .wp-block-gallery figure,
.project-content .wp-block-gallery .wp-block-image,
.project-content .wp-block-gallery li,
.project-content .wp-block-columns .wp-block-column {
    flex: 1 1 0 !important;
    max-width: unset !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    list-style: none !important;
}

.project-content .wp-block-gallery figure img,
.project-content .wp-block-gallery .wp-block-image img,
.project-content .wp-block-gallery li img,
.project-content .wp-block-gallery > * img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    cursor: zoom-in !important;
    transition: transform 0.3s ease !important;
}

.project-content .wp-block-gallery figure img:hover,
.project-content .wp-block-gallery li img:hover {
    transform: scale(1.03) !important;
}

/* عکس تکی */
.project-content figure.wp-block-image {
    margin: 0 0 16px;
}

.project-content figure.wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: zoom-in;
}

/* ویدیو — نمایش کامل با کنترل */
.project-content .wp-block-video {
    margin-bottom: 16px;
}

.project-content .wp-block-video figure {
    margin: 0;
}

.project-content .wp-block-video {
    display: flex;
    justify-content: center;
}

.project-content .wp-block-video video {
    width: 50%;
    height: auto;
    display: block;
    background: #000;
}

.video-pair {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.video-pair .wp-block-video {
    flex: 1;
    margin-bottom: 0;
}

.video-pair .wp-block-video video {
    width: 100%;
}

.project-content .wp-block-column img,
.project-content .wp-block-column video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* Spacing */
.project-content > * + * {
    margin-top: 8px;
}

/* ── Project Suggestions ── */
.project-suggestions {
    max-width: 900px;
    margin: 64px auto 80px;
    padding: 0 48px;
    direction: rtl;
}

.suggestions-title {
    font-family: 'Peyda', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(26,26,26,0.45);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.suggestion-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.suggestion-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ddd center/cover no-repeat;
    border-radius: 6px;
    overflow: hidden;
}

.suggestion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 14px 16px;
    opacity: 0;
    transition: opacity 0.25s;
}

.suggestion-card:hover .suggestion-overlay {
    opacity: 1;
}

.suggestion-cat {
    font-family: 'Peyda', sans-serif;
    font-size: 0.72rem;
    color: rgba(248,248,248,0.7);
    margin-bottom: 4px;
    display: block;
}

.suggestion-name {
    font-family: 'Peyda', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f8f8f8;
    display: block;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .project-suggestions {
        padding: 0 20px;
        margin: 48px auto 60px;
    }

    .suggestions-grid {
        gap: 10px;
    }

    .suggestion-overlay {
        opacity: 1;
    }
}

/* ── Lightbox ── */
#guichet-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#guichet-lightbox.open {
    display: flex;
}

#guichet-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    cursor: default;
}

#guichet-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#guichet-lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 5rem;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.8;
    transition: opacity 0.4s ease;
    padding: 20px;
    line-height: 1;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-prev {
    right: 24px;
}

.lightbox-next {
    left: 24px;
}

/* ===== Contact Page ===== */

.contact-page {
    background: #f8f8f8;
    direction: rtl;
    height: 100vh;
    overflow: hidden;
}

.contact-page #portfolio-header {
    position: relative;
    z-index: 100;
    background: transparent;
    margin-top: 0px;
}

.contact-page #portfolio-header .ph-nav ul li a {
    color: #f8f8f8;
}

.contact-page .ph-logo img {
    filter: invert(1);
}

#contact-main {
    direction: ltr;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 92px);
}

/* ستون چپ */
.contact-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 60px 60px 160px;
    gap: 32px;
}

/* Chat conversational form */
.chat-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-step {
    display: none;
    transition: all 0.5s ease;
}

.chat-step.active {
    display: block;
    opacity: 1;
}

.chat-step.blurred {
    display: block;
    opacity: 0.3;
    filter: blur(1.5px);
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.chat-step.blurred .chat-input-wrap {
    display: none !important;
}

.chat-text {
    font-family: 'Peyda', sans-serif;
    font-size: 1.1rem;
    line-height: 2;
    color: #f8f8f8;
    direction: rtl;
    text-align: right;
    margin-bottom: 16px;
    display: none;
}

.chat-text.typing::after {
    content: '|';
    animation: blink-caret 0.6s step-end infinite;
    margin-right: 2px;
    font-weight: 100;
}

@keyframes blink-caret {
    50% { opacity: 0; }
}

.chat-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    direction: rtl;
}

.chat-input-wrap input,
.chat-input-wrap textarea {
    font-family: 'Peyda', sans-serif;
    font-size: 1.05rem;
    padding: 14px 18px;
    border: 1px solid rgba(248,248,248,0.4);
    border-radius: 4px;
    background: transparent;
    color: #f8f8f8;
    text-align: right;
    direction: rtl;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.chat-input-wrap textarea {
    resize: none;
    height: 100px;
}

.chat-input-wrap input:focus,
.chat-input-wrap textarea:focus {
    border-color: #f8f8f8;
}

.chat-input-wrap input::placeholder,
.chat-input-wrap textarea::placeholder {
    color: rgba(248,248,248,0.5);
}

.chat-next {
    font-family: 'Peyda', sans-serif;
    font-size: 1.05rem;
    background: #f8f8f8;
    color: #1a1a1a;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.chat-next:hover {
    opacity: 0.8;
}

.phone-error {
    font-family: 'Peyda', sans-serif;
    font-size: 0.85rem;
    color: #e53935;
    direction: rtl;
    text-align: right;
}

/* ستون راست — عکس */
.contact-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

.contact-desc {
    font-family: 'Peyda', sans-serif;
    font-size: 0.95rem;
    line-height: 2;
    color: #1a1a1a;
    text-align: justify;
    text-align-last: right;
    direction: rtl;
    max-width: 360px;
}

/* فرم */
.contact-form {
    max-width: 360px;
    width: 100%;
}

.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form .wpcf7-form-control-wrap,
.contact-form .wpcf7-text,
.contact-form .wpcf7-tel,
.contact-form .wpcf7-textarea {
    width: 100% !important;
    display: block;
}

.contact-form textarea {
    font-family: 'Peyda', sans-serif;
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: transparent;
    color: #1a1a1a;
    text-align: right;
    direction: rtl;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
    height: calc(3 * (1rem + 24px + 2px));
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea:focus {
    border-color: #1a1a1a;
}

.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
    font-family: 'Peyda', sans-serif;
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: transparent;
    color: #1a1a1a;
    text-align: right;
    direction: rtl;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="email"]:focus {
    border-color: #1a1a1a;
}

.contact-form input::placeholder {
    color: #aaa;
}

.contact-form .wpcf7-submit {
    font-family: 'Peyda', sans-serif;
    font-size: 1rem;
    background: #1a1a1a;
    color: #f8f8f8;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-form button:hover,
.contact-form .wpcf7-submit:hover {
    opacity: 0.8;
}

.contact-form .wpcf7-submit {
    width: auto;
    align-self: flex-start;
}

/* ستون راست — عکس */
.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ===== About Page ===== */
.about-page {
    background: #1a1a1a;
}

#about-main {
    direction: rtl;
}

.about-bg-blur {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -1;
    filter: blur(40px);
    transform: scale(1.2);
}

.about-bg-blur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-bg-blur .hero-mobile {
    display: none;
}

@media (max-width: 768px) {
    .about-bg-blur .hero-desktop {
        display: none;
    }
    .about-bg-blur .hero-mobile {
        display: block;
    }
}

/* Hero */
.about-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.about-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-image .hero-mobile {
    display: none;
}

.about-hero-text {
    position: absolute;
    bottom: 310px;
    right: 80px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    align-items: flex-start;
}

.about-hero-text h1 {
    font-family: 'Sedaghat', sans-serif;
    font-size: 2.8rem;
    color: #f8f8f8;
    line-height: 1.4;
}

.about-hero-text p {
    font-family: 'Peyda', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 2.2;
    color: rgba(248,248,248,0.85);
    text-align: justify;
    text-align-last: right;
    direction: rtl;
    max-width: 560px;
}

.about-page #portfolio-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    margin-top: 0px;
}

.about-page #portfolio-header .ph-nav ul li a {
    color: #f8f8f8;
}

.about-page .ph-logo img {
    filter: invert(1);
}

/* Services glass marquee */
.services-glass {
    position: absolute;
    bottom: 80px;
    right: 80px;
    width: 560px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 28px 24px;
    overflow: visible;
}

.services-glass-title {
    font-family: 'Peyda', sans-serif;
    font-size: 1.1rem;
    color: #f8f8f8;
    padding: 0 32px 16px;
    margin: 0;
    text-align: left;
}

.services-marquee {
    width: 100%;
    position: relative;
    height: 130px;
}

.services-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.services-glass .service-item {
    text-align: center;
    padding: 16px 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    pointer-events: none;
}

.services-glass .service-item.active {
    opacity: 1;
    pointer-events: auto;
}

.services-glass .service-icon {
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto 10px;
    object-fit: contain;
}

.services-glass .service-item h3 {
    font-family: 'Peyda', sans-serif;
    font-size: 0.9rem;
    color: #f8f8f8;
    margin-bottom: 6px;
}

.services-glass .service-item p {
    font-family: 'Peyda', sans-serif;
    font-size: 0.75rem;
    line-height: 1.7;
    color: rgba(248,248,248,0.65);
    white-space: normal;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Team */
.about-team {
    padding: 100px 80px;
    background: #fff;
}

.about-team h2 {
    font-family: 'Peyda', sans-serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 60px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 20px;
    object-fit: cover;
    display: block;
}

img.member-photo {
    background: none;
}

.team-member h4 {
    font-family: 'Peyda', sans-serif;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.team-member span {
    font-family: 'Peyda', sans-serif;
    font-size: 0.85rem;
    color: #888;
}

/* CTA */
.about-cta {
    padding: 100px 80px;
    background: #1a1a1a;
    text-align: center;
}

.about-cta h2 {
    font-family: 'Sedaghat', sans-serif;
    font-size: 2.2rem;
    color: #f8f8f8;
    margin-bottom: 16px;
}

.about-cta p {
    font-family: 'Peyda', sans-serif;
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 40px;
}

.cta-button {
    font-family: 'Peyda', sans-serif;
    font-size: 1rem;
    display: inline-block;
    padding: 14px 40px;
    background: #f8f8f8;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.cta-button:hover {
    opacity: 0.8;
}

/* ===== Header hamburger — hidden on desktop ===== */
.ph-hamburger {
    display: none;
}

.nav-backdrop {
    display: none;
}

/* ===== Mobile: Header + Portfolio ===== */
@media (max-width: 768px) {

    /* --- Header hamburger --- */
    .ph-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 200;
    }

    .ph-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #1a1a1a;
        transition: all 0.3s ease;
    }

    .ph-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .ph-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .ph-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    #portfolio-header {
        flex-direction: row-reverse;
        padding: 16px 20px;
        position: relative;
    }

    /* --- Mobile nav backdrop --- */
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 148;
    }
    .nav-backdrop.open {
        display: block;
    }

    /* --- Mobile nav overlay --- */
    .ph-nav {
        display: block;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        z-index: 149;
        width: auto;
        min-width: 160px;
        background: #fff;
        border-radius: 16px;
        padding: 16px 24px 20px;
        direction: rtl;
        text-align: center;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.95);
        transform-origin: top left;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .ph-nav.mobile-open {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    #portfolio-header .ph-nav ul {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        text-align: center;
    }

    #portfolio-header {
        flex-wrap: nowrap;
    }

    #portfolio-header .ph-nav ul li a {
        font-size: 1.15rem;
        line-height: 2;
    }

    .ph-logo img {
        height: 28px !important;
    }

    /* --- Portfolio page mobile --- */
    .portfolio-top {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px;
    }

    .portfolio-desc {
        padding: 0;
    }

    .portfolio-desc p {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .portfolio-filter {
        padding: 0 0 10px 0;
        position: static;
    }

    .filter-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 98;
    }

    .filter-backdrop.open {
        display: block;
    }

    .filter-inner {
        position: static;
    }

    .filter-list {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        right: auto;
        width: 55vw;
        max-width: 240px;
        background: #fff;
        border-radius: 16px;
        padding: 20px 24px;
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        max-height: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        text-align: center;
    }

    .filter-list.open {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
        max-height: none;
    }

    .filter-list li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .filter-list li:last-child {
        border-bottom: none;
    }

    .filter-list .filter-btn {
        color: #1a1a1a;
    }

    /* Portfolio grid of squares */
    .portfolio-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 8px;
        margin-top: 10px;
    }

    .project-row {
        border: none !important;
        position: relative;
        height: auto !important;
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: 4px;
        transition: none !important;
    }

    .project-row-info {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        padding: 10px 12px;
        background: linear-gradient(transparent, rgba(0,0,0,0.6));
        z-index: 2;
    }

    .project-title-col {
        width: auto !important;
        font-size: 0.85rem !important;
        color: #fff !important;
        text-align: right;
    }

    .project-line {
        display: none;
    }

    .project-services {
        width: auto !important;
        font-size: 0.7rem !important;
        color: rgba(255,255,255,0.8) !important;
        text-align: right !important;
    }

    /* Slideshow always visible in square */
    .project-preview {
        position: absolute;
        inset: 0;
        max-height: none !important;
        opacity: 1 !important;
        padding: 0 !important;
        clip-path: none !important;
        transition: none !important;
    }

    .project-row {
        transition: none !important;
    }

    .project-preview .preview-desktop {
        display: none !important;
    }

    .project-preview .preview-mobile {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 0;
    }

    .project-row:hover .project-preview {
        max-height: none;
        padding: 0;
    }

    .project-row:hover {
        min-height: unset !important;
    }

    .project-row:hover .project-row-info {
        position: absolute !important;
        margin-bottom: 0 !important;
        height: auto !important;
    }

    .project-row:hover .project-title-col {
        font-size: 0.85rem !important;
        color: #fff !important;
    }

    .project-row:hover .project-services {
        color: rgba(255,255,255,0.8) !important;
        font-size: 0.7rem !important;
    }

    .project-row:hover .project-line {
        display: none !important;
    }

    /* --- Contact page mobile --- */
    .contact-page body,
    body.contact-page {
        background: #1a1a1a !important;
    }

    .contact-image {
        display: none !important;
    }

    #contact-main {
        display: block;
    }

    .contact-left {
        width: 100%;
        padding: 40px 24px;
        align-items: center;
        min-height: calc(100vh - 60px);
        justify-content: center;
    }

    .chat-container {
        max-width: 100%;
        align-items: center;
    }

    .chat-text {
        text-align: center;
        color: #f8f8f8 !important;
    }

    .chat-input-wrap {
        width: 100%;
        align-items: center;
    }

    .chat-input-wrap input,
    .chat-input-wrap textarea {
        max-width: 360px;
        background: transparent;
        border-color: #555;
        color: #f8f8f8;
    }

    .chat-input-wrap input::placeholder,
    .chat-input-wrap textarea::placeholder {
        color: #888;
    }

    .chat-input-wrap input:focus,
    .chat-input-wrap textarea:focus {
        border-color: #f8f8f8;
    }

    .chat-next {
        align-self: center;
        background: #f8f8f8;
        color: #1a1a1a;
    }

    .chat-step.blurred .chat-text {
        color: rgba(248,248,248,0.3) !important;
    }

    /* Header on dark bg */
    .contact-page .ph-hamburger span {
        background: #f8f8f8;
    }

    .contact-page .ph-logo img {
        filter: invert(1);
    }

    .contact-page #portfolio-header .ph-nav ul li a {
        color: #1a1a1a;
    }

    .contact-page #site-footer {
        position: relative;
        background: transparent;
        color: rgba(248,248,248,0.5);
    }

    .portfolio-page #site-footer {
        position: relative;
        background: transparent;
    }

    .single-project-page #site-footer {
        background: transparent;
    }

    /* --- About page mobile --- */
    .about-hero-image .hero-desktop {
        display: none;
    }

    .about-hero-image .hero-mobile {
        display: block;
    }

    .about-page #portfolio-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: transparent;
    }

    .about-page #about-main {
        margin-top: 0;
    }

    .about-page #site-footer {
        position: absolute;
        bottom: 10px;
        background: transparent;
    }

    .about-hero {
        height: 100svh;
        overflow: hidden;
    }

    .about-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 0;
    }

    .about-hero-text {
        z-index: 1;
    }

    .services-glass {
        z-index: 1;
    }

    .about-page .ph-hamburger span {
        background: #f8f8f8;
    }

    .about-page #portfolio-header .ph-nav ul li a {
        color: #1a1a1a;
    }

    .about-page .ph-logo img {
        filter: invert(1);
    }

    .about-hero-text {
        top: 50%;
        bottom: auto;
        right: 0;
        left: 0;
        transform: translateY(-50%);
        max-width: 100%;
        text-align: center;
        padding: 0 32px;
        align-items: center;
    }

    .about-hero-text p {
        font-size: 0.85rem;
        font-weight: 800;
        text-align: justify;
        text-align-last: center;
        line-height: 2;
        line-height: 2;
    }

    .services-glass {
        width: calc(100% - 64px);
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 40px;
        padding: 12px 0;
        border-radius: 12px;
    }

    .services-glass .service-item {
        padding: 8px 16px;
    }

    .services-glass .service-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
    }

    .services-glass .service-item h3 {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .services-glass .service-item p {
        font-size: 0.65rem;
        line-height: 1.5;
    }

    .service-tag {
        font-size: 0.85rem;
    }

    .about-team {
        padding: 60px 24px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .about-cta {
        padding: 60px 24px;
    }

    .about-cta h2 {
        font-size: 1.6rem;
    }

    .about-page #about-main {
        margin-top: 0;
    }
}

/* ===== Questionnaire Page ===== */
body.questionnaire-page {
    background: #f8f8f8;
    color: #1a1a1a;
}

#questionnaire-main {
    min-height: 100vh;
    padding: 120px 40px 100px;
    direction: rtl;
    font-family: 'Peyda', sans-serif;
    background: #f8f8f8;
}

.q-container {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.q-title {
    font-family: 'Sedaghat', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.4;
}

.q-desc {
    font-family: 'Peyda', sans-serif;
    color: rgba(26,26,26,0.55);
    font-size: 1rem;
    margin-bottom: 56px;
    line-height: 1.9;
}

.q-form-start {
    margin-top: 60px;
}

.q-item {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(26,26,26,0.1);
    text-align: right;
}

.q-name-item {
    margin-bottom: 48px;
    padding-bottom: 48px;
}

.q-name-label {
    font-size: 1rem;
    color: rgba(26,26,26,0.6);
    margin-bottom: 12px;
}

.q-text-input {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(26,26,26,0.18);
    border-radius: 10px;
    color: #1a1a1a;
    font-family: 'Peyda', sans-serif;
    font-size: 1rem;
    padding: 14px 16px;
    outline: none;
    direction: rtl;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.q-text-input:focus {
    border-color: rgba(26,26,26,0.45);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

.q-text-input::placeholder {
    color: rgba(26,26,26,0.3);
}

.q-item:last-of-type {
    border-bottom: none;
}

.q-label {
    font-family: 'Peyda', sans-serif;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: right;
}

.q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(26,26,26,0.08);
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 3px;
    color: #1a1a1a;
}

.q-item textarea.q-answer {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(26,26,26,0.18);
    border-radius: 10px;
    color: #1a1a1a;
    font-family: 'Peyda', sans-serif;
    font-size: 0.95rem;
    padding: 14px 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.8;
    direction: rtl;
}

.q-item textarea.q-answer:focus {
    border-color: rgba(26,26,26,0.45);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

.q-item textarea.q-answer::placeholder {
    color: rgba(26,26,26,0.3);
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.q-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: #fff;
    border: 1px solid rgba(26,26,26,0.14);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Peyda', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.q-option-label:hover {
    border-color: rgba(26,26,26,0.35);
    box-shadow: 0 1px 6px rgba(26,26,26,0.06);
}

.q-option-label input[type="radio"],
.q-option-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(26,26,26,0.3);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.q-option-label input[type="checkbox"] {
    border-radius: 4px;
}

.q-option-label input[type="radio"]:checked,
.q-option-label input[type="checkbox"]:checked {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.q-option-label:has(input:checked) {
    border-color: rgba(26,26,26,0.45);
    box-shadow: 0 1px 8px rgba(26,26,26,0.08);
}

.q-add-custom {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.q-custom-input {
    flex: 1;
    background: #fff;
    border: 1px solid rgba(26,26,26,0.18);
    border-radius: 10px;
    color: #1a1a1a;
    font-family: 'Peyda', sans-serif;
    font-size: 0.9rem;
    padding: 11px 14px;
    outline: none;
    direction: rtl;
    transition: border-color 0.2s;
}

.q-custom-input:focus {
    border-color: rgba(26,26,26,0.4);
}

.q-custom-input::placeholder {
    color: rgba(26,26,26,0.3);
}

.q-add-custom-btn {
    background: #1a1a1a;
    border: none;
    border-radius: 10px;
    color: #f8f8f8;
    font-family: 'Peyda', sans-serif;
    font-size: 0.85rem;
    padding: 10px 18px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.q-add-custom-btn:hover {
    opacity: 0.8;
}

/* Ranked question */
.q-ranked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.q-ranked-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: #fff;
    border: 1px solid rgba(26,26,26,0.14);
    border-radius: 10px;
    cursor: grab;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Peyda', sans-serif;
}

.q-ranked-item:active {
    cursor: grabbing;
}

.q-ranked-item.ui-sortable-helper {
    box-shadow: 0 4px 16px rgba(26,26,26,0.12);
    border-color: rgba(26,26,26,0.3);
}

.ranked-handle {
    color: rgba(26,26,26,0.25);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ranked-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(26,26,26,0.07);
    font-size: 0.75rem;
    flex-shrink: 0;
    color: rgba(26,26,26,0.6);
}

.ranked-label {
    font-size: 0.95rem;
    color: #1a1a1a;
    flex: 1;
}

.q-ranked-hint {
    font-family: 'Peyda', sans-serif;
    font-size: 0.8rem;
    color: rgba(26,26,26,0.35);
    margin-top: 10px;
    text-align: right;
}

/* Mobile ranked: up/down buttons */
.ranked-arrows {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin-right: auto;
}

.ranked-arrow-btn {
    background: none;
    border: 1px solid rgba(26,26,26,0.2);
    border-radius: 3px;
    color: rgba(26,26,26,0.4);
    font-size: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.ranked-arrow-btn:hover {
    background: rgba(26,26,26,0.07);
    color: #1a1a1a;
}

/* Submit button */
.q-submit-btn {
    display: block;
    margin: 16px auto 0;
    padding: 14px 48px;
    background: #1a1a1a;
    color: #f8f8f8;
    font-family: 'Peyda', sans-serif;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.q-submit-btn:hover {
    opacity: 0.82;
}

.q-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#q-success {
    text-align: center;
    padding: 80px 20px;
}

.q-success-msg {
    font-family: 'Sedaghat', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.9;
}

@media (max-width: 768px) {
    #questionnaire-main {
        padding: 90px 20px 80px;
    }

    .q-title {
        font-size: 2.2rem;
    }

    .q-container {
        text-align: right;
    }

    .ranked-arrows {
        display: flex;
    }
}
