/* Tabibane24 Vocabulary Access v1.3 — isolated, responsive front-end styles */
.tb24vamp-reg,
.tb24vamp-reg *,
.tb24vamp-reg-message,
.tb24vamp-reg-message *,
.tb24vamp-login-cta,
.tb24vamp-login-cta * {
  box-sizing: border-box;
}

.tb24vamp-reg {
  display: block;
  position: relative;
  float: none;
  clear: both;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  margin: clamp(12px, 2.5vw, 26px) auto;
  padding: clamp(16px, 3.5vw, 30px);
  direction: rtl;
  text-align: right;
  border: 1px solid #dfece8;
  border-radius: 18px;
  background: #fff;
  color: #274944;
  box-shadow: 0 8px 28px rgba(30, 75, 68, .07);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  isolation: isolate;
}

.tb24vamp-reg h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #204c47;
  font-family: inherit;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tb24vamp-reg p { margin: 0 0 12px; line-height: 1.9; }
.tb24vamp-reg .tb24vamp-sub { margin: 0 0 20px; color: #68817b; font-size: 14px; line-height: 1.9; }

/* Important: never style WordPress nonce/referer hidden inputs as visible form fields. */
.tb24vamp-reg input[type="hidden"] { display: none !important; }
.tb24vamp-reg form.tb24vamp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}
.tb24vamp-reg .tb24vamp-field { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; margin: 0; padding: 0; }
.tb24vamp-reg .tb24vamp-field label {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  color: #31534e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}
.tb24vamp-reg .tb24vamp-field input[type="text"],
.tb24vamp-reg .tb24vamp-field input[type="email"],
.tb24vamp-reg .tb24vamp-field input[type="password"] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 1px solid #d8e5e1 !important;
  border-radius: 11px !important;
  background: #fbfefd !important;
  color: #274944 !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  direction: ltr;
  text-align: left;
  box-shadow: none !important;
}
.tb24vamp-reg .tb24vamp-field input:focus {
  outline: 2px solid rgba(38, 166, 154, .2);
  outline-offset: 1px;
  border-color: #26a69a !important;
}
.tb24vamp-reg button[type="submit"] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px;
  margin: 3px 0 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #218f84 !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none !important;
  cursor: pointer;
}
.tb24vamp-reg button[type="submit"]:hover { background: #16796f !important; }
.tb24vamp-reg .tb24vamp-error {
  width: 100%; min-width: 0; margin: 10px 0; padding: 11px 13px;
  border: 1px solid #f0d0ca; border-radius: 10px; background: #fff1ef;
  color: #8b4035; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere;
}
.tb24vamp-reg .tb24vamp-reg-success {
  width: 100%; min-width: 0; margin: 0; padding: 15px;
  border: 1px solid #cfe9dc; border-radius: 12px; background: #eef9f4;
  color: #274944; line-height: 1.9; overflow-wrap: anywhere;
}
.tb24vamp-reg .tb24vamp-hp {
  position: absolute !important; left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}
.tb24vamp-reg .tb24vamp-reg-footer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
  width: 100%; min-width: 0; margin: 18px 0 0; padding: 14px 4px 0;
  border-top: 1px solid #edf3f1; color: #58726c; font-size: 13px; text-align: center; line-height: 1.8;
}
.tb24vamp-reg .tb24vamp-reg-footer a,
.tb24vamp-login-cta a { color: #167c72; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.tb24vamp-reg-message {
  display: block; width: 100%; max-width: 560px; min-width: 0; margin: 16px auto;
  padding: clamp(16px, 3.5vw, 24px); border: 1px solid #dfece8; border-radius: 16px;
  background: #fff; color: #274944; line-height: 1.9; overflow-wrap: anywhere;
}
.tb24vamp-reg-message p { margin: 8px 0 0; }
.tb24vamp-login-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  width: 100%; max-width: 560px; min-width: 0; margin: 16px auto 6px; padding: 14px 16px;
  border: 1px solid #d8ebe5; border-radius: 12px; background: #f3faf7; color: #355b54;
  font-family: inherit; font-size: 14px; line-height: 1.9; text-align: center; overflow-wrap: anywhere;
}
.tb24vamp-login-cta a { max-width: 100%; white-space: normal; }

/* When the shortcode lives inside Elementor, keep the widget/container at its parent's width. */
.elementor-widget-shortcode:has(.tb24vamp-reg),
.elementor-widget-shortcode:has(.tb24vamp-login-cta) { width: 100%; max-width: 100%; min-width: 0; }
.elementor-widget-shortcode:has(.tb24vamp-reg) > .elementor-widget-container,
.elementor-widget-shortcode:has(.tb24vamp-login-cta) > .elementor-widget-container { width: 100%; max-width: 100%; min-width: 0; }

@media (max-width: 767px) {
  .tb24vamp-reg { width: 100%; max-width: 100%; margin: 12px auto; padding: clamp(15px, 4vw, 22px); border-radius: 15px; }
  .tb24vamp-reg .tb24vamp-sub { margin-bottom: 16px; }
  .tb24vamp-reg form.tb24vamp-form { gap: 12px; }
  .tb24vamp-reg .tb24vamp-field label { font-size: 13px; }
  .tb24vamp-reg .tb24vamp-field input[type="text"],
  .tb24vamp-reg .tb24vamp-field input[type="email"],
  .tb24vamp-reg .tb24vamp-field input[type="password"] { min-height: 46px; font-size: 16px; }
  .tb24vamp-reg button[type="submit"] { min-height: 46px; margin-top: 2px !important; }
  .tb24vamp-login-cta { margin: 12px auto 4px; padding: 12px; border-radius: 11px; font-size: 13px; }
}
@media (max-width: 380px) {
  .tb24vamp-reg { padding: 13px; border-radius: 13px; }
  .tb24vamp-reg h2 { font-size: 19px; }
  .tb24vamp-reg .tb24vamp-reg-success { padding: 12px; }
  .tb24vamp-reg .tb24vamp-reg-footer { font-size: 12px; }
}


/* Single Profile Builder registration link, shown inside the login form's native link area. */
.tb24vamp-login-register-link {
  display: inline-block;
  margin-inline-start: 12px;
  color: #167c72 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.tb24vamp-login-links { margin: 8px 0 0; line-height: 1.9; }
@media (max-width: 480px) {
  .tb24vamp-login-register-link { margin-inline-start: 6px; font-size: 13px; }
}
