.hemo-appointment-popup,
.hemo-appointment-popup * {
    box-sizing: border-box;
}

.hemo-appointment-popup[hidden] {
    display: none !important;
}

.hemo-appointment-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(31, 16, 22, 0.66);
    backdrop-filter: blur(5px);
    font-family: "Open Sans", Arial, sans-serif;
}

.hemo-appointment-popup__card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 44px 42px 28px;
    border: 1px solid #f2dfe2;
    border-top: 5px solid #b51e3d;
    border-radius: 24px;
    background: #fffdfc;
    box-shadow: 0 24px 80px rgba(33, 11, 20, 0.28);
    color: #30232a;
    text-align: center;
    animation: hemo-appointment-enter 220ms ease-out;
}

.hemo-appointment-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5ebed;
    color: #68434c;
    cursor: pointer;
}

.hemo-appointment-popup__close:hover {
    background: #ecdadd;
}

.hemo-appointment-popup__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border: 1px solid #f0d2d9;
    border-radius: 24px;
    background: #fceef1;
    color: #b51e3d;
}

.hemo-appointment-popup__eyebrow {
    margin: 0 0 12px;
    color: #a61b38;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.5px;
}

.hemo-appointment-popup__title {
    margin: 0 0 18px;
    padding: 0;
    color: #30232a;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.7px;
}

.hemo-appointment-popup__text {
    margin: 0 0 26px;
    color: #66555e;
    font-size: 15px;
    line-height: 1.75;
}

.hemo-appointment-popup__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid #b51e3d;
    border-radius: 12px;
    background: #b51e3d;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
    transition: background 150ms ease;
}

.hemo-appointment-popup__cta:hover {
    border-color: #95152f;
    background: #95152f;
}

.hemo-appointment-popup__continue {
    display: block;
    min-height: 44px;
    margin: 10px auto 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #66555e;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.hemo-appointment-popup__continue:hover {
    background: #f5ebed;
    color: #30232a;
}

.hemo-appointment-popup a:focus-visible,
.hemo-appointment-popup button:focus-visible {
    outline: 3px solid #30232a;
    outline-offset: 3px;
}

.hemo-appointment-popup__title:focus {
    outline: none;
}

.hemo-appointment-popup__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes hemo-appointment-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .hemo-appointment-popup { padding: 16px; }
    .hemo-appointment-popup__card { padding: 40px 24px 22px; max-height: calc(100vh - 32px); border-radius: 20px; }
    .hemo-appointment-popup__title { font-size: 26px; }
    .hemo-appointment-popup__text { font-size: 14px; }
    .hemo-appointment-popup__icon { width: 72px; height: 72px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .hemo-appointment-popup__card { animation: none; }
    .hemo-appointment-popup__cta { transition: none; }
}
