.contact-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 2rem 0 4rem;
    text-align: center;
    color: var(--text-light);
}

.contact-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
    color: var(--titan-light-gray);
    font-family: var(--font-body);
    opacity: 0.9;
}

.contact-content {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
}

.map-container,
.contact-form {
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    box-sizing: border-box;
    max-width: none !important;
    width: 100%;
}

.map-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 600;
}

.usa-map-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.usa-map {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(.75);
    opacity: 1;
}

.location-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--titan-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s;
}

.location-pin:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background-color: var(--titan-green);
    transition: transform 0.2s;
}

/* Remove the hover styles from the pin itself */
.location-pin:not(.highlight) {
    background-color: var(--titan-green);
    transform: translate(-50%, -50%);
}

.location-pin:not(.highlight):after {
    background-color: var(--titan-green);
    transform: translateX(-50%);
}

/* Only apply hover effects when highlighted */
.location-pin.highlight {
    background-color: var(--titan-green);
    transform: translate(-50%, -50%) scale(1.5);
}

.location-pin.highlight:after {
    background-color: var(--titan-green);
    transform: translateX(-50%) scale(1.5);
}

.location-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-icon {
    margin-right: 15px;
    color: var(--titan-green);
    transition: color 0.2s;
}

.location-details h4 {
    margin: 0 0 5px 0;
    transition: color 0.2s;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.location-details p {
    margin: 0;
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

/* Highlight states - only active on hover */
.location-item.highlight,
.location-pin.highlight {
    background-color: rgba(34, 197, 94, 0.1);
}

.location-item.highlight .location-icon,
.location-pin.highlight {
    color: var(--titan-green-hover);
}

.location-item.highlight .location-details h4 {
    color: var(--titan-green-hover);
}

.location-item.highlight .location-details p {
    color: var(--text-light);
    opacity: 1;
}

/* Remove any lingering highlight styles */
.location-item:not(.highlight) .location-icon {
    color: var(--titan-green);
}

.location-item:not(.highlight) .location-details h4 {
    color: var(--text-light);
}

.location-item:not(.highlight) .location-details p {
    color: var(--text-light);
    opacity: 0.8;
}

/* Position the pins using absolute pixel positions */
.detroit {
    top: 240px;
    left: 380px;
}

.san-diego {
    top: 320px;
    left: 160px;
}

.memphis {
    top: 320px;
    left: 420px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    color: var(--text-light);
    height: 100%;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
    max-width: none !important;
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-group {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0 0 1.5rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--titan-green);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--titan-dark-gray);
    color: var(--titan-white);
    padding: 0.75rem;
    font-size: 1rem;
}

.form-group select:focus option:checked {
    background-color: var(--titan-green);
    color: var(--titan-black);
}

.form-group select:focus option:hover {
    background-color: var(--titan-green);
    color: var(--titan-black);
}

/* Add styles for the select dropdown when open */
.form-group select:focus {
    background-color: var(--titan-dark-gray);
    border-color: var(--titan-green);
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--titan-green);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: var(--titan-green-hover);
}

.submit-button svg {
    width: 20px;
    height: 20px;
}

.error-message,
.success-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.success-message {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero h1 {
        font-size: 3rem;
    }

    .map-container {
        min-height: 500px;
    }

    .location-info {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 4rem 0 2rem;
    }

    .contact-hero h1 {
        font-size: 3rem;
    }

    .contact-hero p {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .contact-content {
        padding: 2rem 0;
    }

    .contact-form {
        padding: 2rem;
    }

    .map-container {
        min-height: 400px;
        padding: 1rem;
    }

    .location-info {
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-form h2 {
        font-size: 1.75rem;
    }

    .map-container {
        min-height: 300px;
    }

    .location-info {
        min-width: 140px;
    }
}

.location-list {
    margin-top: 2rem;
    padding: 0 20px;
}

.location-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.location-icon {
    margin-right: 15px;
    color: var(--titan-green);
    transition: color 0.2s;
}

.location-details h4 {
    margin: 0 0 5px 0;
    transition: color 0.2s;
    font-size: 1rem;
    font-weight: 600;
}

.location-details p {
    margin: 0;
    color: var(--text-light);
    opacity: 0.8;
    transition: color 0.2s;
    font-size: 0.9rem;
}

/* Highlight states */
.location-item.highlight,
.location-pin.highlight {
    background-color: rgba(34, 197, 94, 0.1);
}

.location-item.highlight .location-icon,
.location-pin.highlight {
    color: var(--titan-green-hover);
}

.location-item.highlight .location-details h4 {
    color: var(--titan-green-hover);
}

.location-item.highlight .location-details p {
    color: var(--text-light);
    opacity: 1;
}

/* --- HERO SECTION POLISH --- */
.contact-hero-bg {
    background: linear-gradient(120deg, rgba(29,185,84,0.10) 0%, rgba(10,10,10,0.95) 100%);
    color: var(--titan-white);
    padding: 4rem 0 3rem 0;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-bg h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    color: var(--titan-green);
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--titan-light-gray);
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-body);
}

/* --- CONTACT GRID & CARD POLISH --- */
.contact-content-grid {
    margin: 3rem 0 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
}

.contact-card {
    background: var(--titan-dark-gray);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(29,185,84,0.10);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 420px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
}

.contact-card h2 {
    font-size: 1.5rem;
    color: var(--titan-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-card p, .contact-card label, .contact-card input, .contact-card textarea, .contact-card select {
    font-family: var(--font-body);
}

.contact-card label {
    color: var(--titan-light-gray);
    font-size: 1rem;
    font-weight: 500;
}

.contact-card input, .contact-card textarea, .contact-card select {
    background: var(--titan-black);
    color: var(--titan-white);
    border: 1px solid var(--titan-mid-gray);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    transition: border-color 0.2s;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-card input:focus, .contact-card textarea:focus, .contact-card select:focus {
    border-color: var(--titan-green);
    outline: none;
}

.contact-card textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-card .btn-primary {
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-hero-bg {
        padding: 3rem 1rem 2rem 1rem;
    }
}

.footer-bottom-logo {
    height: 24px !important;
    width: auto !important;
    margin-right: 10px;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(71%) sepia(98%) saturate(2476%) hue-rotate(86deg) brightness(90%) contrast(90%);
}

.contact-card input,
.contact-card textarea,
.contact-card select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* --- CONTACT FORM INPUTS FULL WIDTH --- */
#contactForm,
.contact-form form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0;
} 