:root {
    --transition-slow: 0.8s;
    --transition-medium: 0.5s;
    --transition-fast: 0.3s;
}

.contact-intro {
    color: black;
    position: relative;
    background-image: url('images/whitetexture.jpg');
    background-size: cover;
    background-position: center center;
    padding-top: 8rem;
}

.contact-intro h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 1s ease forwards;
}

.contact-intro .h-px {
    width: 0;
    animation: lineGrow 1.5s ease forwards 0.5s;
}

.contact-intro p {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

/* Location Cards */
.location-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, black, #333);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.location-card:hover::before {
    transform: scaleX(1);
}

/* Map Container */
.map-container {
    position: relative;
    transition: all 0.5s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-container:hover::after {
    opacity: 1;
}

/* Form Styling */
.bg-gray-50 {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

input, select, textarea {
    transition: all 0.3s ease;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: black;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Button Styles */
.booking-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.booking-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.5s ease;
}

.booking-btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.office-hours li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: padding 0.3s ease;
}

.office-hours li:hover {
    padding-left: 0.5rem;
    background: rgba(0,0,0,0.02);
}

/* Animations */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lineGrow {
    from { width: 0; }
    to { width: 128px; }
}

@media (max-width: 768px) {
    .contact-intro {
        padding: 2rem 1rem;
        padding-top: 10.5rem;
    }

    .contact-intro h1 {
        font-size: 2.5rem;
    }

    .location-card {
        margin-bottom: 1.5rem;
    }

    .map-container {
        height: 200px !important;
    }

    .booking-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    #appointment-form h2 {
        font-size: 40px;
    }

    #appointment-form {
        padding: 40px 0px;
    }
}

.fa-solid {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

a:hover .fa-solid {
    transform: translateX(2px);
}

.form-success {
    background: #f0fdf4;
    border-color: #166534;
}

.form-error {
    background: #fef2f2;
    border-color: #991b1b;
}