:root { --lego-yellow: #fdd404; --lego-red: #ec0008; --ink: #050505; --blue: #2588ee; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--lego-yellow); font-family: "Cera Pro", "Nunito Sans", Arial, sans-serif; }
.career-page { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; padding: 25px 0 105px; background: var(--lego-yellow); }
.page-content { position: relative; z-index: 2; width: min(90%, 970px); margin: 0 auto; }
.hero { position: relative; height: 462px; }
.lego-logo { width: 133px; height: 133px; object-fit: contain; }
.hero-copy { position: absolute; top: 153px; left: 4px; z-index: 2; }
h1 { margin: 0 0 17px; font-size: clamp(3.25rem, 7.35vw, 5.1rem); font-weight: 900; letter-spacing: -0.065em; line-height: .93; }
.hero p { margin: 0; font-size: clamp(1.25rem, 2.65vw, 1.72rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.16; }
.lego-figure { position: absolute; right: -9px; bottom: -208px; z-index: 1; width: min(49vw, 440px); height: auto; }
.block { position: absolute; z-index: 1; height: auto; pointer-events: none; }
.block-green { width: 87px; top: 332px; left: -19px; }
.block-pink { width: 158px; top: 91px; right: -1px; }
.block-blue { width: 214px; bottom: -3px; left: -7px; }
.block-orange { width: 184px; right: -8px; bottom: -3px; }
.form-card { position: relative; z-index: 2; padding: 29px 36px 26px; border-radius: 40px; background: #fff; }
.field label, .fieldset-address label, legend { display: block; margin: 0 0 7px; font-size: 1.33rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { float: none; width: auto; }
.form-control { height: 60px; padding: 10px 18px; border: 1px solid #898989; border-radius: 17px; color: var(--ink); font-size: 1.32rem; font-weight: 400; line-height: 1; box-shadow: none !important; }
.form-control::placeholder { color: #9b9b9b; opacity: 1; }
.form-control:focus { border-color: var(--blue); }
.fieldset-date, .fieldset-address { margin-top: 3px; }
.choice-columns { margin-top: 20px; }
.choices { margin: 0 0 19px; }
.choices legend { margin-bottom: 7px; }
.choices label { display: flex; align-items: center; gap: 17px; min-height: 35px; margin: 0 0 1px; font-size: 1.32rem; font-weight: 600; line-height: 1.17; }
input[type="radio"] { width: 31px; height: 31px; flex: 0 0 31px; margin: 0; accent-color: var(--blue); }
.consent { display: flex; align-items: flex-start; gap: 16px; margin: 0 20px 14px; font-size: 1rem; font-weight: 600; letter-spacing: -.018em; line-height: 1.21; }
.consent input { width: 31px; height: 31px; flex: 0 0 31px; margin: 0; accent-color: var(--blue); }
.privacy-link { display: inline-block; margin: 0 0 18px; color: #1683ee; font-size: 1.12rem; font-weight: 600; text-decoration: underline; }
.submit-button { display: block; width: 100%; height: 76px; border: 0; border-radius: 38px; color: #fff; background: var(--lego-red); font-family: inherit; font-size: 2.35rem; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.submit-button:hover, .submit-button:focus { background: #d80007; }
.submit-button:disabled { cursor: not-allowed; background: rgb(236 0 8 / 58%); opacity: 1; }

.thanks-page { position: relative; min-height: 100vh; overflow: hidden; background: var(--lego-yellow); }
.thanks-logo { position: absolute; z-index: 2; top: 1.3%; left: 8%; width: 133px; height: 133px; object-fit: contain; }
.thanks-message { position: absolute; z-index: 2; top: 27.2%; left: 4%; width: 92%; text-align: center; }
.thanks-message h1 { margin: 0 0 23px; font-size: clamp(3.3rem, 7.5vw, 5.25rem); line-height: 1.08; }
.thanks-message p { margin: 0; font-size: clamp(2.15rem, 5.7vw, 4rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.thanks-figure { position: absolute; z-index: 2; top: 48%; left: 50%; width: min(40.75vw, 440px); height: auto; transform: translateX(-50%); }
.restart-button { position: absolute; z-index: 2; right: 8.4%; bottom: 7.25%; left: 8.4%; display: grid; height: 77px; place-items: center; border-radius: 39px; color: #fff; background: var(--lego-red); font-size: clamp(1.75rem, 3.65vw, 2.45rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; text-decoration: none; }
.restart-button:hover, .restart-button:focus { color: #fff; background: #d80007; }

@media (min-width: 900px) and (max-height: 900px) and (orientation: landscape) {
  .career-page { padding: 24px 0 65px; }
  .page-content { width: min(91%, 970px); }
  .hero { height: 416px; }
  .hero-copy { top: 147px; }
  .form-card { padding: 28px 36px 25px; }
}

/* The 10th-generation iPad is used in portrait fullscreen.  Keep the complete
   form in the visible canvas while retaining tablet-size controls. */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  .career-page { height: 100dvh; min-height: 0; padding: 18px 0 0; overflow: hidden; }
  .page-content {
    /* Draw at a larger artboard size, then scale it into the 90%-wide canvas.
       The negative margin offsets the transform origin, preventing right-edge clipping. */
    width: calc(90% / .72);
    margin-left: calc(5% - (90% / .72 - 90%) / 2);
    margin-right: 0;
    transform: scale(.72);
    transform-origin: top center;
  }
  .hero { height: 395px; }
  .lego-figure {
    width: 390px;
    right: 35px;
    bottom: -110px;
  }
  .block-green { width: 62px; top: 276px; left: -18px; }
  .block-pink { width: 108px; top: 78px; right: -2px; }
  .block-blue { width: 132px; }
  .block-orange { width: 118px; }
  .thanks-logo { top: 2.1%; left: 8%; width: 101px; height: 101px; }
  .thanks-message { top: 27.2%; }
  .thanks-message h1 { margin-bottom: 16px; font-size: 3.75rem; }
  .thanks-message p { font-size: 2.85rem; }
  .thanks-figure { top: 48%; width: 334px; }
  .restart-button { right: 8.4%; bottom: 7.25%; left: 8.4%; height: 57px; border-radius: 29px; font-size: 1.95rem; }
}

@media (max-width: 650px) {
  .career-page { padding: 20px 0 65px; }
  .page-content { width: calc(100% - 28px); }
  .hero { height: 370px; }
  .lego-logo { width: 88px; height: 88px; }
  .hero-copy { top: 113px; left: 0; }
  h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero p { font-size: 1.1rem; }
  .lego-figure { width: min(65vw, 300px); right: -15px; }
  .block-pink { width: 105px; top: 80px; right: -22px; }
  .block-green { top: 270px; left: -45px; transform: scale(.72); }
  .form-card { padding: 25px 20px 22px; border-radius: 30px; }
  .form-control { height: 55px; border-radius: 14px; font-size: 1.1rem; }
  .field label, .fieldset-address label, legend { font-size: 1.1rem; }
  .fieldset-address .col-5 { width: 100%; }
  .fieldset-address .col-2 { width: 50%; }
  .choices label { font-size: 1.1rem; }
  .choice-columns { margin-top: 17px; }
  .consent { margin: 0 0 14px; font-size: .9rem; }
  .submit-button { height: 65px; font-size: 1.8rem; }
  .thanks-logo { top: 20px; left: 8%; width: 88px; height: 88px; }
  .thanks-message { top: 25%; left: 4%; width: 92%; }
  .thanks-message h1 { margin-bottom: 15px; font-size: clamp(2.65rem, 12vw, 3.6rem); }
  .thanks-message p { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .thanks-figure { top: 46%; width: min(63vw, 310px); }
  .restart-button { right: 7%; bottom: 5%; left: 7%; height: 60px; border-radius: 30px; font-size: 1.5rem; }
}
