/* Call to Book CTA Button */
#callCta {
    position: fixed;
    z-index: 999;
    background: #7BAF6E;
    color: #ffffff;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(123, 175, 110, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile: Full-width bottom bar */
@media (max-width: 768px) {
    #callCta {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 1rem;
        border-radius: 0;
        min-height: 60px;
    }
}

/* Desktop: Hide floating button (using navbar button instead) */
@media (min-width: 769px) {
    #callCta {
        display: none;
    }
}

#callCta:active {
    transform: translateY(0);
}

/* Modal Overlay */
#callPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

#callPopup[hidden] {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Card */
.call-modal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
#closePopup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#closePopup:hover {
    background: #f0f0f0;
    color: #333;
}

#closePopup:focus {
    outline: 2px solid #7BAF6E;
    outline-offset: 2px;
}

/* Modal Title */
.call-modal-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Phone Number Display */
#phoneText {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* Actions Row */
.call-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.call-actions button,
.call-actions a {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
}

#copyBtn {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #333;
}

#copyBtn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

#copyBtn:focus {
    outline: 2px solid #7BAF6E;
    outline-offset: 2px;
}

#copyBtn.copied {
    background: #7BAF6E;
    border-color: #7BAF6E;
    color: #ffffff;
}

#telLink {
    background: #7BAF6E;
    border: 2px solid #7BAF6E;
    color: #ffffff;
}

#telLink:hover {
    background: #6a9e5e;
    border-color: #6a9e5e;
}

#telLink:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* QR Code Section */
.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.qr-wrap p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    text-align: center;
}

#qr,
#qrFallback {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .call-modal-card {
        padding: 1.5rem;
    }

    .call-modal-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #phoneText {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .call-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .call-actions button,
    .call-actions a {
        font-size: 0.85rem;
    }
}

/* Accessibility - Focus visible */
*:focus-visible {
    outline: 2px solid #7BAF6E;
    outline-offset: 2px;
}
