/**
 * MedCare Booking Popup
 * All selectors prefixed #medcare-* or .medcare-* to prevent conflicts.
 *
 * @version 1.3.0
 */

#medcare-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

#medcare-popup-overlay.medcare-active {
    display: flex;
}

#medcare-popup-box {
    background: #fff;
    border-radius: 6px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
}

#medcare-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 0;
}

#medcare-popup-close:hover {
    color: #333;
}

#medcare-popup-box h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #003346;
    line-height: 1.3;
}

#medcare-popup-box .medcare-sub {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: #666;
    line-height: 1.55;
}

#medcare-popup-box input[type="text"],
#medcare-popup-box input[type="tel"] {
    display: block;
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 12px;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    font-size: 14.5px;
    box-sizing: border-box;
    color: #222;
    background: #fafafa;
    outline: none;
    -webkit-appearance: none;
}

#medcare-popup-box input[type="text"]:focus,
#medcare-popup-box input[type="tel"]:focus {
    border-color: #003346;
    background: #fff;
}

.medcare-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 12.5px;
    color: #666;
    line-height: 1.5;
}

.medcare-consent-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: #ed1846;
    cursor: pointer;
}

.medcare-consent-row label {
    cursor: pointer;
}

#medcare-popup-submit {
    display: block;
    width: 100%;
    padding: 13px;
    background: #ed1846;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
}

#medcare-popup-submit:hover {
    background: #d01440;
}

#medcare-popup-submit:disabled {
    background: #bbb;
    cursor: not-allowed;
}

#medcare-popup-msg {
    margin-top: 12px;
    font-size: 13.5px;
    text-align: center;
    min-height: 18px;
    font-weight: 500;
    line-height: 1.4;
}

#medcare-popup-msg.medcare-success {
    color: #1a7f4b;
}

#medcare-popup-msg.medcare-error {
    color: #ed1846;
}

@media (max-width: 480px) {
    #medcare-popup-box {
        padding: 28px 24px 22px;
    }

    #medcare-popup-box h2 {
        font-size: 18px;
    }
}