@import url('responsive.css');

/* General Layout */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    color: #2d3748;
    line-height: 1.6;
}

/* Hero — see page-hero.css */

/* Main Content */
.main-content {
    padding: 5rem 2rem;
    margin: 0 auto;
    background-color: #ffffff;
    max-width: 1400px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.875rem;
    text-align: center;
    color: #1a202c;
    margin-bottom: 4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.office-card {
    position: relative;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e0;
}

.office-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 120px;
    height: auto;
    opacity: 0.9;
}

.office-type {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
    color: #718096;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.office-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.office-address {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.office-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-top: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.office-contact a {
    color: #ff2b2b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.office-contact a:hover {
    color: #ff2b2b;
}

.directions-wrapper {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
    margin-bottom: 0;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background: #dc2626;
    color: white !important;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.directions-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* POC Section */
.poc-section {
    margin-top: 5rem;
}

.poc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .poc-grid {
        grid-template-columns: 1fr;
    }
}

.poc-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.poc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e0;
}

.poc-type {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
    color: #718096;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.poc-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.poc-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #4a5568;
}

.poc-contact-info a {
    color: #ff2b2b;
    text-decoration: none;
    font-weight: 500;
}

.poc-contact-info a:hover {
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    margin-top: 5rem;
    padding: 3rem 2rem;
    background-color: #f9fafb;
    border-radius: 8px;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

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

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #003366;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    background: #002244;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-alert {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
}

.contact-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer-section {
    text-align: center;
    padding: 2rem 1rem;
    background: #1a202c;
    color: #e2e8f0;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 3rem 1rem;
    }

    .office-grid {
        gap: 1.5rem;
    }

    .office-card {
        padding: 1.5rem;
    }

    .office-logo {
        width: 100px;
    }

    .contact-form-section {
        margin-top: 3rem;
        padding: 2rem 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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