/* NSE Forms Styles - Minimalista con Noto Sans */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&display=swap');

/* Estilos generales */
.nse-thanks-page,
.nse-stats-page,
.nse-exhibitor-login,
.nse-accreditation-form,
.nse-limit-exceeded {
    font-family: 'Noto Sans', sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    color: #333;
}

/* HEADERS */
.nse-thanks-header,
.nse-stats-header,
.nse-login-header,
.nse-form-header,
.nse-limit-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

.nse-thanks-header h2,
.nse-stats-header h2,
.nse-login-header h2,
.nse-form-header h2,
.nse-limit-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #190061;
}

.nse-thanks-header p,
.nse-stats-header p,
.nse-login-header p,
.nse-form-header p,
.nse-limit-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* BOTONES MINIMALISTAS */
.nse-thanks-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.nse-thanks-btn,
.nse-stats-btn,
.nse-login-btn,
.nse-submit-btn,
.nse-logout-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #333;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
}

.nse-thanks-btn:hover,
.nse-stats-btn:hover,
.nse-login-btn:hover,
.nse-submit-btn:hover,
.nse-logout-btn:hover {
    background: #f8f9fa;
    border-color: #190061;
    color: #190061;
}

/* INFORMACIÓN DE GRACIAS */
.nse-thanks-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

.nse-thanks-info p {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.nse-thanks-info ul {
    margin: 0;
    padding-left: 20px;
}

.nse-thanks-info li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* ESTADÍSTICAS */
.nse-exhibitor-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.nse-exhibitor-info p {
    margin: 8px 0;
    font-size: 15px;
    color: #555;
}

.nse-exhibitor-info strong {
    color: #333;
    font-weight: 600;
}

/* GRID DE ESTADÍSTICAS */
.nse-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.nse-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.nse-stat-card:hover {
    transform: translateY(-2px);
}

.nse-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #190061;
    margin: 0 0 8px 0;
    line-height: 1;
}

.nse-stat-label {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* TABLA DE INVITACIONES */
.nse-invitations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.nse-invitations-table th {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.nse-invitations-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    color: #555;
}

.nse-invitations-table tr:nth-child(even) {
    background: #fafafa;
}

/* BOTÓN NUEVA INVITACIÓN */
.nse-new-invitation {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* FORMULARIOS */
.nse-form-group {
    margin-bottom: 20px;
}

.nse-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.nse-form-group label.required::after {
    content: " *";
    color: #d63638;
}

.nse-form-group input,
.nse-form-group select,
.nse-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
    box-sizing: border-box;
}

.nse-form-group input:focus,
.nse-form-group select:focus,
.nse-form-group textarea:focus {
    border-color: #190061;
    outline: none;
}

.nse-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nse-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.nse-form-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.nse-accreditation-types {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nse-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nse-type-option input[type="radio"] {
    width: auto;
}

.nse-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* MENSAJES */
.nse-login-message,
.nse-message {
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.nse-error,
.nse-login-message.nse-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nse-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nse-thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .nse-thanks-btn,
    .nse-stats-btn {
        width: 200px;
        text-align: center;
    }
    
    .nse-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nse-invitations-table {
        font-size: 12px;
    }
    
    .nse-invitations-table th,
    .nse-invitations-table td {
        padding: 8px 10px;
    }
    
    .nse-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nse-thanks-page,
    .nse-stats-page,
    .nse-exhibitor-login,
    .nse-accreditation-form,
    .nse-limit-exceeded {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .nse-thanks-header h2,
    .nse-stats-header h2,
    .nse-login-header h2,
    .nse-form-header h2,
    .nse-limit-header h2 {
        font-size: 24px;
    }
    
    .nse-accreditation-types {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   FIX: Página WhatsApp / Reinvitations / Resend (scoped)
   ========================================================= */

/* Contenedor general si tu template ya tiene wrapper */
.nse-exhibitor-admin-frontend,
.nse-self-registration-form,
.nse-reinvite-page,
.nse-resend-page,
.nse-whatsapp-page {
  max-width: 920px;
  margin: 32px auto !important;
  padding: 0 16px !important;
}

/* Card principal */
.nse-exhibitor-admin-frontend .nse-admin-card,
.nse-self-registration-form,
.nse-reinvite-page .card,
.nse-resend-page .card,
.nse-whatsapp-page .card {
  background: #fff;
  border: 1px solid #e6e6ef;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Header tipo app (si existe) */
.nse-reinvite-page .header,
.nse-resend-page .header {
  background: #190061;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nse-reinvite-page .header a,
.nse-resend-page .header a {
  color: #ffd400;
  text-decoration: none;
  font-weight: 700;
}

/* Títulos */
.nse-reinvite-page h1,
.nse-resend-page h1,
.nse-self-registration-form h3 {
  margin: 0;
  padding: 22px 22px 8px;
  color: #190061;
  font-size: 32px;
  line-height: 1.15;
}
.nse-reinvite-page p,
.nse-resend-page p,
.nse-self-registration-form p {
  padding: 0 22px 18px;
  margin: 0;
  color: #666;
}

/* Form layout */
.nse-reinvite-page form,
.nse-resend-page form,
.nse-self-registration-form form {
  padding: 0 22px 22px;
}

.nse-reinvite-page label,
.nse-resend-page label,
.nse-self-registration-form label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #1a1a1a;
  font-size: 13px;
  letter-spacing: .2px;
}

.nse-reinvite-page input,
.nse-resend-page input,
.nse-self-registration-form input,
.nse-reinvite-page textarea,
.nse-resend-page textarea,
.nse-self-registration-form textarea,
.nse-self-registration-form select {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  border: 1px solid #d8d8e6 !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 15px !important;
  outline: none !important;
}

.nse-reinvite-page textarea,
.nse-resend-page textarea {
  min-height: 120px;
  resize: vertical;
}

.nse-reinvite-page input:focus,
.nse-resend-page input:focus,
.nse-self-registration-form input:focus,
.nse-reinvite-page textarea:focus,
.nse-resend-page textarea:focus,
.nse-self-registration-form select:focus {
  border-color: #190061 !important;
  box-shadow: 0 0 0 4px rgba(25,0,97,.10) !important;
}

/* Botón principal (WhatsApp o enviar) */
.nse-reinvite-page button,
.nse-resend-page button,
.nse-self-registration-form .nse-submit-btn {
  width: 100% !important;
  margin-top: 16px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  border: 0 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  cursor: pointer !important;
}

/* Si es “Enviar invitaciones” estilo WhatsApp */
.nse-reinvite-page button {
  background: #25D366 !important;
  color: #fff !important;
}
.nse-reinvite-page button:hover { filter: brightness(.95); }

/* Resend: estilo primario */
.nse-resend-page button {
  background: #190061 !important;
  color: #fff !important;
}
.nse-resend-page button:hover { filter: brightness(.95); }

/* Caja informativa */
.nse-reinvite-page .info,
.nse-reinvite-page .info-box,
.nse-resend-page .info,
.nse-resend-page .info-box {
  margin: 18px 22px 22px !important;
  padding: 14px 14px !important;
  background: #fff3cd !important;
  border: 1px solid #ffe08a !important;
  border-radius: 12px !important;
  color: #6b4e00 !important;
}

/* Responsive */
@media (max-width: 520px) {
  .nse-reinvite-page h1,
  .nse-resend-page h1 { font-size: 26px; }
}