/* ===== CONTACT PAGE ===== */

/* ===== HERO ===== */
.contact-hero-section {
    background: linear-gradient(135deg, #050508 0%, #0e0e16 50%, #050508 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 160px 0 100px;
    position: relative;
    text-align: center;
}

.contact-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 60%,
        rgba(65, 105, 225, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.contact-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #5b7fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.25);
    border-radius: 50px;
}

.contact-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.15;
}

.contact-hero-content p {
    font-size: 17px;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

.contact-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.35);
    transition: all 0.3s ease;
}

.contact-profile-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(65, 105, 225, 0.5);
    color: #fff;
}

.contact-profile-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.contact-profile-btn:hover i {
    transform: translateY(3px);
}

/* ===== INFO CARDS ===== */
.contact-info-section {
    background: var(--bg);
    padding: 60px 0;
    position: relative;
}

.contact-info-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(65, 105, 225, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.contact-info-card {
    background: linear-gradient(
        135deg,
        rgba(12, 12, 20, 0.95) 0%,
        rgba(16, 16, 28, 0.85) 100%
    );
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 16px;
    padding: 30px 25px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    border-color: #5b7fff;
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.2);
}

.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.35);
    transition: all 0.4s ease;
}

.contact-info-card:hover .info-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.5);
}

.info-icon i {
    font-size: 20px;
    color: white;
}

.info-body h4 {
    font-size: 13px;
    font-weight: 700;
    color: #5b7fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.info-body p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.info-body p a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-body p a:hover {
    color: #5b7fff;
}

/* ===== FORM + MAP ===== */
.contact-main-section {
    background: var(--bg);
    padding: 0 0 100px;
    position: relative;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    min-height: 650px;
}

/* Form wrapper */
.contact-form-wrapper {
    background: linear-gradient(
        135deg,
        rgba(12, 12, 20, 0.95) 0%,
        rgba(16, 16, 28, 0.85) 100%
    );
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 20px;
    padding: 45px 40px;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.form-header p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

/* Success alert */
.form-success-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #4ade80;
    font-weight: 500;
}

.form-success-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Form inputs */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.contact-form .form-row .form-group {
    margin-bottom: 0;
}

.contact-form label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.contact-form label span {
    color: #5b7fff;
    margin-left: 2px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(91, 127, 255, 0.2);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    color: var(--white);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #5b7fff;
    background: rgba(91, 127, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(91, 127, 255, 0.1);
}

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

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

.field-error {
    font-size: 12px;
    color: #f87171;
    margin-top: 5px;
}

/* Submit button */
.contact-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 30px !important;
    font-size: 15px !important;
    gap: 10px;
}

.contact-submit-btn i {
    transition: transform 0.3s ease;
}

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

/* Map wrapper */
.contact-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(91, 127, 255, 0.15);
    min-height: 500px;
    position: relative;
}

.contact-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    filter: invert(90%) hue-rotate(180deg);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(
        135deg,
        rgba(12, 12, 20, 0.95) 0%,
        rgba(16, 16, 28, 0.85) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text);
}

.map-placeholder i {
    font-size: 48px;
    color: rgba(91, 127, 255, 0.4);
}

.map-placeholder p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

/* ===== OFFICE EMAIL CARDS ===== */
.contact-offices-section {
    background: var(--bg);
    padding: 0 0 100px;
    position: relative;
}

.contact-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* ===== ARABIC ===== */
[lang="ar"] .contact-hero-content h1 {
    font-size: 48px;
}

[lang="ar"] .contact-hero-content p {
    font-size: 15px;
}

[lang="ar"] .info-body h4 {
    font-size: 12px;
    letter-spacing: 0.5px;
}

[lang="ar"] .form-header h2 {
    font-size: 24px;
}

[lang="ar"] .contact-form label {
    font-size: 13px;
}

[lang="ar"] .contact-form input,
[lang="ar"] .contact-form textarea {
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        min-height: 400px;
    }

    .contact-map-wrapper iframe {
        min-height: 400px;
    }

    .contact-hero-content h1 {
        font-size: 44px;
    }
}

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

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

    .contact-hero-content p {
        font-size: 15px;
    }

    .contact-info-section {
        padding: 50px 0;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-main-section {
        padding: 0 0 80px;
    }

    .contact-form-wrapper {
        padding: 30px 25px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .contact-map-wrapper {
        min-height: 350px;
    }

    .contact-map-wrapper iframe {
        min-height: 350px;
    }

    [lang="ar"] .contact-hero-content h1 {
        font-size: 32px;
    }
}
