/*
 * GRIDTEK
 * Contact Page Styles
 *
 * Uses the main site's colors and typography.
 * No external dependencies.
 */

.contact-page {
  width: 100%;
  max-width: 920px;
  margin: 65px auto 90px;
}

.contact-intro {
  margin-bottom: 38px;
}

.contact-intro h1 {
  margin-bottom: 18px;
}

.contact-intro > p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* Form layout */

.contact-form {
  width: 100%;
  margin: 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 26px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

/* Labels */

.form-field label {
  color: #d6e0e9;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .035em;
}

.form-field label span {
  color: #70afe9;
  margin-left: 3px;
}

/* Inputs */

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;

  border: 1px solid rgba(133, 166, 194, .36);
  border-radius: 0;

  background: rgba(4, 20, 37, .35);
  color: var(--text);

  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;

  outline: none;
  box-shadow: none;

  transition:
    border-color .18s ease,
    background-color .18s ease;
}

.form-field input {
  min-height: 49px;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(133, 166, 194, .65);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #70afe9;
  background: rgba(4, 20, 37, .5);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8499ad;
}

/* Human verification */

.form-verification {
  margin-top: 34px;
  padding: 22px 24px;

  border: 1px solid rgba(133, 166, 194, .25);
  background: rgba(4, 20, 37, .2);
}

.form-verification > span {
  display: block;
  margin-bottom: 10px;

  font-size: 12px;
  letter-spacing: .035em;
  color: #d6e0e9;
}

.verification-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Submit button */

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 190px;
  min-height: 50px;
  margin-top: 28px;
  padding: 13px 28px;

  border: 1px solid #537594;
  border-radius: 0;

  background: rgba(63, 113, 157, .12);
  color: #f2f4f6;

  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .035em;

  transition:
    border-color .18s ease,
    background-color .18s ease;
}

.contact-submit:not(:disabled):hover {
  border-color: #70afe9;
  background: rgba(63, 113, 157, .22);
}

.contact-submit:disabled {
  opacity: .48;
  cursor: not-allowed;
}

/* Tablet */

@media (max-width: 800px) {
  .contact-page {
    margin-top: 48px;
    margin-bottom: 70px;
  }

  .contact-form-grid {
    column-gap: 18px;
    row-gap: 22px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .contact-page {
    margin-top: 36px;
    margin-bottom: 55px;
  }

  .contact-intro {
    margin-bottom: 30px;
  }

  .contact-intro > p:last-child {
    font-size: 14px;
  }

  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .form-field input,
  .form-field textarea {
    font-size: 16px;
  }

  .form-verification {
    padding: 20px;
  }

  .contact-submit {
    width: 100%;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .form-field input,
  .form-field textarea,
  .contact-submit {
    transition: none;
  }
}
