:root {
  --navy: #eef1f6;
  --navy-soft: #1c3358;
  --red: #a93226;
  --red-dark: #8f2a20;
  --red-tint: #3a2530;
  --red-tint-hover: #4a2f3b;
  --drop-hover: #1a2a45;
  --arrow: #e07a6b;
  --bg-band: #182741;
  --line: #3a4a66;
  --grey-text: #9aa7bd;
  --white: #0d1a2e;
  --error: #ff8a7a;
}

* {
  box-sizing: border-box;
}

/* BANNER */

.banner {
  background: var(--bg-band) !important;
  text-align: center;
  padding: 60px 24px 60px;
}

.banner h1 {
  font-weight: 400;
  font-size: 45px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: #fff;
}

.banner .rule {
  width: 70px;
  height: 4px;
  background: var(--red);
  margin: 0 auto;
  border-radius: 2px;
}

.banner p {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--grey-text);
  font-size: 16px;
  line-height: 1.6;
}


/*  FORM SECTION */

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

.wrap h2 {
  font-size: 25px;
  font-weight: 600;
  margin: 0 0 34px;
  color: #a93226;
}

.field {
  position: relative;
  margin-bottom: 30px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  font-size: 16px;
  padding: 8px 2px 10px;
  color: #333333d2;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

/* Dropdown arrow drawn with CSS */
.field select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--arrow) 50%),
    linear-gradient(135deg, var(--arrow) 50%, transparent 50%);
  background-position:
    calc(100% - 11px) 55%,
    calc(100% - 4px) 55%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.field select:invalid {
  color: #8b93a1;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8b93a1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--red);
}

.field label.floating {
  position: absolute;
  left: 2px;
  top: 10px;
  font-size: 16px;
  color: #8b93a1;
  pointer-events: none;
  transition: all .15s ease;
}

.field.has-value label.floating,
.field.focused label.floating {
  top: -20px;
  font-size: 17px;
  color: #272829;
  font-weight: 400;
}


/* VALIDATION ERRORS */

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-bottom-color: var(--error);
}


/* CONDITIONAL BLOCKS */

.conditional {
  display: none;
  animation: reveal .25s ease;
}

.conditional.show {
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hint {
  font-size: 12.5px;
  color: var(--grey-text);
  margin-top: 6px;
}

.hint.err {
  color: var(--red);
}


/*  FILE UPLOAD */

#careerField {
  margin-bottom: 30px;
}

.upload-title {
  font-size: 15px;
  color: #272829;
  margin-bottom: 12px;
}

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1.5px dashed var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}

.file-drop:hover,
.file-drop.drag,
.file-drop:focus-within {
  border-color: var(--red);
}

/* visually hidden but still keyboard-focusable */
.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.file-drop .label {
  padding-left: 0;
  font-size: 14px;
  font-weight: 600;
  color: #272829;
}

.file-drop .label em {
  font-style: normal;
  font-weight: 400;
  color: #8b93a1;
}

.file-drop .sub {
  font-size: 12.5px;
  color: #8b93a1;
}

.file-chip {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
}

.file-chip.show {
  display: flex;
}

.file-chip .chip-icon {
  flex: none;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
}

.file-chip .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #272829;
  font-weight: 600;
}

.file-chip .size {
  flex: none;
  font-size: 12.5px;
  color: #8b93a1;
}

.file-chip .remove {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--red-tint);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}

.file-chip .remove:hover {
  background: var(--red-tint-hover);
}


/* SUBMIT */

.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

button.submit-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s ease;
  font-family: inherit;
}

button.submit-btn:hover {
  background: var(--red-dark);
}

button.submit-btn:disabled {
  background: #c9a7a2;
  cursor: not-allowed;
}


/* CONTACT DETAILS + MAP */

.contact-location-section {
  width: 100%;
  background: #f4f4f4;
  padding: 58px 30px 70px;
}

.contact-location-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1fr);
  gap: 70px;
  align-items: center;
}

.contact-details {
  width: 100%;
  color: #111111;
}

.contact-item {
  margin: 0 0 24px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-title {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  color: #111111;
}

.contact-item-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: #202020;
}

.contact-item-text a {
  color: #202020;
  text-decoration: none;
}

.contact-item-text a:hover {
  text-decoration: underline;
}

.contact-separator {
  display: inline-block;
  margin: 0 10px;
  color: #555555;
}

.contact-map {
  width: 100%;
  height: 470px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}


/* THANK YOU MODAL */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 35, 63, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.overlay.show {
  display: flex !important;
}

.tt-thankyou-modal {
  background: #132039;
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  padding: 38px 30px 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: pop .2s ease;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Check mark is a text */
.tt-thankyou-modal .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1c3358;
  color: #fff;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.tt-thankyou-modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--navy);
}

.tt-thankyou-modal p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--grey-text);
  line-height: 1.6;
}

.tt-thankyou-modal button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.tt-thankyou-modal button:hover {
  background: var(--red-dark);
}


/*  TABLET */

@media (max-width: 1050px) {
  .contact-location-inner {
    grid-template-columns: minmax(350px, 1fr) minmax(400px, 1fr);
    gap: 45px;
  }

  .contact-map {
    height: 430px;
  }

  .contact-item-text {
    font-size: 15px;
  }
}


/*  MOBILE */

@media (max-width: 767px) {
  .banner {
    padding: 30px 20px 30px;
  }

  .banner h1 {
    font-size: 36px;
  }

  .banner p {
    font-size: 16px;
  }

  .wrap {
    padding: 42px 20px 60px;
  }

  .wrap h2 {
    font-size: 21px;
    margin-bottom: 34px;
  }

  .submit-row {
    justify-content: center;
  }

  button.submit-btn {
    width: 100%;
  }

  .contact-location-section {
    padding: 48px 20px 55px;
  }

  .contact-location-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-details {
    width: 100%;
  }

  .contact-item {
    margin-bottom: 25px;
  }

  .contact-item-title {
    font-size: 17px;
    margin-bottom: 9px;
  }

  .contact-item-text {
    font-size: 15px;
    line-height: 1.8;
  }

  .contact-separator {
    margin: 0 6px;
  }

  .contact-map {
    width: 100%;
    height: 350px;
  }
}


/*  SMALL MOBILE */

@media (max-width: 520px) {
  .banner h1 {
    font-size: 30px;
  }

  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .file-drop {
    padding: 16px;
    gap: 12px;
  }

  .file-chip .size {
    display: none;
  }

  .contact-location-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact-location-inner {
    gap: 38px;
  }

  .contact-item-text {
    font-size: 14.5px;
  }

  .contact-separator {
    margin: 0 4px;
  }

  .contact-map {
    height: 310px;
  }
}


/*  VERY SMALL MOBILE */

@media (max-width: 380px) {
  .contact-item-text {
    font-size: 14px;
  }

  .contact-separator {
    margin: 0 3px;
  }

  .contact-map {
    height: 280px;
  }
}