/* ── Overlay ─────────────────────────────────────────────────────────────── */
#hlgp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
}
#hlgp-overlay.hlgp-active {
    display: flex;
    animation: hlgp-fadein 0.3s ease;
}
@keyframes hlgp-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Popup Box ───────────────────────────────────────────────────────────── */
#hlgp-popup {
    background: #111;
    color: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 4px;
    padding: 40px 36px 36px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: hlgp-slideup 0.35s ease;
    box-sizing: border-box;
}
@keyframes hlgp-slideup {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Close Button ────────────────────────────────────────────────────────── */
#hlgp-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    z-index: 10;
}
#hlgp-close:hover { color: #fff; }

/* ── Heading ─────────────────────────────────────────────────────────────── */
#hlgp-popup h2#hlgp-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    color: #fff;
}
.hlgp-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0 0 24px;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.hlgp-field {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Give the select field a higher z-index so its native dropdown isn't clipped */
.hlgp-field-select {
    z-index: 5;
}

#hlgp-form input,
#hlgp-form select,
#hlgp-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 2;
}
#hlgp-form input::placeholder,
#hlgp-form textarea::placeholder { color: #666; }

/* Select needs a solid background so it renders over other fields */
#hlgp-form select {
    color: #666;
    cursor: pointer;
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}
#hlgp-form select.hlgp-selected { color: #fff; }
#hlgp-form select option { background: #1a1a1a; color: #fff; }
#hlgp-form select option:first-child { color: #666; }

#hlgp-form input:focus,
#hlgp-form select:focus,
#hlgp-form textarea:focus { border-bottom-color: #fff; }
#hlgp-form textarea { resize: none; }

/* ── Note ────────────────────────────────────────────────────────────────── */
.hlgp-required-note {
    font-size: 11px;
    color: #555;
    font-style: italic;
    margin: 6px 0 18px;
}

/* ── Error ───────────────────────────────────────────────────────────────── */
.hlgp-error-msg {
    background: #3a0000;
    border: 1px solid #a00;
    color: #ff8080;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ── Submit Button ───────────────────────────────────────────────────────── */
#hlgp-submit {
    width: 100%;
    background: #fff;
    color: #111;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 2px;
}
#hlgp-submit:hover { background: #ddd; }
#hlgp-submit:disabled { background: #555; color: #999; cursor: not-allowed; }

/* ── Success State ───────────────────────────────────────────────────────── */
#hlgp-success {
    text-align: center;
    padding: 30px 0;
}
.hlgp-check {
    display: inline-block;
    width: 54px;
    height: 54px;
    line-height: 54px;
    border-radius: 50%;
    background: #1a5e1a;
    color: #7fdd7f;
    font-size: 26px;
    margin-bottom: 14px;
}
#hlgp-success p {
    color: #bbb;
    font-size: 15px;
    margin: 0;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #hlgp-popup { padding: 32px 20px 28px; }
}
/* ── Kill Select2 on our field ───────────────────────────────────────────── */
#hlgp-popup .select2-container {
    display: none !important;
}
#hlgp-popup #hlgp_city {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: #111 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    padding-right: 24px !important;
    color: #666 !important;
    border-bottom: 1px solid #444 !important;
    width: 100% !important;
}
#hlgp-popup #hlgp_city.hlgp-selected {
    color: #fff !important;
}
