/* =========================================================
   WPL 2027 Echoes of Fans - full CSS
   Path: modules/custom/rcb_wpl_echoes/css/wpl-echoes.css
   ========================================================= */

/* ---------- Full-bleed page (break out of theme container) ---------- */
html,
body {
  overflow-x: hidden;
}

.wpl-echoes-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
  font-family: 'YOUR-UAT-FONT', Arial, sans-serif; /* copy from UAT computed styles */
  background: url("../../../../themes/custom/rcbbase/images/echoes/Echoes_of_Fans_Homepage.jpg") no-repeat center top;
  background-size: cover;
}

/* ---------- 67 / 33 layout ---------- */
.wpl-echoes-page .layout.layout--twocol-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 80px 30px;
  box-sizing: border-box;
}

.wpl-echoes-page .layout__region--first {
  flex: 0 0 calc(67% - 15px);
  max-width: calc(67% - 15px);
}

.wpl-echoes-page .layout__region--second {
  flex: 0 0 calc(33% - 15px);
  max-width: calc(33% - 15px);
}

/* ---------- Left content ---------- */
.wpl-echoes-page #echoes_wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.wpl-echoes-page #echoes_wrapper .title {
  color: #fff;
  font-size: 39px;
  font-weight: 700;
  line-height: 1.35;
  margin: 40px 0 30px;
  padding-left: 53px;
}

.wpl-echoes-page #echoes_wrapper .subtitle {
  color: #fff;
  font-size: 22px;
  line-height: 1.4;
  padding-left: 16px;
}

.wpl-echoes-page #echoes_wrapper .subtitle p {
  margin: 0 0 14px;
}

/* ---------- Form card ---------- */
.wpl-echoes-page .rcb-echoes-form {
  background: #333;
  border-radius: 30px;
  padding: 25px;
  box-sizing: border-box;
  width: 100%;
}

.wpl-echoes-page .form_header .left {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wpl-echoes-page .form_header .right {
  color: #e5202a;
  font-size: 18px;
  margin-bottom: 20px;
}

.wpl-echoes-page .form_header .right.counter span {
  color: #fff;
}

/* ---------- Identity fields (white cards) ---------- */
.wpl-echoes-page .form-item-name,
.wpl-echoes-page .form-item-email,
.wpl-echoes-page .form-item-phone {
  
  background: #f4f4f4;
  border-radius: 12px;
  padding: 5px 5px 8px;
  margin-bottom: 22px;
  box-sizing: border-box;
}

.wpl-echoes-page .form-item-name > label,
.wpl-echoes-page .form-item-email > label,
.wpl-echoes-page .form-item-phone > label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 14px;
}

.wpl-echoes-page .form-item-name > label.form-required::after,
.wpl-echoes-page .form-item-email > label.form-required::after,
.wpl-echoes-page .form-item-phone > label.form-required::after {
  content: "*";
  color: #e5202a;
  background: none;
  font-size: 0.5em;
  margin-left: 2px;
}

/* Text inputs: typed text keeps the user's own case */
.wpl-echoes-page .form-item input[type="text"],
.wpl-echoes-page .form-item input[type="email"] {
  width: 100%;
  border: 0;
  border-bottom: 3px dotted #000;
  /* background: transparent; */
  box-shadow: none;
  border-radius: 0;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 18px;
  outline: none;
  box-sizing: border-box;
}

/* Only the placeholder is uppercase, like UAT */
.wpl-echoes-page .form-item input::placeholder {
  color: #666;
  opacity: 1;
  text-transform: uppercase;
}

/* ---------- Checkboxes (terms + question options) ---------- */
.wpl-echoes-page .form-type-checkbox {
  background: transparent;
  padding: 0;
  margin: 0 0 14px;
}

.wpl-echoes-page .form-type-checkbox label {
  display: flex;
  align-items: center;      /* name sits next to the box */
  gap: 14px;
  margin: 0;
  padding: 0 !important;    /* removes Bootstrap's left padding */
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  cursor: pointer;
}

.wpl-echoes-page .form-type-checkbox input[type="checkbox"] {
  position: static !important;   /* Bootstrap makes it absolute */
  margin: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 2px solid #999;
  border-radius: 4px;
  cursor: pointer;
}

/* the tick */
.wpl-echoes-page .form-type-checkbox input[type="checkbox"]:checked {
  background: #e5202a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M4 12l5 5L20 6'/%3E%3C/svg%3E")
    center / 80% no-repeat;
  border-color: #e5202a;
}

/* Terms row sits on the dark card, so white text */
.wpl-echoes-page .form-item-terms {
  padding-left: 10px;
}

.wpl-echoes-page .form-item-terms label {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.wpl-echoes-page .form-item-terms a {
  color: #e5202a;
}

/* ---------- Question card (steps 1-5) ---------- */
.wpl-echoes-page fieldset {
  background: #f4f4f4;
  border: 0;
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 22px;
  min-width: 0;
}

.wpl-echoes-page fieldset legend {
  display: block;
  width: 100%;
  background: none;          /* removes the blue-grey bar */
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.wpl-echoes-page fieldset .fieldset-wrapper {
  padding: 0;
  border: 0;
}

/* ---------- Error messages ---------- */
.wpl-echoes-page .messages--error,
.wpl-echoes-page .form-item--error-message,
.wpl-echoes-page .errr {
  color: #e5202a;
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- Button ---------- */
.wpl-echoes-page .form-actions {
  margin-top: 20px;
}

.wpl-echoes-page .form-actions .form-submit {
  background: #8a8a8a;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

.wpl-echoes-page .form-actions .form-submit:hover {
  background: #e5202a;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .wpl-echoes-page {
    background-size: cover;
  }

  .wpl-echoes-page .layout.layout--twocol-section {
    display: block;
    padding: 20px 15px 40px;
  }

  .wpl-echoes-page .layout__region--first,
  .wpl-echoes-page .layout__region--second {
    max-width: 100%;
  }

  .wpl-echoes-page .layout__region--second {
    margin-top: 20px;
  }

  .wpl-echoes-page #echoes_wrapper .title {
    font-size: 25px;
    padding-left: 32px;
  }

  .wpl-echoes-page #echoes_wrapper .subtitle {
    font-size: 16px;
  }
}
/* WPL 2027 Echoes - Question and answer text color */
.rcb-wpl-2027-echoes-form .question_wrapper .fieldset__label,
.rcb-wpl-2027-echoes-form .question_wrapper .fieldset__label--group {
  color: #000000 !important;
}

.rcb-wpl-2027-echoes-form .question_wrapper .form-item__label,
.rcb-wpl-2027-echoes-form .question_wrapper .form-item__label.option {
  color: #000000 !important;
}
@media screen and (min-width: 769px) {
  .wpl-echoes-page .form-item-name,
  .wpl-echoes-page .form-item-email,
  .wpl-echoes-page .form-item-phone {
    width: 335px;
    height: 107px;
  }
}
#name_err,#email_err ,#phone_err {
    padding-top:23px;
}

.wpl-echoes-page .form-item-terms label.form-required::after {
  display: none !important;
}
.rcb-wpl-2027-echoes-form .question_wrapper fieldset legend,
.rcb-wpl-2027-echoes-form .question_wrapper fieldset legend .fieldset-legend {
  display: block !important;
  line-height: 1.4 !important;
  margin-bottom: 20px !important;
}

@media (max-width: 768px) {

  .rcb-wpl-2027-echoes-form .question_wrapper,
  .rcb-wpl-2027-echoes-form .question_wrapper fieldset,
  .rcb-wpl-2027-echoes-form .question_wrapper legend,
  .rcb-wpl-2027-echoes-form .question_wrapper .fieldset-wrapper {
    background: #fff !important;
    background-image: none !important;
    border-radius: 0 !important;
  }

  .rcb-wpl-2027-echoes-form .question_wrapper fieldset {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 15px !important;
    border: 0 !important;
  }

  .rcb-wpl-2027-echoes-form .question_wrapper legend {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 0 15px 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  .rcb-wpl-2027-echoes-form .question_wrapper
  legend .fieldset-legend {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    background: #fff !important;
    background-image: none !important;
    color: #000 !important;

    border-radius: 0 !important;

    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  .rcb-wpl-2027-echoes-form .question_wrapper .fieldset-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

}
#rcb-wpl-echoes-form .form-item-terms label a {
    margin-left:-5px;
    padding-top: 2px;
}
@media (max-width: 767px) {

    #rcb-wpl-echoes-form .form-item-question1-other label,
    #rcb-wpl-echoes-form .form-item-question2-other label,
    #rcb-wpl-echoes-form .form-item-question3-other label,
    #rcb-wpl-echoes-form .form-item-question4-other label,
    #rcb-wpl-echoes-form .form-item-question5-other label {
        color: #fff;
    }
}

/* updated for background */
@media (max-width: 1100px) {

  .wpl-echoes-page {
    --bottom-h: 67vw;       /* full height of echoes_tq.png on screen */
    --bottom-show: 22vw;    /* how much of it stays visible BELOW the form */
    overflow: hidden;
    background: #111;       /* fallback only, not visible */
  }

  /* TOP image: from the top of the page down to the bottom image */
  .wpl-echoes-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--bottom-h));
    z-index: 0;
    background: url("../../../../themes/custom/rcbbase/images/echoes/Echoes_of_Fans_Homepage.jpg")
      center top / cover no-repeat;
  }

  /* BOTTOM image: pinned to the very bottom, touches the top image */
  .wpl-echoes-page::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-h);
    z-index: 0;
    background: url("../../../../themes/custom/rcbbase/images/echoes/echoes_tq.png")
      center top / cover no-repeat;
  }

  /* Form card overlaps the bottom image; only --bottom-show stays visible below */
  .wpl-echoes-page .layout.layout--twocol-section {
    position: relative;
    z-index: 1;
    padding: 0 15px var(--bottom-show);
  }

  /* ---------- Hero text over the image ---------- */

  /* Move title + subtitle down together, close to the cap.
     Uses top (not margin) so form position and page height don't change. */
  .wpl-echoes-page #echoes_wrapper {
    position: relative;
    top: 28vw;              /* bigger = text goes lower */
  }

  .wpl-echoes-page #echoes_wrapper .title {
    font-size: 26px;
    line-height: 1.25;
    margin: 16px 0 12px;
    padding-left: 15px;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
  }

  .wpl-echoes-page #echoes_wrapper .subtitle {
    font-size: 13px;
    line-height: 1.35;
    padding-left: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
  }

  .wpl-echoes-page #echoes_wrapper .subtitle p {
    margin: 0 0 8px;
  }

  /* Push the form down so the face in the background is visible */
  .wpl-echoes-page .layout__region--second {
    margin-top: 55vw;       /* bigger = form lower, more face visible */
  }

  /* ---------- Smaller form card ---------- */
  .wpl-echoes-page .rcb-echoes-form {
    padding: 14px;
    border-radius: 18px;
  }

  .wpl-echoes-page .form_header .left {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .wpl-echoes-page .form_header .right {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .wpl-echoes-page .form-item-name,
  .wpl-echoes-page .form-item-email,
  .wpl-echoes-page .form-item-phone {
    height: auto;
    margin-bottom: 10px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .wpl-echoes-page .form-item-name > label,
  .wpl-echoes-page .form-item-email > label,
  .wpl-echoes-page .form-item-phone > label {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .wpl-echoes-page .form-item input[type="text"],
  .wpl-echoes-page .form-item input[type="email"] {
    font-size: 14px;
    padding: 6px 8px;
    border-bottom-width: 2px;
  }

  .wpl-echoes-page .form-item input::placeholder {
    font-size: 11px;
  }

  .wpl-echoes-page .form-item-terms {
    padding-left: 0;
  }

  .wpl-echoes-page .form-item-terms label {
    font-size: 12px;
    gap: 8px;
  }

  .wpl-echoes-page .form-type-checkbox input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .wpl-echoes-page .form-actions {
    margin-top: 12px;
  }

  .wpl-echoes-page .form-actions .form-submit {
    padding: 10px 22px;
    font-size: 15px;
    letter-spacing: 2px;
  }

  /* ---------- Question pages (steps 1-5) ---------- */
  .rcb-wpl-2027-echoes-form .question_wrapper fieldset {
    padding: 12px !important;
  }

  .rcb-wpl-2027-echoes-form .question_wrapper legend {
    padding-bottom: 8px !important;
  }

  .rcb-wpl-2027-echoes-form .question_wrapper legend .fieldset-legend {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .wpl-echoes-page .form-type-checkbox {
    margin-bottom: 9px;
  }

  .wpl-echoes-page .form-type-checkbox label {
    font-size: 14px;
    gap: 10px;
  }

  /* "Others" text box */
  .wpl-echoes-page .wpl-others-input {
    width: 100%;
    font-size: 14px;
    padding: 6px 8px;
    margin-top: 8px;
    box-sizing: border-box;
  }
}

/* =========================================================
   TABLET (iPad etc.): stack columns, bigger text, centered form
   ========================================================= */
@media (min-width: 769px) and (max-width: 1100px) {

  /* stack instead of 67/33 columns */
  .wpl-echoes-page .layout.layout--twocol-section {
    display: block;
    padding: 0 40px var(--bottom-show);
  }

  .wpl-echoes-page .layout__region--first,
  .wpl-echoes-page .layout__region--second {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .wpl-echoes-page .layout__region--second {
    display: flex;
    justify-content: center;
  }

  /* hero text bigger for tablet */
  .wpl-echoes-page #echoes_wrapper .title {
    font-size: 46px;
    margin: 20px 0 16px;
  }

  .wpl-echoes-page #echoes_wrapper .subtitle {
    font-size: 20px;
    max-width: 85%;
  }

  /* form card centered, readable width */
  .wpl-echoes-page .rcb-echoes-form {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 26px;
    border-radius: 24px;
  }

  .wpl-echoes-page .form_header .left {
    font-size: 24px;
  }

  .wpl-echoes-page .form_header .right {
    font-size: 15px;
  }

  .wpl-echoes-page .form-item-name > label,
  .wpl-echoes-page .form-item-email > label,
  .wpl-echoes-page .form-item-phone > label {
    font-size: 18px;
  }

  .wpl-echoes-page .form-item input[type="text"],
  .wpl-echoes-page .form-item input[type="email"] {
    font-size: 17px;
    padding: 8px 10px;
  }

  .wpl-echoes-page .form-item input::placeholder {
    font-size: 13px;
  }

  .wpl-echoes-page .form-item-terms label {
    font-size: 15px;
  }

  .wpl-echoes-page .form-actions .form-submit {
    padding: 12px 30px;
    font-size: 17px;
  }

  /* question pages */
  .rcb-wpl-2027-echoes-form .question_wrapper legend .fieldset-legend {
    font-size: 20px !important;
  }

  .wpl-echoes-page .form-type-checkbox label {
    font-size: 17px;
  }

  .wpl-echoes-page .wpl-others-input {
    font-size: 17px;
    padding: 8px 10px;
  }
}
/* thankyou page logo same */
.wpl-thankyou-logos img:first-child {
  width: 140px !important;
  height: auto !important;
  padding-bottom:10px;
}

.wpl-thankyou-logos img:last-child {
  width: 155px !important;
  height: 60px !important;
}

/* ---------- Select-any-number hint under each question ---------- */
.wpl-echoes-page .wpl-select-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: #555;
}

@media (max-width: 768px) {
  .wpl-echoes-page .wpl-select-hint {
    font-size: 12px;
  }
}
.wpl-echoes-page .question_wrapper .fieldset-legend.form-required::after,
.wpl-echoes-page .question_wrapper .form-required::after {
  display: none !important;
  content: none !important;
  background: none !important;
}