/* ========================================
   3cAxis Technologies
   Consultation Page
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
}

body {
  width: 100%;

  color: #17202a;

  background:
    linear-gradient(
      180deg,
      #f6f9fc 0%,
      #ffffff 420px
    );

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}


/* ========================================
   Top Ribbon
   ======================================== */

.top-ribbon {
  position: relative;

  width: 100%;
  height: 64px;

  background-color: #1E87FC;
}


.nav-container {
  display: flex;

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

  width: min(
    1180px,
    calc(100% - 40px)
  );

  height: 100%;

  margin: 0 auto;
}


.brand,
.back-home {
  color: #ffffff;

  text-decoration: none;
}


.brand {
  font-size: 17px;
  font-weight: 700;

  letter-spacing: 0.025em;
}


.back-home {
  display: inline-flex;

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

  min-height: 38px;

  padding: 0 16px;

  border: 1px solid
    rgba(
      255,
      255,
      255,
      0.7
    );

  border-radius: 6px;

  font-size: 13px;
  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.04em;

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


.back-home:hover {
  color: #1E87FC;

  background-color: #ffffff;
}


/* ========================================
   Main Page
   ======================================== */

.consultation-page {
  width: min(
    1000px,
    calc(100% - 40px)
  );

  margin: 0 auto;

  padding:
    clamp(50px, 7vw, 90px)
    0
    90px;
}


/* ========================================
   Introduction
   ======================================== */

.consultation-intro {
  max-width: 760px;

  margin-bottom: 46px;
}


.eyebrow {
  margin-bottom: 12px;

  color: #1E87FC;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.13em;
}


.consultation-intro h1 {
  margin-bottom: 18px;

  color: #17202a;

  font-size:
    clamp(
      36px,
      5vw,
      62px
    );

  font-weight: 700;

  line-height: 1.04;
}


.intro-text {
  max-width: 690px;

  color: #56616d;

  font-size: 18px;

  line-height: 1.65;
}


.required-note {
  margin-top: 14px;

  color: #737d87;

  font-size: 13px;
}


/* ========================================
   Form
   ======================================== */

.consultation-form {
  width: 100%;
}


.form-section {
  margin-bottom: 28px;

  padding:
    clamp(
      24px,
      4vw,
      42px
    );

  border:
    1px solid
    #dce5ee;

  border-radius: 14px;

  background-color:
    rgba(
      255,
      255,
      255,
      0.94
    );
}


/* ========================================
   Section Heading
   ======================================== */

.section-heading {
  display: flex;

  align-items: flex-start;

  gap: 18px;

  margin-bottom: 30px;
}


.section-number {
  display: flex;

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

  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  color: #ffffff;

  background-color: #1E87FC;

  font-size: 13px;
  font-weight: 700;
}


.section-heading h2 {
  margin-bottom: 5px;

  font-size:
    clamp(
      21px,
      3vw,
      27px
    );

  line-height: 1.15;
}


.section-heading p {
  color: #727c86;

  font-size: 14px;

  line-height: 1.5;
}


/* ========================================
   Field Grid
   ======================================== */

.form-grid {
  display: grid;

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

  gap:
    22px
    24px;
}


.field {
  min-width: 0;
}


.field-full {
  grid-column: 1 / -1;
}


.field label {
  display: block;

  margin-bottom: 8px;

  color: #2e3740;

  font-size: 14px;
  font-weight: 600;
}


.field input,
.field select,
.field textarea {
  display: block;

  width: 100%;

  border:
    1px solid
    #cbd6e0;

  border-radius: 7px;

  color: #17202a;

  background-color: #ffffff;

  font-family: inherit;

  font-size: 16px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.field input,
.field select {
  min-height: 48px;

  padding:
    0
    13px;
}


.field textarea {
  min-height: 130px;

  padding: 13px;

  resize: vertical;

  line-height: 1.5;
}


.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #1E87FC;

  box-shadow:
    0 0 0 3px
    rgba(
      30,
      135,
      252,
      0.12
    );
}


.field textarea::placeholder {
  color: #9aa4ad;
}


/* ========================================
   Checkboxes
   ======================================== */

.checkbox-grid {
  display: grid;

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

  gap: 12px;
}


.check-option {
  display: flex;

  align-items: center;

  gap: 10px;

  min-height: 50px;

  padding:
    10px
    13px;

  border:
    1px solid
    #d6e0e9;

  border-radius: 7px;

  background-color: #ffffff;

  cursor: pointer;

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


.check-option:hover {
  border-color: #1E87FC;

  background-color: #f7fbff;
}


.check-option input {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;

  accent-color: #1E87FC;
}


.check-option span {
  font-size: 14px;

  line-height: 1.3;
}


/* ========================================
   Submit Area
   ======================================== */

.submit-section {
  display: flex;

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

  gap: 30px;

  margin-top: 38px;

  padding-top: 10px;
}


.submit-section p {
  max-width: 540px;

  color: #6a747e;

  font-size: 13px;

  line-height: 1.5;
}


.submit-section button {
  flex: 0 0 auto;

  min-height: 52px;

  padding:
    0
    28px;

  border: 0;

  border-radius: 7px;

  color: #ffffff;

  background-color: #1E87FC;

  font-family: inherit;

  font-size: 14px;
  font-weight: 700;

  letter-spacing: 0.035em;

  text-transform: uppercase;

  cursor: pointer;

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


.submit-section button:hover {
  background-color: #0878ed;

  transform: translateY(-1px);
}


/* ========================================
   Tablet
   ======================================== */

@media screen and (max-width: 850px) {

  .checkbox-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}


/* ========================================
   Mobile
   ======================================== */

@media screen and (max-width: 600px) {

  .top-ribbon {
    height: 56px;
  }


  .nav-container {
    width:
      calc(
        100% - 28px
      );
  }


  .brand {
    font-size: 14px;
  }


  .back-home {
    min-height: 34px;

    padding:
      0
      11px;

    font-size: 11px;
  }


  .consultation-page {
    width:
      calc(
        100% - 28px
      );

    padding:
      38px
      0
      60px;
  }


  .consultation-intro {
    margin-bottom: 30px;
  }


  .intro-text {
    font-size: 16px;
  }


  .form-section {
    margin-bottom: 18px;

    padding: 20px;
  }


  .section-heading {
    gap: 12px;

    margin-bottom: 24px;
  }


  .section-number {
    flex-basis: 38px;

    width: 38px;
    height: 38px;
  }


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

    gap: 19px;
  }


  .field-full {
    grid-column: auto;
  }


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


  .submit-section {
    flex-direction: column;

    align-items: stretch;
  }


  .submit-section button {
    width: 100%;
  }
}
