/* ==========================================================================
   TrustHost.ir — Contact Us Page Modern Redesign Stylesheet
   Direction: RTL | Scoped: .th-contact-page
   ========================================================================== */

.page-id-673 #content > .page-header,
.post-673 #content > .page-header,
.page-id-673 .entry-header,
.post-673 .entry-header {
    display: none !important;
}

.th-contact-page {
    --th-primary: #0066cc;
    --th-primary-dark: #01274d;
    --th-primary-light: #0284c7;
    --th-accent: #0ea5e9;
    --th-accent-subtle: #f0f7ff;
    --th-text-main: #1e293b;
    --th-text-muted: #64748b;
    --th-text-heading: #0f172a;
    --th-bg-white: #ffffff;
    --th-bg-slate: #f8fafc;
    --th-border: #e2e8f0;
    --th-border-hover: #cbd5e1;
    --th-radius-sm: 8px;
    --th-radius-md: 14px;
    --th-radius-lg: 20px;
    --th-radius-xl: 28px;
    --th-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --th-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
    --th-shadow-lg: 0 16px 36px -6px rgba(1, 39, 77, 0.12);
    --th-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    direction: rtl !important;
    text-align: right !important;
    font-family: Vazirmatn, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;
    color: var(--th-text-main);
    line-height: 1.85;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 60px;
    box-sizing: border-box;
}

.th-contact-page *,
.th-contact-page *::before,
.th-contact-page *::after {
    box-sizing: border-box;
}

/* 1. Hero Section */
.th-contact-hero {
    position: relative;
    background: radial-gradient(circle at 80% 20%, #033c75 0%, #01274d 60%, #001730 100%);
    color: #ffffff;
    border-radius: var(--th-radius-xl);
    padding: 56px 36px 44px;
    margin-bottom: 32px;
    box-shadow: var(--th-shadow-lg);
    overflow: hidden;
    text-align: center;
}

.th-contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.th-contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.th-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #bae6fd;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.th-contact-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
}

.th-contact-hero h1 {
    color: #ffffff !important;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.th-contact-hero-lead {
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: #e2e8f0;
    line-height: 1.9;
    margin: 0 auto;
    max-width: 780px;
    text-align: justify;
    text-align-last: center;
}

/* 2. Primary Contact Phone Callout Banner */
.th-contact-phone-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 2px solid #bfdbfe;
    border-radius: var(--th-radius-lg);
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: var(--th-shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.th-contact-phone-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.th-contact-phone-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--th-primary) 0%, var(--th-primary-light) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.25);
    flex-shrink: 0;
}

.th-contact-phone-text h2 {
    color: var(--th-text-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.th-contact-phone-number {
    display: inline-block;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 800;
    color: var(--th-primary-dark);
    direction: ltr !important;
    unicode-bidi: isolate;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--th-transition);
}

.th-contact-phone-number:hover {
    color: var(--th-primary);
}

.th-contact-phone-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.th-btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--th-primary);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: var(--th-radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    transition: var(--th-transition);
}

.th-btn-call:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 102, 204, 0.4);
    color: #ffffff !important;
}

/* 3. Channels Grid */
.th-contact-section {
    margin-bottom: 48px;
}

.th-contact-section-header {
    margin-bottom: 24px;
    text-align: right;
}

.th-contact-section-label {
    display: inline-block;
    color: var(--th-primary);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.th-contact-section-title {
    color: var(--th-text-heading);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.4;
}

.th-contact-section-subtitle {
    color: var(--th-text-muted);
    font-size: 0.98rem;
    margin: 0;
}

.th-contact-channels-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

.th-contact-channel-card {
    background: var(--th-bg-white);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-lg);
    padding: 28px 24px;
    box-shadow: var(--th-shadow-sm);
    transition: var(--th-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.th-contact-channel-card:hover {
    border-color: var(--th-primary-light);
    box-shadow: var(--th-shadow-md);
    transform: translateY(-2px);
}

.th-contact-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--th-accent-subtle);
    color: var(--th-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.th-contact-channel-title {
    color: var(--th-text-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.th-contact-channel-desc {
    color: var(--th-text-muted);
    font-size: 0.92rem;
    line-height: 1.85;
    margin: 0 0 16px;
    text-align: justify;
}

.th-contact-channel-meta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--th-border);
}

.th-contact-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--th-primary);
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    transition: var(--th-transition);
}

.th-contact-channel-link:hover {
    color: #004080;
    gap: 10px;
}

/* 4. Form & Sidebar Grid */
.th-contact-form-layout {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr !important;
    gap: 28px;
    align-items: start;
}

.th-contact-form-card {
    background: var(--th-bg-white);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-lg);
    padding: 36px 32px;
    box-shadow: var(--th-shadow-sm);
}

.th-contact-form-card h2 {
    color: var(--th-text-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.th-contact-form-intro {
    color: var(--th-text-muted);
    font-size: 0.94rem;
    margin: 0 0 24px;
    line-height: 1.7;
}

.th-form-group {
    margin-bottom: 20px;
}

.th-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
}

.th-form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--th-text-heading);
    margin-bottom: 8px;
}

.th-form-label span.req {
    color: #ef4444;
    margin-right: 2px;
}

.th-form-input,
.th-form-select,
.th-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--th-radius-sm);
    font-family: inherit;
    font-size: 0.96rem;
    color: var(--th-text-main);
    background: #ffffff;
    transition: var(--th-transition);
    outline: none;
    box-sizing: border-box;
}

.th-form-input:focus,
.th-form-select:focus,
.th-form-textarea:focus {
    border-color: var(--th-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.th-form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

.th-form-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--th-primary);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--th-radius-sm);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--th-transition);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
}

.th-form-btn-submit:hover:not(:disabled) {
    background: #0052a3;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

.th-form-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.th-form-alert {
    padding: 14px 16px;
    border-radius: var(--th-radius-sm);
    font-size: 0.94rem;
    font-weight: 600;
    margin-top: 18px;
    display: none;
    text-align: center;
}

.th-form-alert.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.th-form-alert.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Sidebar Cards */
.th-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.th-contact-support-card {
    background: linear-gradient(135deg, #01274d 0%, #024b94 100%);
    color: #ffffff;
    border-radius: var(--th-radius-lg);
    padding: 30px 26px;
    box-shadow: var(--th-shadow-md);
}

.th-contact-support-card h3 {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.th-contact-support-card p {
    color: #e2e8f0;
    font-size: 0.94rem;
    line-height: 1.85;
    margin: 0 0 20px;
    text-align: justify;
}

.th-btn-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #ffffff;
    color: var(--th-primary-dark) !important;
    padding: 12px 20px;
    border-radius: var(--th-radius-sm);
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    transition: var(--th-transition);
}

.th-btn-panel:hover {
    background: #f0f7ff;
    color: var(--th-primary) !important;
}

.th-contact-hints-card {
    background: var(--th-bg-white);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-lg);
    padding: 28px 24px;
    box-shadow: var(--th-shadow-sm);
}

.th-contact-hints-card h3 {
    color: var(--th-text-heading);
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.th-contact-hint-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.91rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 12px;
}

.th-contact-hint-item:last-child {
    margin-bottom: 0;
}

.th-contact-hint-dot {
    color: var(--th-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* 5. Final CTA */
.th-contact-cta {
    background: var(--th-bg-white);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-xl);
    padding: 44px 32px;
    text-align: center;
    box-shadow: var(--th-shadow-md);
    margin-top: 20px;
}

.th-contact-cta h2 {
    color: var(--th-text-heading);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 10px;
}

.th-contact-cta p {
    color: var(--th-text-muted);
    font-size: 1.02rem;
    max-width: 650px;
    margin: 0 auto 28px;
}

.th-contact-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.th-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--th-primary);
    color: #ffffff !important;
    padding: 13px 28px;
    border-radius: var(--th-radius-md);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
    transition: var(--th-transition);
}

.th-btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.th-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--th-text-heading) !important;
    border: 1px solid var(--th-border-hover);
    padding: 13px 28px;
    border-radius: var(--th-radius-md);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--th-transition);
}

.th-btn-secondary:hover {
    background: var(--th-bg-slate);
    border-color: #94a3b8;
    color: var(--th-primary) !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .th-contact-channels-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .th-contact-form-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .th-contact-page {
        padding: 6px 12px 40px;
    }
    .th-contact-hero {
        padding: 40px 20px 32px;
        border-radius: var(--th-radius-lg);
    }
    .th-contact-hero-lead {
        text-align: right;
        text-align-last: right;
    }
    .th-contact-phone-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        text-align: center;
    }
    .th-contact-phone-info {
        flex-direction: column;
        text-align: center;
    }
    .th-btn-call {
        width: 100%;
    }
    .th-contact-channels-grid,
    .th-form-row {
        grid-template-columns: 1fr !important;
    }
    .th-contact-form-card,
    .th-contact-support-card,
    .th-contact-hints-card,
    .th-contact-cta {
        padding: 26px 20px;
    }
    .th-contact-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .th-btn-primary,
    .th-btn-secondary {
        width: 100%;
    }
}
