/* WordPress-safe styles for the embedded Bharat Pack React forms. */
.bpe-react-mount { color: #1f2937; }
.bpe-react-mount .min-h-screen { min-height: auto !important; padding: 24px 0 !important; background: transparent !important; }
.bpe-react-mount .card { max-width: 1080px; margin: 0 auto; padding: 28px; background: #fff; border: 1px solid #dbe4ef; border-radius: 10px; box-shadow: none; }
.bpe-react-mount .label { display: block; margin: 0 0 7px; color: #1f3653; font-size: 14px; font-weight: 600; }
.bpe-react-mount .input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #9eacbd; border-radius: 4px; background: #fff; color: #1f2937; }
.bpe-react-mount textarea.input { min-height: 92px; }
.bpe-react-mount input[type="checkbox"] { appearance: auto !important; -webkit-appearance: checkbox !important; box-sizing: border-box; width: 16px !important; height: 16px !important; min-width: 16px; margin: 0 !important; accent-color: #1769aa; }
.bpe-react-mount label.flex { display: flex !important; align-items: flex-start; gap: 9px !important; margin: 0 !important; color: #263d59; line-height: 1.45; cursor: pointer; }
.bpe-react-mount label.flex.items-center { align-items: center !important; }
.bpe-react-mount form.space-y-6 { row-gap: 24px !important; }
.bpe-react-mount .bpe-interest-section { margin-top: 4px; }
.bpe-react-mount .bpe-interest-section .grid { row-gap: 12px !important; }
.bpe-react-mount .bpe-contact-row { align-items: start; }
@media (max-width: 640px) {
  .bpe-react-mount .card { padding: 18px; }
}
.bpe-react-mount .bpe-interest-section > .mt-3.grid { gap: 14px !important; }
.bpe-react-mount .bpe-interest-section > .mt-3.grid > div {
  /*min-height: 74px;*/
  padding: 14px !important;
  border: 1px solid #b9cce2 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #f8fbff, #edf5ff) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.bpe-react-mount .bpe-interest-section > .mt-3.grid > div:hover {
  border-color: #2874b9 !important;
  background: #f2f8ff !important;
  box-shadow: 0 3px 10px rgba(23, 105, 170, .12);
}
.bpe-react-mount .bpe-interest-section > .mt-3.grid button {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #164e82 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.bpe-react-mount .bpe-interest-section > .mt-3.grid button span:last-child {
  text-decoration: none !important;
}
.bpe-react-mount .bpe-interest-section > .mt-3.grid button span:first-child {
  width: 21px !important;
  height: 21px !important;
  border: 1px solid #2874b9 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #1769aa !important;
}

/* Keep the WordPress page stable while the React registration form is loading. */
.bpe-react-mount > .bpe-react-loading {
  min-height: 1100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 52px;
  background: transparent;
  color: #58708a;
  font: 500 14px/1.4 Arial, sans-serif;
}.bpe-page-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 1;
  transition: opacity .18s ease;
}
.bpe-page-loader.is-ready { opacity: 0; pointer-events: none; }
.bpe-page-loader > span {
  width: 42px;
  height: 42px;
  border: 4px solid #d4e5f5;
  border-top-color: #1769aa;
  border-radius: 50%;
  animation: bpe-page-spinner .7s linear infinite;
}
@keyframes bpe-page-spinner { to { transform: rotate(360deg); } }

/* Registered visitor badge lookup screen. */
.bpe-react-visitor .bpe-login-error { margin: .5rem 0 0; color: #fecaca; font-size: .875rem; font-weight: 600; }
.bpe-react-visitor .bpe-badge-result { text-align: center; }
.bpe-react-visitor .bpe-badge-result h2 { margin: 0 0 .75rem; color: #fff; font-size: 2rem; font-weight: 700; }
.bpe-react-visitor .bpe-badge-number { margin: 0 0 1rem; color: #fff7ed; }
.bpe-react-visitor .bpe-badge-preview { display: block; width: 100%; height: 390px; margin: 1.25rem auto; border: 0; border-radius: 6px; background: #fff; }
.bpe-react-visitor .bpe-badge-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.bpe-react-visitor .bpe-badge-download, .bpe-react-visitor .bpe-badge-try-again { display: inline-block; border: 1px solid #f58220; border-radius: 4px; padding: .75rem 1rem; background: #f58220; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.bpe-react-visitor .bpe-badge-try-again { background: transparent; border-color: #fff; }
@media (max-width: 767px) { .bpe-react-visitor .bpe-badge-preview { height: 330px; } }


/* Two-panel registered visitor badge screen. */
.bpe-react-visitor .bpe-visitor-login-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,.9fr); width: min(100%, 1020px); margin: 2.5rem auto; overflow: hidden; border-top: 4px solid #f58220; background: #fff; box-shadow: 0 12px 36px rgba(66,38,24,.18); }
.bpe-react-visitor .bpe-login-visual { min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 3rem; background: linear-gradient(135deg,#fffdf8 0%,#f5e3c5 100%); color: #59321f; text-align: center; }
.bpe-react-visitor .bpe-login-event-logo { display: block; width: min(100%,330px); max-height: 150px; object-fit: contain; }
.bpe-react-visitor .bpe-login-secondary-logo { display: block; width: min(100%,300px); max-height: 110px; object-fit: contain; }
.bpe-react-visitor .bpe-login-visual-copy span { display:block; font-size:.8rem; font-weight:700; letter-spacing:.18em; }
.bpe-react-visitor .bpe-login-visual-copy strong { display:block; margin-top:.5rem; font-size:1.7rem; line-height:1.15; }
.bpe-react-visitor .bpe-login-visual-copy p { margin:.7rem 0 0; color:#e87518; font-weight:700; }
.bpe-react-visitor .bpe-login-form { display:flex; flex-direction:column; justify-content:center; padding:3rem 3.25rem; background:#59321f; color:#fff; }
.bpe-react-visitor .bpe-login-form h2 { margin:0; color:#fff; font-size:2.15rem; font-weight:700; }
.bpe-react-visitor .bpe-login-form > p { margin:.65rem 0 1.8rem; color:#f8e8dc; line-height:1.55; }
.bpe-react-visitor .bpe-login-form label { margin-bottom:.45rem; font-size:.9rem; font-weight:700; }
.bpe-react-visitor .bpe-mobile-input { display:flex; overflow:hidden; border:1px solid #d9c1ad; border-radius:4px; background:#fff; }
.bpe-react-visitor .bpe-mobile-input span { display:grid; width:46px; place-items:center; background:#f5e3c5; }
.bpe-react-visitor .bpe-mobile-input input { min-width:0; flex:1; padding:.85rem; border:0; color:#382015; outline:0; }
.bpe-react-visitor .bpe-badge-submit,.bpe-react-visitor .bpe-register-now { margin-top:1rem; padding:.8rem 1rem; border:1px solid #f58220; border-radius:4px; background:#f58220; color:#fff; font-weight:700; text-align:center; text-decoration:none; cursor:pointer; }
.bpe-react-visitor .bpe-badge-submit:hover,.bpe-react-visitor .bpe-register-now:hover { background:#dd6813; }
.bpe-react-visitor .bpe-login-divider { display:flex; align-items:center; gap:.75rem; margin:1.8rem 0 0; color:#f8e8dc; font-size:.85rem; }
.bpe-react-visitor .bpe-login-divider:before,.bpe-react-visitor .bpe-login-divider:after { content:''; height:1px; flex:1; background:rgba(255,255,255,.25); }
.bpe-react-visitor .bpe-login-error { color:#ffd5d5!important; }
.bpe-react-visitor .bpe-already-registered-link { margin:1.5rem 0 0; text-align:center; color:#59321f; font-weight:600; }
.bpe-react-visitor .bpe-already-registered-link a { color:#e87518; text-decoration:underline; }
@media(max-width:767px){.bpe-react-visitor .bpe-visitor-login-card{grid-template-columns:1fr;margin:1.5rem auto}.bpe-react-visitor .bpe-login-visual{min-height:260px;padding:2rem}.bpe-react-visitor .bpe-login-form{padding:2rem}.bpe-react-visitor .bpe-login-event-logo{max-height:100px}.bpe-react-visitor .bpe-login-secondary-logo{max-height:75px}}


/* Strong actions for the normal OTP login screen. */
.bpe-react-visitor .bpe-visitor-otp-login-card .bpe-otp-submit { display:block!important; width:100%!important; margin-top:1rem!important; padding:.85rem 1.25rem!important; border:1px solid #f58220!important; border-radius:4px!important; background:#f58220!important; color:#fff!important; font-size:1rem!important; font-weight:700!important; line-height:1.2!important; text-align:center!important; box-shadow:0 3px 0 #b94e0b!important; }
.bpe-react-visitor .bpe-visitor-otp-login-card .bpe-otp-submit:hover { background:#dc6814!important; }
.bpe-react-visitor .bpe-visitor-otp-login-card .bpe-register-highlight { display:inline-block!important; margin-top:1.35rem!important; padding:.85rem 1.5rem!important; border:1px solid #f58220!important; border-radius:4px!important; background:#f58220!important; color:#fff!important; font-size:1rem!important; font-weight:700!important; line-height:1.2!important; text-decoration:none!important; box-shadow:0 3px 0 #b94e0b!important; }
.bpe-react-visitor .bpe-visitor-otp-login-card .bpe-register-highlight:hover { background:#dc6814!important; color:#fff!important; }

/* Keep the OTP field readable and give every OTP-step action the primary event style. */
.bpe-react-visitor .bpe-visitor-otp-login-card form input { background:#fff!important; color:#382015!important; -webkit-text-fill-color:#382015!important; }
.bpe-react-visitor .bpe-visitor-otp-login-card form button { display:block!important; width:100%!important; margin-top:1rem!important; padding:.85rem 1.25rem!important; border:1px solid #f58220!important; border-radius:4px!important; background:#f58220!important; color:#fff!important; font-size:1rem!important; font-weight:700!important; line-height:1.2!important; text-align:center!important; box-shadow:0 3px 0 #b94e0b!important; }
.bpe-react-visitor .bpe-visitor-otp-login-card form button:hover { background:#dc6814!important; color:#fff!important; }
/* Fallback only if a completed registration loses its React thank-you view. */
.bpe-react-visitor .bpe-registration-recovery { padding: 48px 16px; background: transparent; }
.bpe-react-visitor .bpe-registration-recovery-card { width: min(100%, 540px); margin: 0 auto; padding: 30px; border: 1px solid #dbe4ef; border-radius: 10px; background: #fff; color: #1f2937; text-align: center; }
.bpe-react-visitor .bpe-registration-success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 34px; font-weight: 700; }
.bpe-react-visitor .bpe-registration-recovery-card h2 { margin: 0; color: #1f2937; font-size: 28px; }
.bpe-react-visitor .bpe-registration-recovery-card > p { margin: 10px 0; color: #4b5563; }
.bpe-react-visitor .bpe-registration-badge-number { margin: 22px 0; padding: 18px; border-radius: 8px; background: #f8fafc; }
.bpe-react-visitor .bpe-registration-badge-number span { display: block; color: #6b7280; font-size: 14px; }
.bpe-react-visitor .bpe-registration-badge-number strong { display: block; margin-top: 7px; color: #1769aa; font-size: 24px; }
.bpe-react-visitor .bpe-registration-badge-preview { display: block; width: 100%; height: 460px; margin: 18px auto; border: 1px solid #dbe4ef; border-radius: 8px; background: #fff; }
.bpe-react-visitor .bpe-registration-mail-note { padding: 12px; border: 1px solid #bfdbfe; border-radius: 6px; background: #eff6ff; color: #1e40af !important; font-size: 14px; }
.bpe-react-visitor .bpe-registration-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.bpe-react-visitor .bpe-registration-badge-download, .bpe-react-visitor .bpe-registration-again { display: inline-block; padding: 11px 16px; border: 1px solid #e87518; border-radius: 4px; color: #fff; background: #e87518; font-weight: 700; text-decoration: none; }
.bpe-react-visitor .bpe-registration-again { color: #e87518; background: #fff; }
@media (max-width: 640px) { .bpe-react-visitor .bpe-registration-recovery { padding: 24px 8px; } .bpe-react-visitor .bpe-registration-recovery-card { padding: 20px; } .bpe-react-visitor .bpe-registration-badge-preview { height: 380px; } }

/* Visitor dashboard badge download action. */
.bpe-react-visitor .bpe-dashboard-download {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px !important;
  border: 1px solid #d95f10 !important;
  border-radius: 5px !important;
  background: #e87518 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 3px 0 #b94e0b;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bpe-react-visitor .bpe-dashboard-download::before { content: '\2193'; font-size: 20px; line-height: 1; }
.bpe-react-visitor .bpe-dashboard-download:hover { background: #d96212 !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 4px 0 #a9470a; }
.bpe-react-visitor .bpe-dashboard-download:focus-visible { outline: 3px solid rgba(232,117,24,.32); outline-offset: 3px; }

/* Visitor registration sign-in guidance. */
.bpe-react-visitor .bpe-registration-heading-link { margin: .55rem 0 0 !important; text-align: center; color: #59321f; font-weight: 600; }
.bpe-react-visitor .bpe-registration-heading-link a { color: #e87518; font-weight: 700; text-decoration: underline; }
.bpe-react-visitor .bpe-duplicate-registration-message { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f7b6b2; border-radius: 6px; background: #fff1f0; color: #9b1c1c; font-size: 14px; font-weight: 600; }
.bpe-react-visitor .bpe-duplicate-registration-message a { color: #b54808; font-weight: 700; text-decoration: underline; }

/* Keep the top sign-in link distinct from the registration subtitle and retain its footer link. */
.bpe-react-visitor .bpe-registration-heading-link { margin: .65rem 0 .9rem !important; }
.bpe-react-visitor .bpe-registration-footer-link { margin: 1.75rem 0 0 !important; text-align: center; color: #59321f; font-weight: 600; }
.bpe-react-visitor .bpe-registration-footer-link a { color: #e87518; font-weight: 700; text-decoration: underline; }

/* Field-level validation for visitor registration source selection. */
.bpe-react-visitor .bpe-source-validation-message { margin: 7px 0 12px !important; color: #b42318; font-size: 14px; font-weight: 700; }
.bpe-react-visitor [data-bpe-source-validation-scrolled="1"] { outline: 2px solid #f4a7a1; outline-offset: 7px; border-radius: 6px; }

/* Badge recovery link shown beside a duplicate mobile or email field error. */
.bpe-react-visitor .bpe-duplicate-badge-link { margin: 6px 0 0 !important; color: #7a271a; font-size: 14px; font-weight: 600; }
.bpe-react-visitor .bpe-duplicate-badge-link a { color: #e87518; font-weight: 700; text-decoration: underline; }

/* Required Product Interest validation. */
.bpe-react-visitor .bpe-product-interest-validation-message { margin: 7px 0 12px !important; color: #b42318; font-size: 14px; font-weight: 700; }
.bpe-react-visitor .bpe-product-interest-invalid { outline: 2px solid #f4a7a1; outline-offset: 7px; border-radius: 6px; }

/* Required visitor consent validation. */
.bpe-react-visitor .bpe-consent-validation-message { margin: 6px 0 12px !important; color: #b42318; font-size: 14px; font-weight: 700; }
.bpe-react-visitor label.bpe-consent-invalid { padding: 9px; border: 2px solid #f4a7a1; border-radius: 6px; background: #fff8f7; }

/* Single inline badge link beside duplicate mobile/email validation errors. */
.bpe-react-visitor a.bpe-duplicate-badge-link { margin-left: 2px; color: #e87518; font-weight: 700; text-decoration: underline; }
