/* ESMD Contact Page Styles - Matching Homepage Design */

.esmd-contact-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--esmd-gray-900);
}

/* Contact Hero - Smaller Version */
.esmd-contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--esmd-white);
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.esmd-contact-hero .esmd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.esmd-contact-hero .esmd-hero-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: esmd-orb-pulse 8s ease-in-out infinite;
}

.esmd-contact-hero .esmd-hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: esmd-orb-pulse 10s ease-in-out 2s infinite reverse;
}

.esmd-contact-hero .esmd-grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 1;
    animation: esmd-grid-drift 30s linear infinite;
}

.esmd-contact-hero .esmd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.esmd-contact-hero .esmd-hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: var(--esmd-dark);
    letter-spacing: -0.03em;
}

.esmd-contact-hero .esmd-hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--esmd-gray-700);
    margin: 0 auto;
    max-width: 600px;
}

/* Contact Info Section */
.esmd-contact-info {
    padding: 6rem 0;
    background: var(--esmd-white);
}

.esmd-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Info Cards */
.esmd-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.esmd-info-card {
    background: var(--esmd-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.esmd-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.esmd-info-card:hover {
    transform: translateX(8px);
    border-color: var(--esmd-primary);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

.esmd-info-card:hover::before {
    opacity: 1;
}

.esmd-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 201, 167, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--esmd-primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.esmd-info-card:hover .esmd-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 201, 167, 0.15));
}

.esmd-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--esmd-dark);
    margin: 0 0 1rem;
}

.esmd-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.esmd-contact-item {
    color: var(--esmd-gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

.esmd-contact-item strong {
    display: block;
    color: var(--esmd-gray-900);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.esmd-contact-item a {
    color: var(--esmd-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.esmd-contact-item a:hover {
    color: var(--esmd-primary-dark);
    text-decoration: underline;
}

.esmd-contact-item p {
    margin: 0;
    color: var(--esmd-gray-700);
}

/* Alert Messages */
.esmd-alert {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.esmd-alert-success {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(0, 201, 167, 0.05));
    border: 1px solid rgba(0, 201, 167, 0.3);
    color: #00aa7e;
}

.esmd-alert-error {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(255, 51, 102, 0.05));
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: #cc2952;
}

/* Contact Form */
.esmd-form-wrapper {
    background: var(--esmd-white);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.esmd-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--esmd-primary), var(--esmd-secondary));
}

.esmd-form-header {
    margin-bottom: 2.5rem;
}

.esmd-form-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--esmd-dark);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.esmd-form-description {
    font-size: 1rem;
    color: var(--esmd-gray-700);
    margin: 0;
    line-height: 1.6;
}

.esmd-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.esmd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.esmd-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.esmd-form-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--esmd-gray-900);
}

.esmd-form-group input,
.esmd-form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--esmd-gray-900);
    background: var(--esmd-white);
    transition: all 0.3s ease;
}

.esmd-form-group input:focus,
.esmd-form-group textarea:focus {
    outline: none;
    border-color: var(--esmd-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.esmd-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.esmd-contact-form .esmd-btn {
    margin-top: 1rem;
    width: fit-content;
}

/* Map Section */
.esmd-map-section {
    padding: 4rem 0;
    background: var(--esmd-gray-100);
}

.esmd-map-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.esmd-map-overlay {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.esmd-map-card {
    background: var(--esmd-white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.esmd-map-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--esmd-dark);
    margin: 0 0 1rem;
}

.esmd-map-card p {
    font-size: 1rem;
    color: var(--esmd-gray-700);
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.esmd-map-card .esmd-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .esmd-contact-hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .esmd-contact-hero .esmd-hero-title {
        font-size: 2rem;
    }

    .esmd-contact-info {
        padding: 4rem 0;
    }

    .esmd-contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .esmd-form-wrapper {
        padding: 2rem;
    }

    .esmd-form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .esmd-map-section {
        padding: 3rem 0;
    }

    .esmd-map-overlay {
        position: static;
        padding: 2rem;
    }

    .esmd-map-card {
        min-width: auto;
    }

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

@media (max-width: 640px) {
    .esmd-contact-hero {
        padding: 3rem 0 2rem;
    }

    .esmd-contact-hero .esmd-hero-title {
        font-size: 1.75rem;
    }

    .esmd-contact-info {
        padding: 3rem 0;
    }

    .esmd-info-card {
        padding: 1.5rem;
    }

    .esmd-card-icon {
        width: 56px;
        height: 56px;
    }

    .esmd-form-wrapper {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .esmd-form-title {
        font-size: 1.5rem;
    }

    .esmd-contact-form .esmd-btn {
        width: 100%;
    }

    .esmd-map-overlay {
        padding: 1.5rem;
    }

    .esmd-map-card {
        padding: 1.5rem;
    }

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