/* ==========================================
   SCHEDULING BUTTON STYLING
   ========================================== */

.scheduling-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

/* Main Button Styles */
.btn-scheduling {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 50px; /* Ensure 44px+ touch target */
    
    /* Gradient Background - Green palette unified with site design */
    background: linear-gradient(135deg, #679d2d 0%, #557a24 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(103, 157, 45, 0.4),
                0 0 20px rgba(85, 122, 36, 0.2);
    
    /* Text Properties */
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Hover State */
.btn-scheduling:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(103, 157, 45, 0.6),
                0 0 30px rgba(85, 122, 36, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #557a24 0%, #679d2d 100%);
}

/* Active/Click State */
.btn-scheduling:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 15px rgba(103, 157, 45, 0.4);
}

/* Focus State (Accessibility) */
.btn-scheduling:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

/* Icon Styling */
.scheduling-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-scheduling:hover .scheduling-icon {
    transform: rotate(10deg) scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Text Container */
.scheduling-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 0.15rem;
}

.scheduling-main {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.scheduling-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

/* Arrow Icon */
.scheduling-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    opacity: 0.8;
}

.btn-scheduling:hover .scheduling-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Pulse Animation (Subtle) */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(103, 157, 45, 0.4),
                    0 0 20px rgba(85, 122, 36, 0.2);
    }
    50% {
        box-shadow: 0 10px 30px rgba(103, 157, 45, 0.6),
                    0 0 30px rgba(85, 122, 36, 0.3);
    }
}

.btn-scheduling {
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-scheduling:hover {
    animation: none;
}

/* ==========================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .btn-scheduling,
    .scheduling-icon,
    .scheduling-arrow {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .btn-scheduling {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        gap: 0.75rem;
        min-height: 48px; /* Maintain touch target */
    }

    .scheduling-icon {
        font-size: 1.25rem;
    }

    .scheduling-main {
        font-size: 1rem;
    }

    .scheduling-subtext {
        font-size: 0.8rem;
    }

    .scheduling-arrow {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .scheduling-button-container {
        width: 100%;
    }

    .btn-scheduling {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        gap: 0.6rem;
        min-height: 44px; /* WCAG AAA minimum touch target */
        white-space: normal;
    }

    .scheduling-icon {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .scheduling-main {
        font-size: 0.95rem;
    }

    .scheduling-subtext {
        font-size: 0.75rem;
    }

    .scheduling-arrow {
        display: none; /* Hide arrow on very small screens for space */
    }
}

/* ==========================================
   LIGHT/DARK MODE SUPPORT
   ========================================== */

@media (prefers-color-scheme: light) {
    .btn-scheduling {
        background: linear-gradient(135deg, #679d2d 0%, #557a24 100%);
        box-shadow: 0 10px 30px rgba(103, 157, 45, 0.35),
                    0 0 20px rgba(85, 122, 36, 0.15);
    }

    .btn-scheduling:hover {
        box-shadow: 0 20px 40px rgba(103, 157, 45, 0.5),
                    0 0 30px rgba(85, 122, 36, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@media (prefers-color-scheme: dark) {
    .btn-scheduling {
        background: linear-gradient(135deg, #7fb82e 0%, #629d2a 100%);
        box-shadow: 0 10px 30px rgba(127, 184, 46, 0.5),
                    0 0 20px rgba(98, 157, 42, 0.3);
    }

    .btn-scheduling:hover {
        box-shadow: 0 20px 40px rgba(127, 184, 46, 0.6),
                    0 0 30px rgba(98, 157, 42, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* ==========================================
   CONTACT INFORMATION INTEGRATION
   ========================================== */

/* Separator between contact items and scheduling button */
.contact-item-separator {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7e8;
}

/* Styling button within contact information container */
.contact-information-container .scheduling-button-container {
    margin: 0;
}

.contact-information-container .btn-scheduling {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    gap: 0.75rem;
    justify-content: center;
    white-space: normal;
    min-height: 48px;
}

.contact-information-container .scheduling-main {
    font-size: 1rem;
}

.contact-information-container .scheduling-subtext {
    font-size: 0.8rem;
}

/* Mobile responsive - in contact box */
@media (max-width: 576px) {
    .contact-information-container .btn-scheduling {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    .contact-information-container .scheduling-arrow {
        display: flex; /* Show arrow in contact box even on mobile */
    }
}
