/* Reset and base styles */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --text: #202124;
    --text-light: #5f6368;
    --border: #dadce0;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --error: #d93025;
    --success: #188038;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.contact-hero {
    text-align: center;
    padding: 1rem 1rem;
    margin-bottom: 3rem;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.contact-hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-form-section {
    background: var(--background);
    padding: 0;
}

.form-card {
    background: #f5f9ff;
    border-radius: 8px;
}

.form-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

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

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

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

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--background);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

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

.submit-btn {
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    width: auto;
    align-self: flex-start;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn:active {
    transform: translateY(1px);
}

.contact-info-section {
    background: var(--primary);
    border-radius: 8px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card {
    color: white;
    padding: 0 0 0 68px; /* Space for icon + gap on left only */
    background: transparent;
    box-shadow: none;
    position: relative;
    min-height: 48px; /* Height of icon */
}

.info-card h2 {
    position: absolute;
    left: 0;
    top: -40px; /* Position above the icon */
    font-size: 1.6rem;
    color: white;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 10px;
    margin-bottom: 2rem;
}

/* Adjust for social card to handle the h2 differently */
.social-card {
    padding-left: 0 !important;
}

.social-card h2 {
    position: static;
    margin-bottom: 2rem;
}

.info-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin: 0;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

p.second {
    margin: 0 !important;
}
.info-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.info-card:hover .info-icon {
    background: rgba(255, 255, 255, 0.25);
}

.info-card h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-top: 32px;
}

/* Add subtle border between cards except last one */
.info-card:not(:last-child) {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social card specific styles */
.social-card {
    background: transparent;
    padding-top: 1rem;
    top:-3rem;
}

.social-card h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.cta-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.cta-card p {
    margin-bottom: 16px;
}

.cta-btn {
    width: 100%;
    padding: 12px;
    background: #0b5ed7;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-btn:hover {
background: #0a52c0;
}

.map-section {
background: white;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-container {
    background: #f5f9ff;
    border-radius: 12px;
    padding: 2.5rem;
    height: 71rem;
    margin-bottom: 0rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.form-card h2,
.form-card .form-description {
    color: #1a365d; /* Dark blue for better contrast on light background */
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #f5f9ff;
    border: 1px solid #c7d9f1;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

.map-placeholder {
height: 400px;
background: #f1f5f9;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
color: #0b5ed7;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #0b5ed7;
}

.map-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
}

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

    .contact-info-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .contact-hero p {
        font-size: 1rem;
    }

    .form-card {
        padding: 28px 20px;
    }

    .form-card h2 {
        font-size: 1.5rem;
    }

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

    .contact-info-section {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        height: 300px;
    }
}