.appointment-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.appointment-modal.active {
    opacity: 1;
    visibility: visible;
}
.appointment-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.appointment-modal-content {
    position: relative;
    background: white;
    border-radius: 30px;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-3d);
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.appointment-modal.active .appointment-modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
}
.modal-header-custom {
    text-align: center;
    margin-bottom: 2.5rem;
}
.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 24px;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-primary);
    animation: iconBounce 2s ease-in-out infinite;
}
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}
.modal-header-custom h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}
.modal-header-custom p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}
.appointment-form .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.input-with-icon {
    position: relative;
}
.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.125rem;
    z-index: 2;
}
.input-with-icon .form-control {
    padding-left: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    transition: var(--transition);
    font-size: 0.95rem;
}
.input-with-icon .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(209, 0, 114, 0.1);
    transform: translateY(-2px);
}
.input-with-icon textarea.form-control {
    padding-top: 1rem;
    resize: vertical;
}
.input-with-icon select.form-control {
    cursor: pointer;
}
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}
.modal-actions .btn {
    flex: 1;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 14px;
}
.modal-actions .btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-color);
}
.modal-actions .btn-outline-secondary:hover {
    background: var(--light-color);
    border-color: var(--text-color);
}
.feature-card,
.service-card,
.team-card,
.blog-card {
    will-change: transform;
}
.floating-appointment-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(209, 0, 114, 0.4);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatButton 3s ease-in-out infinite;
}
.floating-appointment-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(209, 0, 114, 0.5);
}
.floating-appointment-btn .btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}
.floating-appointment-btn:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(360deg);
}
.floating-appointment-btn .btn-text {
    font-size: 1rem;
    letter-spacing: 0.02em;
}
@keyframes floatButton {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@media (max-width: 768px) {
    .floating-appointment-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    .floating-appointment-btn .btn-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .floating-appointment-btn .btn-text {
        font-size: 0.9rem;
    }
}
@media (max-width: 576px) {
    .floating-appointment-btn {
        bottom: 15px;
        right: 15px;
        padding: 0.75rem 1rem;
    }
    .floating-appointment-btn .btn-text {
        display: none;
    }
    .floating-appointment-btn .btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
}
@media (max-width: 991px) {
    .appointment-modal-content {
        padding: 2rem;
        max-width: 95%;
        width: 95%;
    }
    .modal-header-custom {
        margin-bottom: 2rem;
    }
    .modal-header-custom h2 {
        font-size: 1.75rem;
    }
    .modal-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .before-visit-content {
        padding: 1.5rem !important;
    }
    .modal-actions {
        padding: 1rem 1.5rem !important;
    }
}
@media (max-width: 767px) {
    .appointment-modal-content {
        padding: 1.5rem;
        border-radius: 20px;
        max-height: 95vh;
    }
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.125rem;
    }
    .modal-header-custom {
        margin-bottom: 1.5rem;
    }
    .modal-header-custom h2 {
        font-size: 1.5rem;
    }
    .modal-header-custom p {
        font-size: 0.9rem;
    }
    .modal-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
        font-size: 1.75rem;
        border-radius: 18px;
    }
    .before-visit-content {
        padding: 1rem !important;
        max-height: 50vh !important;
    }
    .before-visit-content .info-section {
        margin-bottom: 1.5rem !important;
    }
    .before-visit-content h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    .before-visit-content p,
    .before-visit-content ul li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .before-visit-content .lead {
        font-size: 1rem;
        margin-bottom: 1.25rem !important;
    }
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 1rem !important;
    }
    .modal-actions .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    .appointment-form .row {
        row-gap: 1rem !important;
    }
}
@media (max-width: 480px) {
    .appointment-modal-content {
        padding: 1.25rem;
        width: 98%;
        max-width: 98%;
    }
    .modal-header-custom h2 {
        font-size: 1.35rem;
    }
    .modal-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 14px;
    }
    .before-visit-content {
        padding: 0.75rem !important;
    }
    .before-visit-content h4 {
        font-size: 1rem;
    }
    .before-visit-content p,
    .before-visit-content ul li {
        font-size: 0.85rem;
    }
    .modal-actions {
        padding: 0.75rem !important;
    }
}
