/* Membership Register pop-up
   Save as: wp-content/themes/highfield-dental-practice/assets/css/register-modal.css */

.hf-modal[hidden] {
    display: none;
}

.hf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hf-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(33, 37, 41, 0.65);
}

.hf-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hf-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
}

.hf-modal__close:hover {
    color: #000;
}

.hf-modal__title {
    margin: 0 0 8px;
}

.hf-modal__intro {
    margin: 0 0 20px;
}

/* Keep the page from scrolling behind the modal */
body.hf-modal-open {
    overflow: hidden;
}

/* Register button spacing inside pricing cards */
.pricing-card .hf-register-btn {
    margin: 12px auto 0 !important; /* .pricing-card is a flex column; theme zeroes .btn margins */
    align-self: center;
}


/* Brand styling - match the gold theme buttons (#EDA700) */
#hf-register-modal .gform_button {
    background-color: #EDA700 !important;
    border-color: #EDA700 !important;
    color: #393D3F !important;
    text-transform: uppercase;
    border-radius: 0;
    padding: 12px 20px;
}

#hf-register-modal .gform_button:hover,
#hf-register-modal .gform_button:focus {
    background-color: #d69700 !important;
    border-color: #d69700 !important;
    color: #393D3F !important;
}


/* Card Register buttons - charcoal secondary style (Edward, 2026-07-08) */
.hf-register-btn {
    background-color: #393D3F !important;
    border-color: #393D3F !important;
    color: #ffffff !important;
    text-transform: uppercase;
    border-radius: 0;
    padding: 12px 20px;
}

.hf-register-btn:hover,
.hf-register-btn:focus {
    background-color: #24272a !important;
    border-color: #24272a !important;
    color: #ffffff !important;
}
