



.title-wrapper {
    padding: 4rem;
}

#contact-section .section-title {
    margin-bottom: 1rem;
}

#business-hours div {
    display: flex;
    justify-content: space-between;
}

.bold {
    font-weight: bold;
}


/* -----------------CONTACT FORM------------------ */

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding-top: 0;
}

#contact-section {
    /* Contact form - spans 2 columns on large screens */
    grid-column: span 2;
    grid-row: span 2;
}

#location-map {
    /* Map spans full width */
    grid-column: 1 / -1;
}

#contact-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--background-light);
    border-radius: .375rem;
    grid-row: 1 / 3;
}

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

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

.form-group.floating-label {
    position: relative;
    gap: 0;
}

/* contact section  */


.contact-info {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.business-hours {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

/* contact form - name and phone on same line */
.contact-form .form-group:has(input[name="name"]) {
    grid-column: 1 / 2; /* first half */
}
.contact-form .form-group:has(input[name="phone"]) {
    grid-column: 2 / 3; /* second half */
}

/* contact form - make email and message span full width */
.contact-form .form-group:has(input[name="email"]),
.contact-form .form-group:has(textarea[name="message"]) {
    grid-column: 1 / -1; /* span full width */
}

/* Fallback for browsers that don't support :has() */
.contact-form .form-group:nth-of-type(3), /* email */
.contact-form .form-group:nth-of-type(4) { /* message */
    grid-column: 1 / -1; /* span full width */
}

.contact-form .submit-btn {
    grid-column: 1 / -1; /* span full width */
} 

.form-group label {
    font-weight: 600;
}

.form-group.floating-label label {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-color-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--background-color);
    padding: 0 0.25rem;
    z-index: 1;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label input[readonly] + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-color-secondary);
    font-weight: 600;
    background-color: white;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-color-primary);
    transition: all 0.2s ease;
    box-shadow: 0 0 0 0px transparent;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: black;
    background-color: white;
}

.form-group.floating-label input:focus,
.form-group.floating-label textarea:focus {
    border-color: black;
    box-shadow: 0 0 0 1px black;
    outline: none;
}

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

/* -----------------MAP SECTION------------------ */

#location-map {
    grid-column: 1 / -1;
    margin-top: 2rem;
    height: 50rem;
}

.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.map-container iframe {
    width: 100%;
    border-radius: 0.5rem;
    height: 100%;
}

/* Success Message for Contact Form */
.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    animation: successSlideIn 0.5s ease-out;
}

.success-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.success-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
