/* Contact section inherits background from main.css */

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px; /* Increased gap further */
    flex-wrap: wrap;
}

.contact-info, .contact-form-container {
    flex: 1;
    padding: clamp(25px, 4vw, 40px); /* Responsive padding */
    background-color: var(--card-bg-darker); /* Use variable */
    border-radius: 10px;
    border: 1px solid var(--border-color-medium); /* Use variable */
    margin-bottom: 30px;
    color: var(--text-light);
    min-width: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35); /* Enhanced shadow */
}

.contact-info h3, .contact-form-container h3 {
    font-size: clamp(20px, 3.5vw, 24px); /* Responsive size */
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--accent-gold);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-medium);
    font-weight: 600;
}


.contact-info p {
    margin-bottom: 18px; /* More space */
    font-size: 16px;
    color: var(--text-medium);
    display: flex; /* Align icon and text */
    align-items: flex-start; /* Align to top */
}
.contact-info p a {
    color: var(--accent-gold);
    word-break: break-word; /* Prevent long emails/links overflowing */
}
.contact-info p a:hover, .contact-info p a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.contact-info i.fas { /* Target FontAwesome icons specifically */
    margin-right: 15px; /* More space */
    color: var(--accent-gold);
    width: 20px;
    text-align: center;
    flex-shrink: 0; /* Prevent icon shrinking */
    padding-top: 0.1em; /* Align icon slightly better */
}

/* Specific styling for social icons in contact section */
.contact-social-icons {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-left: 35px; /* Indent to align with text */
}

.contact-social-icons a {
    color: rgba(186, 153, 101, 0.9); /* Less transparent gold */
    font-size: 24px;
    margin-right: 20px; /* More spacing */
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.contact-social-icons a:last-child {
    margin-right: 0;
}

.contact-social-icons a:hover, .contact-social-icons a:focus {
    color: #ffffff;
    transform: scale(1.15); /* Slightly larger scale */
}
.contact-social-icons a:focus-visible { /* Ensure focus outline */
     outline: 2px solid var(--focus-outline-color);
     outline-offset: 2px;
     border-radius: 50%;
}

.map-container {
    margin-top: 30px;
    width: 100%;
    height: 350px; /* Increased height */
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid var(--border-color-subtle);
    background-color: #222;
    position: relative; /* For placeholder positioning */
}
.map-container .loading-placeholder { /* Style loading text */
    color: var(--text-medium);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(80%) brightness(0.8) contrast(1.1);
    transition: filter 0.4s ease;
}
.map-container:hover iframe, .map-container:focus-within iframe {
    filter: grayscale(0%) brightness(1) contrast(1);
}


/* --- Contact Form Specific Styles --- */
.contact-form-container p:first-of-type { /* Style paragraph text above form */
     margin-bottom: 30px;
     color: var(--text-medium);
     line-height: 1.7;
 }

.contact-form .form-group {
    margin-bottom: 25px;
}

/* Form input styles inherit from main.css */

/* Grouping for side-by-side fields */
.contact-method-group,
.vehicle-details-group {
    display: flex;
    gap: 20px; /* Increased gap */
    flex-wrap: wrap;
}

.contact-method-group .form-subgroup,
.vehicle-details-group .form-subgroup {
    flex: 1;
    min-width: 180px; /* Slightly larger min width */
}
/* Specific fix for year input potentially being too wide */
.vehicle-details-group .form-subgroup:last-child {
     flex-grow: 0.5;
}


.form-hint {
     font-size: 14px;
     color: var(--text-medium); /* Slightly brighter hint */
     margin-top: -15px;
     margin-bottom: 15px;
     text-align: left; /* Align left */
     padding-left: 5px;
 }

/* Error message for contact method choice */
#contact-method-error {
     margin-top: -10px; /* Pull up slightly */
     margin-bottom: 15px;
}

.contact-form textarea {
    /* Inherits base styles */
    min-height: 130px; /* Use min-height */
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}
/* Submit button inherits .cta-button styles */
.contact-form .cta-button {
    /* margin-top: 15px; No longer needed due to form-footer */
    width: auto; /* Allow natural width */
    flex-shrink: 0; /* Prevent shrinking */
}
/* Spinner styles inherited */


@media (max-width: 992px) { /* Adjust breakpoint for side-by-side */
    .contact-content {
        gap: 30px;
    }
    .contact-info, .contact-form-container {
        min-width: calc(50% - 15px); /* Try to keep side-by-side longer */
    }
}

@media (max-width: 768px) {
    .contact-info, .contact-form-container {
        min-width: 100%; /* Stack fully */
        margin-bottom: 30px; /* Ensure space when stacked */
    }

    /* Stack grouped fields on smaller screens */
    .contact-method-group,
    .vehicle-details-group {
        flex-direction: column;
        gap: 25px; /* Increase gap when stacked */
    }
    .contact-method-group .form-subgroup,
    .vehicle-details-group .form-subgroup {
        min-width: 100%;
    }
     .form-hint {
         margin-top: -10px; /* Adjust hint position */
         margin-bottom: 20px;
         text-align: center;
     }
     .vehicle-details-group .form-subgroup:last-child {
         flex-grow: 1; /* Allow year to take full width */
    }
    .form-footer {
        flex-direction: column;
        align-items: stretch; /* Make button full width */
        gap: 15px;
    }
    .contact-form .cta-button {
        width: 100%;
    }
     #form-spinner {
         margin-left: 0; /* Reset margin */
         justify-content: center; /* Center spinner text */
     }
}