﻿/* ============================================================
   CHX - Contact Us Page Stylesheet (Neolith Inspired Luxury Design)
   ============================================================ */

/* Base Page Wrapper */
.contact-page-wrapper {
    margin-top: 125px;
    background-color: #ede9e4;
    min-height: calc(100vh - 200px);
    width: 100%;
    overflow-x: hidden;
    color: #212223;
}

/* ============================================================
   HERO / HEADER SECTION
   ============================================================ */
.contact-hero-section {
    padding: 70px 0 40px;
    background-color: #ede9e4;
    text-align: center;
}

.contact-hero-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-breadcrumb {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7c7c7c;
    margin-bottom: 24px;
    font-weight: 400;
}

.contact-breadcrumb a {
    color: #7c7c7c;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-breadcrumb a:hover {
    color: #212223;
}

.contact-breadcrumb .separator {
    margin: 0 8px;
    color: #b0aba4;
}

/* ============================================================
   ANIMATED FILL-HALF HEADING (ABOUT US STYLE)
   ============================================================ */
.fill-half-text {
    font-family: 'Minion', 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 20px;
    margin-top: 110px;
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #5a5a5a;
    text-stroke: 1px #5a5a5a;
}

    /* لایه توپر با انیمیشن تا نصف متن */
    .fill-half-text::after {
        content: attr(data-text);
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        color: #5a5a5a;
        -webkit-text-fill-color: #5a5a5a;
        -webkit-text-stroke: 0;
        text-stroke: 0;
        clip-path: inset(0 0 0 100%);
        animation: fillHalfText 1.5s cubic-bezier(.77, 0, .18, 1) forwards;
    }

@keyframes fillHalfText {
    0% {
        clip-path: inset(0 0 0 100%);
    }

    100% {
        clip-path: inset(0 0 0 50%);
    }
}

.contact-hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #5a5a5a;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================
   MAIN CONTENT SECTION (2 COLUMNS)
   ============================================================ */
.contact-main-section {
    padding: 30px 0 120px;
    background-color: #ede9e4;
}

.contact-grid-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

/* ============================================================
   LEFT COLUMN: CONTACT INFO (NEOLITH HQ STYLE)
   ============================================================ */
.contact-info-col {
    flex: 0 0 38%;
    max-width: 38%;
    background: transparent;
}

.contact-info-card {
    padding: 10px 0 30px;
}

.contact-location-title {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: #212223;
    margin-bottom: 24px;
    font-family: 'minion', 'MontserratRegular', 'Inter', sans-serif;
}

.contact-info-group {
    margin-bottom: 28px;
}

.contact-info-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7c7c7c;
    margin-bottom: 8px;
}

.contact-info-text {
    font-size: 15px;
    line-height: 1.85;
    color: #4a4a4a;
    margin: 0;
}

.contact-info-link {
    display: inline-block;
    color: #212223;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.8;
    transition: color 0.25s ease, transform 0.25s ease;
}

.contact-info-link:hover {
    color: #c5a27e;
    text-decoration: underline;
}

.contact-phones-list,
.contact-emails-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 32px 0;
}

/* ============================================================
   RIGHT COLUMN: CONTACT FORM (NEOLITH LUXURY FORM)
   ============================================================ */
.contact-form-col {
    flex: 1;
    min-width: 0;
}

.contact-form-wrapper {
    background-color: #ffffff;
    padding: 50px 55px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.contact-form-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.3px;
    color: #212223;
    margin: 0 0 12px;
    font-family: 'minion', 'MontserratRegular', 'Inter', sans-serif;
}

.contact-form-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #6a6a6a;
    margin: 0 0 36px;
}

/* Form Grid */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row-1col {
    margin-bottom: 24px;
}

.contact-field-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.contact-field-label .required-star {
    color: #c5a27e;
    margin-left: 3px;
}

/* Form Inputs & Selects */
.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    color: #212223;
    background-color: #fcfbf9;
    border: 1px solid #d9d5ce;
    border-radius: 2px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    border-color: #212223;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #212223;
}

.contact-input.input-error,
.contact-select.input-error,
.contact-textarea.input-error {
    border-color: #d32f2f;
    background-color: #fff9f9;
}

.contact-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23555555%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
}

.contact-textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

/* Field Validation Message */
.field-error-text {
    font-size: 12px;
    color: #d32f2f;
    margin-top: 5px;
    display: none;
}

.field-error-text.is-visible {
    display: block;
}

/* Privacy & Legal Disclaimer (Neolith Style) */
.contact-legal-group {
    margin-top: 10px;
    margin-bottom: 28px;
}

.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
    color: #444444;
    line-height: 1.5;
    user-select: none;
}

.privacy-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #212223;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-checkbox-label a {
    color: #212223;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-checkbox-label a:hover {
    color: #c5a27e;
}

.contact-disclaimer-box {
    margin-top: 14px;
    padding: 14px 16px;
    background-color: #f7f5f2;
    border-radius: 2px;
    border-left: 2px solid #b0aba4;
}

.contact-disclaimer-text {
    font-size: 11.5px;
    line-height: 1.7;
    color: #777777;
    margin: 0;
    text-align: justify;
}

.contact-disclaimer-title {
    font-weight: 700;
    color: #555555;
    letter-spacing: 0.5px;
}

/* Submit Button (Luxury Neolith Style) */
.contact-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #212223;
    color: #ffffff;
    border: none;
    padding: 16px 48px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-submit-btn:hover {
    background-color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(4px);
}

/* Alert Banners */
.contact-alert-success {
    margin-top: 24px;
    padding: 16px 20px;
    background-color: #eef7ee;
    border: 1px solid #c7e5c7;
    color: #236826;
    border-radius: 2px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

.contact-alert-success.is-visible {
    display: flex;
}

.contact-alert-error {
    margin-top: 24px;
    padding: 16px 20px;
    background-color: #fdf0f0;
    border: 1px solid #f7c3c3;
    color: #a32222;
    border-radius: 2px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

.contact-alert-error.is-visible {
    display: flex;
}

/* ============================================================
   RTL STYLES (FOR PERSIAN / ARABIC)
   ============================================================ */
[dir="rtl"] .contact-page-wrapper,
.rtl .contact-page-wrapper {
    text-align: right;
}

[dir="rtl"] .contact-select,
.rtl .contact-select {
    background-position: left 14px center;
    padding-right: 16px;
    padding-left: 36px;
}

[dir="rtl"] .contact-disclaimer-box,
.rtl .contact-disclaimer-box {
    border-left: none;
    border-right: 2px solid #b0aba4;
}

[dir="rtl"] .contact-submit-btn:hover svg,
.rtl .contact-submit-btn:hover svg {
    transform: translateX(-4px);
}

/* ============================================================
   RESPONSIVE (MEDIA QUERIES)
   ============================================================ */
@media (max-width: 1100px) {
    .contact-grid-container {
        gap: 40px;
    }

    .contact-info-col {
        flex: 0 0 42%;
        max-width: 42%;
    }
}

@media (max-width: 991px) {
    .contact-page-wrapper {
        margin-top: 80px;
    }

    .contact-hero-section {
        padding: 40px 0 20px;
    }

    .contact-hero-container,
    .contact-grid-container {
        padding: 0 24px;
    }

    .contact-hero-title {
        font-size: 36px;
    }

    .contact-grid-container {
        flex-direction: column;
        gap: 50px;
    }

    .contact-info-col {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .contact-form-col {
        width: 100%;
    }

    .contact-form-wrapper {
        padding: 36px 28px;
    }
}

@media (max-width: 640px) {
    .contact-hero-section {
        padding: 70px 0 20px;
    }

    .contact-hero-title {
        font-size: 30px;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .form-row-1col {
        margin-bottom: 18px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .contact-submit-btn {
        width: 100%;
        padding: 15px 24px;
    }
}
