.explore-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.explore-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.explore-popup-content {
    background: #18181b;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.explore-popup-overlay.active .explore-popup-content {
    transform: translateY(0);
}

.explore-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.explore-close-btn:hover {
    color: #fff;
}

.explore-popup-content h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.explore-popup-content p {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ep-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.ep-form-group label {
    color: #d1d1d1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ep-form-group input,
.ep-form-group select {
    width: 100%;
    background: #121214;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, outline 0.3s ease;
}

/* Specific overrides for intl-tel-input to match our styling and prevent global sprite collisions */
.ep-form-group .iti {
    width: 100%;
}

.iti--container {
    z-index: 100000 !important;
}

.iti__country-list {
    background-color: #1a1a1c;
    border: 1px solid #333;
    color: #ccc;
    max-width: 350px;
}

.ep-form-group .iti__divider {
    border-bottom: 1px solid #333;
}

.ep-form-group input:focus,
.ep-form-group select:focus {
    outline: none;
    border-color: #d92a2a;
}

.ep-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23aaa"><path d="M5 8l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.ep-error {
    color: #ff3333;
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 16px;
    display: none;
}

.ep-form-group.has-error input,
.ep-form-group.has-error select {
    border-color: #ff3333;
}

.ep-form-group.has-error .ep-error {
    display: block;
}

.ep-submit-btn {
    width: 100%;
    background-color: #d92a2a;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.ep-submit-btn:hover {
    background-color: #ff3333;
}
