/* Overlay and Container */
#agpcp-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

#agpcp-modal {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 20px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#agpcp-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

/* Brand Logo & Title */
.agpcp-brand-logo {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    display: block;
}

#agpcp-modal h2 {
    margin: 0 0 18px 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #111827;
    text-transform: uppercase;
}

/* Input Group Container */
.agpcp-field-wrapper {
    margin-bottom: 16px;
    text-align: left;
}

.agpcp-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

#agpcp-name {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    box-sizing: border-box;
}

#agpcp-name:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.agpcp-input-box {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    padding: 2px 10px;
    transition: all 0.2s ease;
}

.agpcp-input-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Flag + Prefix Badge */
.agpcp-country-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 8px 4px;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    user-select: none;
}

.agpcp-flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

/* Phone Field & Icons */
.agpcp-phone-icon {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    color: #9ca3af;
}

#agpcp-phone {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background: transparent;
    letter-spacing: 0.5px;
}

#agpcp-phone::placeholder {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.agpcp-verified-badge {
    width: 18px;
    height: 18px;
    color: #10b981;
    display: none;
    /* revealed via JS when 10 digits entered */
}

.agpcp-sublabel {
    display: block;
    font-size: 11px;
    color: #10b981;
    text-align: right;
    margin-top: 4px;
    font-weight: 600;
}

/* Action Buttons */
.agpcp-btn-primary {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.agpcp-btn-primary:hover {
    background: #1d4ed8;
}

.agpcp-btn-primary:active {
    transform: scale(0.98);
}