/* ── Fixed Left Card ─────────────────────────────────────────────────────── */
#hlgp-card {
    position: absolute;
    top: 65%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 99999;
    width: 300px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px 24px 24px;
    box-sizing: border-box;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.55);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hidden state */
#hlgp-card.hlgp-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-20px);
}

/* Visible state */
#hlgp-card.hlgp-visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) translateX(0);
}

/* ── Title ───────────────────────────────────────────────────────────────── */
.hlgp-form-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.3;
    letter-spacing: 0.3px;
}
.hlgp-form-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 18px;
    line-height: 1.5;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.hlgp-field {
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.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 rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 12px;
    padding: 8px 2px;
    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: rgba(255,255,255,0.35); }

#hlgp-form input:focus,
#hlgp-form select:focus,
#hlgp-form textarea:focus { border-bottom-color: rgba(255,255,255,0.8); }

/* ── Select ──────────────────────────────────────────────────────────────── */
#hlgp-form select {
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23ffffff' opacity='0.4' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
}
#hlgp-form select.hlgp-selected { color: #fff; }
#hlgp-form select option { background: #1a1a1a; color: #fff; }

/* Kill Select2 */
#hlgp-card .select2-container { display: none !important; }
#hlgp_city {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#hlgp-form textarea { resize: none; }

/* ── Error ───────────────────────────────────────────────────────────────── */
.hlgp-error-msg {
    background: rgba(160,0,0,0.3);
    border: 1px solid rgba(255,80,80,0.4);
    color: #ffaaaa;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ── Submit ──────────────────────────────────────────────────────────────── */
#hlgp-submit {
    width: 100%;
    background: #ffffff;
    color: #111;
    border: none;
    padding: 11px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    margin-top: 2px;
}
#hlgp-submit:hover    { background: #e8e8e8; }
#hlgp-submit:disabled { background: rgba(255,255,255,0.25); color: rgba(0,0,0,0.4); cursor: not-allowed; }

/* ── Success ─────────────────────────────────────────────────────────────── */
#hlgp-success {
    text-align: center;
    padding: 20px 0;
    color: #fff;
}
.hlgp-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(40,160,40,0.25);
    border: 1px solid rgba(100,220,100,0.4);
    color: #7fdd7f;
    font-size: 22px;
    margin-bottom: 12px;
}
#hlgp-success p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #hlgp-card {
        position: absolute;
        top: 530px;
        left: 50%;
        bottom: auto;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 320px;
        padding: 16px 16px 14px;
    }
    #hlgp-card.hlgp-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(-10px);
    }
    #hlgp-card.hlgp-visible {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) translateY(0);
    }

    /* Tighter fields on mobile */
    .hlgp-field {
        margin-bottom: 6px;
    }
    #hlgp-form input,
    #hlgp-form select,
    #hlgp-form textarea {
        padding: 5px 2px;
        font-size: 11px;
    }
    #hlgp-form textarea {
        rows: 2;
        height: 40px;
    }
    .hlgp-form-title {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }
    .hlgp-form-subtitle {
        font-size: 10px;
        margin-bottom: 10px;
    }
    #hlgp-submit {
        padding: 9px;
        font-size: 10.5px;
        margin-top: 2px;
    }
}
/* ── Mobile field with flag prefix ──────────────────────────────────────── */
.hlgp-mobile-wrap {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hlgp-mobile-prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.7);
    font-size: 11.5px;
    white-space: nowrap;
    padding: 7px 8px 7px 2px;
    border-bottom: none;
    flex-shrink: 0;
}
.hlgp-mobile-prefix span {
    font-size: 16px; /* flag emoji size */
    line-height: 1;
}
.hlgp-mobile-wrap #hlgp_mobile {
    border-bottom: none !important;
    padding-left: 4px;
    flex: 1;
}