/* =============================================
   CONTACT PAGE STYLES - HighMix Company
   Matches: index.php, about.php, services.php
   Primary Red : #FF0900
   Dark Navy   : #1a1a2e
   ============================================= */

/* ─── SCROLL REVEAL UTILITIES ────────────────── */
.con-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.con-reveal.visible { opacity: 1; transform: translateY(0); }

.con-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.con-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.con-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.con-stagger > *:nth-child(4) { transition-delay: 0.4s; }

/* ─── PAGE HERO BANNER ──────────────────────── */
.contact-hero-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/asset/background.png') center/cover no-repeat fixed;
    overflow: hidden;
    direction: rtl;
}

.contact-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255, 9, 0, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(26, 26, 46, 0.1) 0%, transparent 50%),
        rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 0;
}

.contact-hero-banner::after {
    content: 'CONTACT';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 800;
    -webkit-text-stroke: 1.5px rgba(255, 9, 0, 0.08); /* 0.08 to match updated services.css later or keep subtle */
    color: transparent;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 900px;
    margin: 0 auto;
    animation: conFadeDown 0.8s ease both;
}

.con-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    direction: rtl;
}

.con-breadcrumb a { color: #FF0900; text-decoration: none; transition: color 0.2s; }
.con-breadcrumb a:hover { color: #c00; }
.con-breadcrumb i { font-size: 0.7rem; color: #bbb; }

.contact-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 20px;
}

.contact-hero-title span { color: #FF0900; }

.contact-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    line-height: 2;
    max-width: 680px;
    margin: 0 auto;
}

.con-title-line {
    width: 70px;
    height: 4px;
    background: #FF0900;
    border-radius: 10px;
    margin: 18px auto 24px;
    position: relative;
}

.con-title-line::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 12px;
    height: 4px;
    background: #FF0900;
    border-radius: 10px;
    opacity: 0.4;
}

/* ─── MAIN CONTACT SECTION ───────────────────── */
.con-main-section {
    background: #fcfcfc;
    padding: 100px 0;
    position: relative;
    direction: rtl;
}

.con-main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

/* ── INFOS (Left visually in RTL, grid col 1) ── */
.con-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.con-info-header {
    margin-bottom: 20px;
}

.con-info-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 12px;
}

.con-info-header h2 span { color: #FF0900; }

.con-info-header p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Info Cards */
.con-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    cursor: default;
}

.con-info-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 16px 40px rgba(255, 9, 0, 0.05);
    border-color: rgba(255, 9, 0, 0.1);
}

.con-info-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 9, 0, 0.08);
    color: #FF0900;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.con-info-card:hover .con-info-icon {
    background: #FF0900;
    color: #fff;
    transform: rotate(-10deg) scale(1.05);
}

.con-info-details h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.con-info-details p, .con-info-details a {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
    direction: ltr; /* keep phones/emails readable */
    text-align: right;
    display: inline-block;
}

.con-info-details p.rtl-text { direction: rtl; }

.con-info-details a:hover { color: #FF0900; }

/* ── FORM (Right visually in RTL, grid col 2) ── */
.con-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.con-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,9,0,0.1) 0%, transparent 70%);
}

.con-form-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.con-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.con-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.con-input-group.full { grid-column: span 2; }

.con-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.con-input, .con-textarea {
    width: 100%;
    background: #f8f8fb;
    border: 1px solid #e1e1e8;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 1rem;
    color: #333;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.con-textarea {
    height: 150px;
    resize: none;
}

.con-input:focus, .con-textarea:focus {
    background: #fff;
    border-color: #FF0900;
    box-shadow: 0 0 0 4px rgba(255, 9, 0, 0.1);
}

.con-input::placeholder, .con-textarea::placeholder { color: #aaa; }

.con-submit-btn {
    grid-column: span 2;
    background: #FF0900;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    padding: 18px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(255, 9, 0, 0.25);
}

.con-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(255, 9, 0, 0.35);
    background: #e60800;
}

.con-submit-btn i { font-size: 1.2rem; }

/* ─── MAP SECTION ────────────────────────────── */
.con-map-section {
    width: 100%;
    height: 500px;
    background: #eee;
    position: relative;
}

.con-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(80%) contrast(1.1);
    transition: filter 0.5s ease;
}

.con-map-iframe:hover {
    filter: grayscale(0%) contrast(1);
}

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes conFadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
    .con-main-container {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .contact-hero-banner { min-height: 350px; }
    .con-form { grid-template-columns: 1fr; }
    .con-input-group.full { grid-column: span 1; }
    .con-submit-btn { grid-column: span 1; }
    .con-map-section { height: 350px; }
    .con-form-wrapper { padding: 30px 20px; }
}

@media (max-width: 560px) {
    .contact-hero-title { font-size: 2rem; }
}
