/* ================================================
   CONTACT PAGE — additional styles
   Builds on top of home.css variables & utilities
   ================================================ */

/* Page hero header */
.contact-page-hero {
    padding: 160px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.contact-page-hero .section-label {
    display: inline-block;
}

.contact-page-hero .section-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

/* Two-column layout */
.contact-page-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Contact form card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
}

.contact-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--color-text-primary);
}

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

.contact-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.contact-form-label .required {
    color: #e57373;
    margin-left: 3px;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    border-color: rgba(192, 192, 192, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.contact-form-input.is-invalid,
.contact-form-textarea.is-invalid {
    border-color: #e57373;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: var(--color-text-muted);
}

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

.contact-form-error {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #e57373;
}

.contact-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--color-accent);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.contact-form-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Success / error banners */
.contact-success-banner,
.contact-error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-success-banner {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.contact-error-banner {
    background: rgba(229, 115, 115, 0.12);
    border: 1px solid rgba(229, 115, 115, 0.3);
    color: #e57373;
}

/* Right info panel */
.contact-info-panel {
    padding-top: 10px;
}

.contact-info-panel .section-label {
    margin-bottom: 24px;
}

.contact-info-panel .contact-info {
    margin-bottom: 40px;
}

/* Social links row */
.contact-social-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.contact-social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-social-link:hover {
    background: rgba(192, 192, 192, 0.18);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-page-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-bottom: 80px;
    }
}

@media (max-width: 600px) {
    .contact-page-hero {
        padding: 130px 24px 60px;
    }

    .contact-page-layout {
        padding: 0 24px 60px;
    }

    .contact-form-card {
        padding: 28px 24px;
    }
}

/* RTL overrides */
html[dir="rtl"] .contact-form-label .required {
    margin-left: 0;
    margin-right: 3px;
}

html[dir="rtl"] .contact-form-btn i {
    transform: rotate(180deg);
}

/* Select dropdown */
.contact-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

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

.contact-form-select option {
    background: #1a1a2e;
    color: rgba(255, 255, 255, .9);
}

/* Google Map section */
.contact-map-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.contact-map-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.contact-map-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 4px 32px rgba(0, 0, 0, .25);
}

.contact-map-frame {
    width: 100%;
    height: 400px;
    display: block;
    border: none;
    filter: invert(.92) hue-rotate(180deg) saturate(0.7);
}

@media (max-width: 900px) {
    .contact-map-section {
        padding: 0 24px 70px;
    }

    .contact-map-frame {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .contact-map-frame {
        height: 240px;
    }
}
