/* ───────────────────────────────────────────────────────────── */
/* 🐞 DEBUG: Visual page-edge indicator — optional               */
/* Uncomment if you need to trace full body extent visually     */
/* Safe for testing, not for production                         */
/* ───────────────────────────────────────────────────────────── */
/*
body {
  outline: 5px solid magenta;
}
*/

/* ───────────────────────────────────────────────────────────── */
/* 📄 h305_LS_Message_Layout.css - Modern vertical-first layout  */
/* Updated: 2025-07-24                                           */
/* ───────────────────────────────────────────────────────────── */

/* 📬 Registration Message Styling */
.h305-register-message {
  max-width: 100%;
  width: 100%;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1.2em;
  margin: -3em 0;
  line-height: 1.6;
  color: #333;
}

.h305-register-message p {
  font-size: 1.3rem;
}

/* 📋 Unified Register Form Layout (vertical-first) */
.h305-register-form-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1024px;
  margin: 2rem auto;
  padding: 1rem;
}

.h305-register-form-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.h305-register-form-left .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.h305-register-form-left label {
  font-size: 1.25rem;
  font-weight: 550;
  margin-bottom: 0.5rem;
}

.h305-register-form-left input.form-control {
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

/* === START h305 CAPTCHA layout === */
.h305-captcha-block {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  padding-left: 2.5rem;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.h305-captcha-block > .control-label {
  font-size: 1.25rem;
  font-weight: 550;
}

.h305-captcha-horizontal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.h305-captcha-horizontal .captcha-image img {
  max-height: 60px;
  border: 1px solid #999;
  margin-right: 1.25rem;
}

.h305-captcha-horizontal .captcha-input-group input {
  width: 160px;
  margin-bottom: 2.0rem;
  margin-right: 1.25rem;
}

.h305-captcha-horizontal .captcha-input-group label {
  margin-bottom: 1.1rem;
  font-size: 1.25rem;
  font-weight: 550;
}

/* === GLOBAL styles === */
.captcha-reload-button .btn {
  padding: 1.5rem 1.75rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.captcha-reload-button .btn i {
  font-size: 1.25rem;
}

/* === START h305 CAPTCHA mobile reflow === */
@media (max-width: 600px) {
  .h305-captcha-horizontal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .captcha-input-group input {
    width: 100%;
    max-width: 240px;
  }

  .captcha-reload-button {
    align-self: flex-start;
  }
}

/* 🚀 Submit button styling */
.h305-submit-group button {
  width: 30%;
  padding: 0.75em;
  background-color: #003366;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

/* 📱 Desktop two-column layout only above 900px */
@media (min-width: 900px) {
  .h305-register-form-flex {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .h305-register-form-left {
    flex: 1 1 50%;
  }

  .h305-register-form-right {
    flex: 1 1 50%;
  }
}

/* Center the "mandatory" note under the submit button */
.h305-submit-group .form-group.text-muted {
  text-align: center;
}

/* ───────────────────────────────────────────────────────────── */
/* 🖼️ Survey-specific float image with text wrap                */
/* Replaces .h305-message-flex usage                            */
/* ───────────────────────────────────────────────────────────── */

.h305-message-wrap {
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 2rem;
}

.h305-register-CL77 {
  float: right;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  width: auto;
  max-width: 280px;
  height: auto;
  border-radius: 4px;
}

.h305-register-CB77,
.h305-register-CA77 {
  float: left;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  width: auto;
  max-width: 280px;
  height: auto;
  border-radius: 4px;
}
