/* ═══════════════════════════════════════════════════════════════
   BRIO — Popup inscription hôte
   Matches inscription & connexion design system
   ═══════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────────── */

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.overlay.popactive {
    display: flex;
}

/* ── Popup card ──────────────────────────────────────────────── */

.popup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    width: 460px;
    max-width: calc(100% - 32px);
    padding: 36px 40px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e3df;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ── Close icon ──────────────────────────────────────────────── */

.close_icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 999;
}

.close_icon:hover {
    background: #f5f2f0;
    color: #333;
}

/* ── Popup header ────────────────────────────────────────────── */

.popup_header {
    text-align: center;
    margin-bottom: 8px;
}

.popup_icon_holder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(197, 90, 54, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.popup_icon_holder span {
    font-size: 26px;
    color: #C55A36;
}

.corps_popup h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 4px;
}

.popup_step_label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* ── Progress bar ────────────────────────────────────────────── */

.popup_progress {
    width: 100%;
    height: 4px;
    background: #ebe6e2;
    border-radius: 10px;
    margin: 16px 0 24px;
    overflow: hidden;
}

.popup_progress_bar {
    height: 100%;
    background: linear-gradient(90deg, #C55A36, #e8845f);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ── Inputs ──────────────────────────────────────────────────── */

.oneinpt {
    display: block;
    width: 100%;
}

.oneinptmargintop {
    margin-top: 16px;
}

.inptlabel {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

/* Input with icon */
.input_with_icon {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input_with_icon:focus-within {
    border-color: #C55A36;
    box-shadow: 0 0 0 3px rgba(197, 90, 54, 0.1);
}

.input_with_icon span {
    font-size: 20px;
    color: #bbb;
    margin-right: 10px;
    flex-shrink: 0;
}

.input_with_icon:focus-within span {
    color: #C55A36;
}

.input_with_icon .inpt {
    border: none;
    padding: 12px 0;
    flex: 1;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    width: 100%;
}

.input_with_icon .inpt::placeholder {
    color: #bbb;
}

/* Standalone bordered input (grid) */
.inpt_bordered {
    display: block;
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.inpt_bordered:focus {
    border-color: #C55A36;
    box-shadow: 0 0 0 3px rgba(197, 90, 54, 0.1);
}

.inpt_bordered::placeholder {
    color: #bbb;
}

/* Form grid (prénom / nom) */
.popup_form_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Error messages ──────────────────────────────────────────── */

.error_msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

/* ── Conditions ──────────────────────────────────────────────── */

.conditions {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin-top: 20px;
}

.conditions a {
    text-decoration: none;
    color: #C55A36;
    font-weight: 500;
}

.conditions a:hover {
    text-decoration: underline;
    color: #ad4c2c;
}

/* ── Primary button ──────────────────────────────────────────── */

.popup_primary_btn {
    display: block;
    width: 100%;
    background: #C55A36;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.popup_primary_btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.popup_primary_btn:hover::after {
    transform: translateX(0);
}

.popup_primary_btn:hover {
    background: #ad4c2c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(197, 90, 54, 0.25);
}

.popup_primary_btn:active {
    transform: scale(0.98);
}

/* ── Separator ───────────────────────────────────────────────── */

.popup_separator {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
}

.popup_sep_line {
    flex: 1;
    height: 1px;
    background: #e8e3df;
}

.popup_sep_text {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}

/* ── Login link ──────────────────────────────────────────────── */

.popup_login_link {
    text-align: center;
    font-size: 14px;
    color: #888;
}

.popup_login_link a {
    color: #C55A36;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popup_login_link a:hover {
    color: #ad4c2c;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 850px) {

    .popup {
        width: calc(100% - 32px);
        padding: 28px 20px;
        top: 40px;
    }

    .popup_form_grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .popup_icon_holder {
        width: 48px;
        height: 48px;
    }

    .popup_icon_holder span {
        font-size: 22px;
    }

    .corps_popup h4 {
        font-size: 20px;
    }
}