/* Proyectum Webinars — Formulario de Registro */

.pwb2-form-wrap {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.pwb2-registro-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pwb2-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pwb2-field label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.pwb2-field input {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    transition: border-color .2s ease;
    font-family: inherit;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.pwb2-field input:focus {
    border-color: #2563eb;
}

.pwb2-field input::placeholder {
    color: #94a3b8;
}

.pwb2-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pwb2-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease;
    margin-top: 4px;
}

.pwb2-submit-btn:hover { background: #1d4ed8; }

.pwb2-submit-btn:disabled {
    background: #94a3b8;
    cursor: default;
}

.pwb2-disclaimer {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin: 0 !important;
}

.pwb2-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.pwb2-msg.success {
    background: #dcfce7;
    color: #166534;
}

.pwb2-msg.error {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 480px) {
    .pwb2-fields-row { grid-template-columns: 1fr; }
}

/* ── Botón de apertura ── */
.pwb2-open-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease, box-shadow .2s ease;
}
.pwb2-open-modal:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
}

/* ── Modal ── */
.pwb2-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pwb2-modal[hidden] { display: none !important; }

.pwb2-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.pwb2-modal__box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    animation: pwb2-slide-in .22s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes pwb2-slide-in {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}

.pwb2-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    font-family: inherit;
}
.pwb2-modal__close:hover { color: #0f172a; }

.pwb2-modal__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px !important;
}
.pwb2-modal__subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px !important;
    line-height: 1.5;
}
