@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Sans:wght@300;400;500;600&display=swap");

:root {
  --primary: rgb(112, 69, 71);
  --primary-900: #4a2d2f;
  --primary-800: #5e3a3c;
  --primary-700: rgb(112, 69, 71);
  --primary-600: #895b5d;
  --primary-300: #d6c1c3;
  --primary-150: #ece3e4;
  --ink: #f3eded;
  --muted-ink: #decbcc;
  --panel: #f7f5f5;
  --panel-border: #d8c9ca;
  --hero-shadow: rgba(0, 0, 0, 0.38);
  --footer-bg: #d9d3c5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Ubuntu Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--primary-700);
  color: #fff;
}

.body-no-scroll {
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75vh;
  min-height: 560px;
  background-image: linear-gradient(var(--hero-shadow), var(--hero-shadow)),
    url("assets/banner.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero {
  position: relative;
  height: 75vh;
  min-height: 560px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 132px 0 72px;
  text-align: center;
}

.hero__logo {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero__content {
  width: min(94vw, 980px);
  padding: 0 14px;
}

.hero__meta {
  margin: 0 0 16px;
  font-size: clamp(0.75rem, 1.35vw, 1rem);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
}

.hero__subtitle {
  margin: 14px 0 0;
  font-size: clamp(0.95rem, 2vw, 1.85rem);
  color: rgba(255, 255, 255, 0.92);
}

.application {
  position: relative;
  z-index: 2;
  background: var(--primary-700);
}

.application__inner {
  width: min(88vw, 690px);
  margin: 0 auto;
  padding: 56px 0 54px;
}

.section-title {
  margin: 0 0 24px;
  text-align: center;
  color: var(--muted-ink);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.section-title span::before,
.section-title span::after {
  content: "";
  width: clamp(120px, 14vw, 230px);
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

.linkedin-panel {
  background: var(--panel);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}

.linkedin-btn {
  display: block;
  margin: 0 auto;
  padding: 9px 20px;
  border-radius: 999px;
  border: 2px solid var(--primary-300);
  background: #0b6ea5;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.linkedin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(11, 110, 165, 0.35);
  filter: brightness(1.05);
}

.linkedin-btn:disabled {
  opacity: 0.8;
  cursor: wait;
}

.linkedin-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--primary-800);
}

.linkedin-status[data-error="true"] {
  color: #9d2b2b;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full,
.consent,
.submit-feedback,
.submit-btn {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  font-weight: 400;
}

.submit-feedback {
  display: none;
  margin: 8px 0 2px;
  color: #d6f6df;
  text-align: center;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(119, 205, 146, 0.6);
  background: rgba(21, 105, 49, 0.3);
  padding: 10px 12px;
}

.submit-feedback--visible {
  display: block;
}

.submit-feedback[data-error="true"] {
  color: #f4cccc;
  border-color: rgba(208, 71, 79, 0.55);
  background: rgba(118, 31, 36, 0.38);
}

.submit-feedback[data-success="true"] {
  color: #d8ffe3;
  border-color: rgba(124, 219, 156, 0.6);
  background: rgba(24, 110, 52, 0.34);
}

.application-confirmation {
  text-align: center;
  color: var(--ink);
  padding: 8px 0 4px;
}

.application-confirmation__icon {
  width: auto;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.application-confirmation__icon svg {
  width: 30px;
  height: 30px;
  fill: var(--ink);
}

.application-confirmation__icon i {
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.application-confirmation__icon--icon {
  padding: 0;
}

.application-confirmation h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.application-confirmation p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel);
  color: #4f4f4f;
  font-size: 0.98rem;
  padding: 11px 13px;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
  color: #a7a7a7;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 4px), calc(100% - 12px) calc(1em + 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.upload {
  background: var(--panel);
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  padding: 8px;
  cursor: pointer;
}

.upload span {
  display: block;
  border: 2px dashed #e5e5e5;
  border-radius: 8px;
  color: #6e6e6e;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.95rem;
}

.file-meta {
  min-height: 1.2em;
  margin: 2px 4px 0;
  color: var(--muted-ink);
  font-size: 0.83rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.file-meta--visible {
  opacity: 1;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 0;
  border-radius: 5px;
}

.consent a {
  color: var(--ink);
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 14, 14, 0.7);
  backdrop-filter: blur(2px);
}

.privacy-modal__content {
  position: relative;
  width: min(92vw, 700px);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  background: #fff;
  color: #2b2b2b;
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.privacy-modal__content h2 {
  margin: 0 34px 12px 0;
  color: var(--primary-900);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.privacy-modal__body p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: #3c3c3c;
}

.privacy-modal__body a {
  color: var(--primary-700);
}

.privacy-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  color: #6a6a6a;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.submit-btn {
  justify-self: center;
  margin-top: 8px;
  background: var(--panel);
  color: var(--primary-600);
  border: 5px solid var(--primary-300);
  border-radius: 999px;
  font-size: 1rem;
  padding: 10px 30px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  background-color: #fff;
}

.site-footer {
  background: var(--footer-bg);
  text-align: center;
  color: #4f4f4f;
  padding: 34px 18px 40px;
}

.site-footer img {
  width: 118px;
  filter: grayscale(1) contrast(1.4);
  margin-bottom: 6px;
}

.footer-social-link {
  width: auto;
  height: auto;
  margin: 6px auto 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: #3f3f3f;
  border: none;
  background: transparent;
  transition: color 0.18s ease;
}

.footer-social-link:hover {
  color: #1f1f1f;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social-link i {
  font-size: 1.5rem;
  line-height: 1;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 900px) {
  .hero,
  .hero-bg {
    height: 70vh;
    min-height: 520px;
  }

  .hero {
    padding: 118px 0 58px;
  }

  .hero__logo {
    width: 104px;
  }

  .application__inner {
    width: min(92vw, 690px);
    padding-top: 46px;
  }

  .section-title {
    font-size: 2rem;
  }

  .field label {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero,
  .hero-bg {
    height: 62vh;
    min-height: 460px;
  }

  .hero {
    padding: 96px 0 42px;
  }

  .hero__logo {
    top: 18px;
    width: 90px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.5rem);
    line-height: 1.08;
  }

  .hero__subtitle {
    margin-top: 10px;
    font-size: clamp(0.9rem, 4.8vw, 1.25rem);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-title span::before,
  .section-title span::after {
    width: 80px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field label {
    font-size: 0.9rem;
  }

  input,
  select,
  textarea {
    font-size: 0.9rem;
    padding: 9px 11px;
  }

  textarea {
    min-height: 96px;
  }

  .upload span {
    font-size: 0.87rem;
    padding: 10px 8px;
  }

  .consent {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .submit-btn {
    font-size: 0.94rem;
    padding: 9px 20px;
  }

  .submit-btn {
    width: 100%;
  }

  .privacy-modal {
    padding: 12px;
  }

  .privacy-modal__content {
    max-height: 88vh;
    padding: 18px 16px 16px;
  }
}

@media (max-height: 760px) and (min-width: 641px) {
  .hero,
  .hero-bg {
    min-height: 500px;
  }

  .hero {
    padding: 108px 0 52px;
  }

  .hero__logo {
    top: 18px;
    width: 100px;
  }

  .hero h1 {
    line-height: 1.08;
  }
}
