/************Modal css**************/
.btn.btn-big {
    font-size: 18px;
    padding: 15px 20px;
    min-width: 100px;
}
#modal-one .btn-close {
    color: #dc3545;
    font-size: 32px;
    text-decoration: none;
    position: absolute;
    right: 10px;
    top: 6px;
    z-index: 100;
    pointer-events: auto;
    line-height: 36px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 0;
    display: inline-block;
    box-sizing: border-box;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
#modal-one .btn-close:hover {
    color: #fff;
    background: #dc3545;
    transform: scale(1.08);
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

body.modal-open {
    overflow: hidden;
}

#modal-one.modal {
    display: block !important;
    position: relative;
    z-index: 9999;
}
#modal-one.modal.modal-closed {
    display: none !important;
}
#modal-one .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    animation: backdropFadeIn 0.35s ease-out;
}
#modal-one .modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 11;
    transform: translate(-50%, -50%);
    background: #fefefe;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 640px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    animation: modalSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#modal-one .modal-content-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #0f8f45 #eee;
}
#modal-one .modal-content-scroll::-webkit-scrollbar {
    width: 8px;
}
#modal-one .modal-content-scroll::-webkit-scrollbar-thumb {
    background: #0f8f45;
    border-radius: 6px;
}
.modal-body {
    padding: 14px 20px 18px;
    text-align: center;
}
.modal-body p, .modal-footer p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px;
}
.modal-header, .modal-footer {
    flex-shrink: 0;
}
.modal-header {
    border-bottom: 1px solid #eee;
}
.notifi-banner {
    width: 100%;
    max-height: 90px;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.modal-footer {
    border-top: 1px solid #eee;
    text-align: center;
    padding: 12px 16px 18px;
}
.modal-footer h5 {
    color: #0f8f45;
    font-family: "Brygada 1918", sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px;
}
.modal-booking-btn img {
    max-width: 220px;
    height: auto;
}

.bulk-billing-promo {
    background: #f3faf6;
    padding: 18px 20px 8px;
    text-align: center;
    animation: fadeInUp 0.45s ease 0.1s both;
}
.bulk-billing-intro {
    margin: 0 0 4px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.bulk-billing-title {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.1;
    color: #0f8f45;
    font-weight: 700;
    animation: titlePulse 2.5s ease-in-out 0.8s infinite;
}
.bulk-billing-subtitle {
    margin: 0 0 8px;
    font-size: 16px;
    color: #444;
    font-weight: 500;
}
.medicare-card-illus {
    max-width: 120px;
    margin: 0 auto 4px;
    animation: cardFloat 3s ease-in-out 1s infinite;
}
.medicare-card-illus svg {
    width: 100%;
    height: auto;
    display: block;
}
.bulk-billing-bar {
    background: #0f8f45;
    color: #fff;
    text-align: center;
    padding: 12px 18px 14px;
    animation: fadeInUp 0.45s ease 0.2s both;
}
.bulk-billing-required {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.bulk-billing-note {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #ffe566;
}
.bulk-fee-btn {
    display: inline-block;
    background: #fff;
    color: #0f8f45;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bulk-fee-btn:hover {
    background: #e8f7ee;
    color: #0a6b34;
    transform: translateY(-2px);
}
.modal-header {
    animation: fadeInUp 0.45s ease 0.3s both;
}
.modal-body {
    animation: fadeInUp 0.45s ease 0.38s both;
}
.modal-footer {
    animation: fadeInUp 0.45s ease 0.46s both;
}

@media (max-width: 680px) {
    #modal-one .modal-dialog {
        width: calc(100vw - 24px);
        max-height: 92vh;
    }
    .bulk-billing-title {
        font-size: 26px;
    }
    .notifi-banner {
        max-height: 75px;
    }
    .modal-footer h5 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-backdrop,
    .modal .modal-dialog,
    .bulk-billing-promo,
    .bulk-billing-bar,
    .bulk-billing-title,
    .medicare-card-illus,
    .modal-header,
    .modal-body,
    .modal-footer {
        animation: none;
    }
}
