/* =====================================================
   BYTE SIZE STUDIO
   CONTACT PAGE
===================================================== */


/* =====================================================
   SHARED
===================================================== */

.contact-page-shell {
  width:
    min(
      1540px,
      calc(100% - 68px)
    );

  margin-inline: auto;
}


.contact-page-label,
.contact-section-number {
  color: var(--purple);

  font-size: 0.59rem;
  font-weight: 700;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


/* =====================================================
   HERO
===================================================== */

.contact-page-hero {
  padding:
    180px 0 95px;

  background: var(--paper);

  border-bottom:
    1px solid var(--line);
}


.contact-page-label {
  display: block;

  margin-bottom: 55px;
}


.contact-page-hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(320px, 0.52fr);

  align-items: end;

  gap:
    clamp(70px, 10vw, 170px);
}


.contact-page-hero h1 {
  margin: 0;

  font-family: var(--display);

  font-size:
    clamp(4.8rem, 9vw, 10rem);

  font-weight: 800;

  line-height: 0.82;

  letter-spacing:
    -0.075em;

  text-transform: uppercase;
}


.contact-page-hero h1 span {
  color: var(--purple);
}


.contact-page-intro {
  padding-bottom: 8px;
}


.contact-page-intro p {
  margin: 0;

  color:
    rgba(22, 5, 33, 0.54);

  line-height: 1.75;
}


.contact-page-lead {
  margin-bottom:
    27px !important;

  color:
    var(--ink) !important;

  font-family: var(--display);

  font-size:
    clamp(1.4rem, 2.1vw, 2rem);

  font-weight: 500;

  line-height:
    1.35 !important;

  letter-spacing:
    -0.03em;
}


/* =====================================================
   HERO TYPE LINE
===================================================== */

.contact-type-line {
  display: flex;

  align-items: center;

  gap: 24px;

  margin-top: 75px;

  padding-top: 25px;

  border-top:
    1px solid var(--line);

  color:
    rgba(22, 5, 33, 0.42);

  font-size: 0.54rem;
  font-weight: 700;

  letter-spacing: 0.12em;
}


.contact-type-line i {
  width: 4px;
  height: 4px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--coral);
}


/* =====================================================
   FORM SECTION
===================================================== */

.contact-form-section {
  padding:
    125px 0;

  background: var(--paper);
}


.contact-form-layout {
  display: grid;

  grid-template-columns:
    minmax(290px, 0.42fr)
    minmax(0, 1fr);

  align-items: start;

  gap:
    clamp(70px, 10vw, 170px);
}


/* =====================================================
   FORM HEADING
===================================================== */

.contact-form-heading h2 {
  margin:
    23px 0 30px;

  font-family: var(--display);

  font-size:
    clamp(3rem, 5.5vw, 6rem);

  line-height: 0.85;

  letter-spacing:
    -0.065em;
}


.contact-form-heading > p {
  max-width: 340px;

  margin: 0;

  color:
    rgba(22, 5, 33, 0.52);

  line-height: 1.7;
}


/* =====================================================
   FORM
===================================================== */

.contact-form {
  padding: 38px;

  border:
    1px solid var(--ink);

  background: var(--white);

  box-shadow:
    14px 14px 0
    var(--paper-dark);
}


/* =====================================================
   FORM SECTION TITLES
===================================================== */

.form-section-title {
  display: flex;

  align-items: center;

  gap: 18px;

  padding-bottom: 18px;

  border-bottom:
    1px solid var(--ink);
}


.form-section-title span {
  color: var(--coral);

  font-size: 0.54rem;
  font-weight: 700;
}


.form-section-title strong {
  font-size: 0.58rem;
  font-weight: 700;

  letter-spacing: 0.12em;
}


.form-section-space {
  margin-top: 45px;
}


/* =====================================================
   FORM GRID
===================================================== */

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  column-gap: 25px;
}


/* =====================================================
   FORM FIELD
===================================================== */

.form-field {
  position: relative;

  padding-top: 28px;
}


.form-field label {
  display: flex;

  align-items: center;

  gap: 7px;

  margin-bottom: 10px;

  color:
    rgba(22, 5, 33, 0.48);

  font-size: 0.5rem;
  font-weight: 700;

  letter-spacing: 0.11em;
}


/* OPTIONAL LABEL */

.optional-label {
  color:
    rgba(22, 5, 33, 0.27);

  font-size: 0.43rem;
  font-weight: 600;

  letter-spacing: 0.08em;
}


/* INPUTS */

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;

  border: 0;

  border-bottom:
    1px solid var(--ink);

  border-radius: 0;

  outline: 0;

  background: transparent;

  color: var(--ink);

  font-family: var(--body);

  font-size: 0.95rem;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}


.form-field input {
  height: 54px;
}


.form-field select {
  height: 54px;

  padding:
    0 35px 0 0;

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;
}


.form-field textarea {
  min-height: 170px;

  padding:
    15px 0;

  resize: vertical;

  line-height: 1.65;
}


.form-field input::placeholder,
.form-field textarea::placeholder {
  color:
    rgba(22, 5, 33, 0.3);
}


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--purple);
}


/* =====================================================
   SELECT
===================================================== */

.select-wrap {
  position: relative;
}


.select-wrap::after {
  content: "↓";

  position: absolute;

  right: 3px;
  top: 50%;

  transform:
    translateY(-50%);

  color: var(--purple);

  font-size: 0.8rem;

  pointer-events: none;
}


/* =====================================================
   FULL WIDTH FIELD
===================================================== */

.form-field-full {
  margin-top: 10px;
}


/* =====================================================
   PREFILLED REQUIREMENTS
===================================================== */

.form-prefill {
  margin-top: 32px;

  padding: 18px;

  border:
    1px solid var(--line);

  background: var(--paper);
}


.form-prefill > span {
  display: block;

  margin-bottom: 8px;

  color: var(--purple);

  font-size: 0.5rem;
  font-weight: 700;

  letter-spacing: 0.11em;
}


.form-prefill p {
  margin: 0;

  color:
    rgba(22, 5, 33, 0.58);

  font-size: 0.8rem;

  line-height: 1.55;
}


/* =====================================================
   SUBMIT
===================================================== */

.form-submit-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: end;

  gap: 45px;

  margin-top: 40px;

  padding-top: 28px;

  border-top:
    1px solid var(--line);
}


.form-submit-row p {
  max-width: 500px;

  margin: 0;

  color:
    rgba(22, 5, 33, 0.38);

  font-size: 0.72rem;

  line-height: 1.55;
}


.contact-submit {
  min-width: 190px;
  min-height: 58px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding:
    0 18px;

  border: 0;

  background: var(--ink);

  color: var(--white);

  font-size: 0.6rem;
  font-weight: 700;

  letter-spacing: 0.11em;

  cursor: pointer;
}


.contact-submit span {
  color: var(--coral);

  font-size: 1rem;
}


/* =====================================================
   WHAT HAPPENS NEXT
===================================================== */

.contact-next {
  padding:
    110px 0 125px;

  background: var(--paper-dark);
}


.contact-next-heading {
  display: grid;

  grid-template-columns:
    65px
    minmax(0, 1fr);

  align-items: start;

  margin-bottom: 55px;
}


.contact-next-heading h2 {
  margin: 0;

  font-family: var(--display);

  font-size:
    clamp(3rem, 5.5vw, 6rem);

  line-height: 0.85;

  letter-spacing:
    -0.065em;
}


/* =====================================================
   NEXT ROWS
===================================================== */

.contact-next-list {
  margin-left: 65px;

  border-top:
    1px solid var(--ink);
}


.contact-next-row {
  display: grid;

  grid-template-columns:
    70px
    minmax(0, 1fr);

  gap: 25px;

  padding:
    30px 0;

  border-bottom:
    1px solid var(--ink);
}


.contact-next-row > span {
  padding-top: 3px;

  color: var(--coral);

  font-size: 0.53rem;
  font-weight: 700;
}


.contact-next-row strong {
  display: block;

  margin-bottom: 7px;

  font-family: var(--display);

  font-size:
    clamp(1.2rem, 2vw, 1.7rem);

  letter-spacing:
    -0.035em;
}


.contact-next-row p {
  max-width: 680px;

  margin: 0;

  color:
    rgba(22, 5, 33, 0.5);

  font-size: 0.85rem;

  line-height: 1.65;
}


/* =====================================================
   END NOTE
===================================================== */

.contact-end {
  padding:
    60px 0;

  background: var(--ink);

  color: var(--white);
}


.contact-end-inner {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 50px;
}


.contact-end-inner span {
  color: var(--coral);

  font-size: 0.55rem;
  font-weight: 700;

  letter-spacing: 0.13em;
}


.contact-end-inner p {
  margin: 0;

  font-family: var(--display);

  font-size:
    clamp(1.35rem, 2.4vw, 2.2rem);

  font-weight: 600;

  letter-spacing:
    -0.035em;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

  .contact-page-hero-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }


  .contact-page-hero h1 {
    font-size:
      clamp(4.5rem, 13vw, 8rem);
  }


  .contact-page-intro {
    max-width: 650px;
  }


  .contact-form-layout {
    grid-template-columns: 1fr;

    gap: 50px;
  }


  .contact-form-heading p {
    max-width: 600px;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

  .contact-page-shell {
    width:
      calc(100% - 34px);
  }


  /* HERO */

  .contact-page-hero {
    padding:
      125px 0 65px;
  }


  .contact-page-label {
    margin-bottom: 40px;
  }


  .contact-page-hero-grid {
    gap: 40px;
  }


  .contact-page-hero h1 {
    font-size:
      clamp(3.35rem, 15vw, 5rem);

    line-height: 0.85;
  }


  .contact-page-lead {
    font-size: 1.35rem;
  }


  .contact-type-line {
    align-items: flex-start;

    flex-direction: column;

    gap: 10px;

    margin-top: 50px;
  }


  .contact-type-line i {
    display: none;
  }


  /* FORM */

  .contact-form-section {
    padding:
      85px 0;
  }


  .contact-form-layout {
    gap: 40px;
  }


  .contact-form-heading h2 {
    font-size:
      clamp(2.9rem, 14vw, 4.4rem);
  }


  .contact-form {
    padding:
      28px 18px;

    box-shadow:
      8px 8px 0
      var(--paper-dark);
  }


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


  .form-section-space {
    margin-top: 40px;
  }


  .form-submit-row {
    grid-template-columns: 1fr;

    gap: 25px;
  }


  .contact-submit {
    width: 100%;
  }


  /* NEXT */

  .contact-next {
    padding:
      85px 0;
  }


  .contact-next-heading {
    grid-template-columns: 1fr;

    gap: 18px;
  }


  .contact-next-heading h2 {
    font-size:
      clamp(2.9rem, 14vw, 4.4rem);
  }


  .contact-next-list {
    margin-left: 0;
  }


  .contact-next-row {
    grid-template-columns:
      35px
      1fr;

    gap: 15px;
  }


  /* END */

  .contact-end-inner {
    align-items: flex-start;

    flex-direction: column;

    gap: 15px;
  }

}