/* Contact Section Styles - Updated with WhatsApp Modal */

.contact-section {
    padding: 9rem 0 3rem;
    background: var(--gradient-1) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    margin-bottom: 1rem;
    margin-top: 2rem;
    position: relative;
    display: inline-block;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.contact-section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-form h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Service Select Styles */
.form-group select.service-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="white" d="M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 1.5rem center;
    padding-right: 3rem;
}

[dir="ltr"] .form-group select.service-select {
    background-position: right 1.5rem center;
    padding-left: 1.5rem;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--primary-color);
    color: white;
    padding: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-2);
    transition: all 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    color: white;
}

.submit-btn:hover::before {
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

[dir="rtl"] .contact-item:hover {
    transform: translateX(-5px);
}

.contact-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific colors for each platform */
.social-link.facebook:hover {
    background: var(--facebook-color);
}

.social-link.linkedin:hover {
    background: var(--linkedin-color);
}

.social-link.instagram:hover {
    background: var(--instagram-color);
}

.social-link.youtube:hover {
    background: var(--youtube-color);
}

/* ========== WhatsApp Modal Styles ========== */

.whatsapp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-modal-overlay.show {
    display: flex !important;
    opacity: 1;
}

.whatsapp-modal {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-modal-overlay.show .whatsapp-modal {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 1.2rem;
    z-index: 10;
}

[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 15px;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.whatsapp-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.modal-header h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.department-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    width: 100%;
}

[dir="ltr"] .department-btn {
    text-align: left;
}

.department-btn:hover {
    background: #f1f5f9;
    border-color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.department-btn.medical:hover {
    border-color: #ef4444;
}

.department-btn.medical:hover .dept-icon {
    background: #fee2e2;
    color: #ef4444;
}

.department-btn.training:hover {
    border-color: #3b82f6;
}

.department-btn.training:hover .dept-icon {
    background: #dbeafe;
    color: #3b82f6;
}

.dept-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.medical .dept-icon {
    background: #fef2f2;
    color: #dc2626;
}

.training .dept-icon {
    background: #eff6ff;
    color: #2563eb;
}

.dept-info {
    flex: 1;
}

.dept-info h4 {
    font-size: 1.15rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.dept-info p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.dept-phone {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 211, 102, 0.1);
    color: #16a34a;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    direction: ltr;
}

.dept-arrow {
    font-size: 1.25rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.department-btn:hover .dept-arrow {
    color: #25D366;
    transform: translateX(-5px);
}

[dir="rtl"] .department-btn:hover .dept-arrow {
    transform: translateX(5px);
}

/* WhatsApp Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1500;
    animation: pulseWidget 2s infinite;
}

[dir="rtl"] .chat-widget {
    right: auto;
    left: 2rem;
}

@keyframes pulseWidget {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-center {
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideLeft 0.8s ease 0.3s forwards;
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideRight 0.8s ease 0.3s forwards;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        order: 1;
    }

    .contact-info {
        order: 2;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .whatsapp-modal {
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .department-btn {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .dept-info {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 3rem 0 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        align-self: center;
    }

    .chat-widget {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    [dir="rtl"] .chat-widget {
        right: auto;
        left: 1rem;
    }

    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .whatsapp-icon {
        font-size: 3rem;
    }
}