/* =========================================
   CONTACT PAGE
========================================= */

.contact-page {
  width: 100%;
  background: #fff;
}

/* =========================================
   MAIN SECTION
========================================= */

.contact-main-section {
  padding: 80px 40px 80px;
}

.contact-main-container {
  width: 100%;
  max-width: 1660px;
  margin: 0 auto;
}

/* GRID */

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* =========================================
   LEFT CONTENT
========================================= */

.contact-small-label {
  display: block;

  font-size: 13px;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 26px;
}

.contact-main-title {
  font-family: 'HelveticaW1Bold', sans-serif; 
  font-size: 48px;
  line-height: 0.95;
  font-weight: 700;
  color: #1d1d1d;
  letter-spacing: -3px;
  margin-bottom: 42px;
}

.contact-main-text {
  font-family: 'HelveticaW1Roman', sans-serif;    
  max-width: 420px;
}

.contact-main-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #2b2b2b;
  margin-bottom: 28px;
}

.contact-email-link {
  display: inline-block; 
  font-size: 16px;
  font-weight: 400;
  color: #111;
  margin-bottom: 34px;
  position: relative;
}

.contact-email-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #111;
}

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

.contact-form-wrapper {
  width: 100%;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;

  margin-bottom: 26px;
}

/* INPUT GROUP */

.contact-input-group {
  font-family: 'HelveticaW1Roman', sans-serif;
  display: flex;
  flex-direction: column;
}

.contact-input-group label {
  font-size: 14px;
  color: #111;
  margin-bottom: 12px;
}

/* INPUT */

.contact-input-group input,
.contact-input-group textarea {
  width: 100%;
  border: 1px solid #00000099;
  background: #fff;
  padding: 0 12px;
  font-size: 15px;
  color: #111;
  outline: none;
  transition: 0.3s ease;
}

/* INPUT HEIGHT */

.contact-input-group input {
  height: 40px;
}

/* TEXTAREA */

.contact-input-group textarea {
  height: 120px;
  resize: none;
  padding-top: 18px;
}

/* FOCUS */

.contact-input-group input:focus,
.contact-input-group textarea:focus {
  border-color: #000;
}

/* VALIDATION STATES */

.contact-input-group input.contact-invalid,
.contact-input-group textarea.contact-invalid {
  border-color: #d0392b;
  background: #fff9f9;
}

.contact-input-group input.contact-invalid:focus,
.contact-input-group textarea.contact-invalid:focus {
  border-color: #d0392b;
}

.contact-input-group input.contact-valid,
.contact-input-group textarea.contact-valid {
  border-color: #2a7a2a;
}

.contact-error {
  display: none;
  font-family: 'HelveticaW1Roman', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: #d0392b;
  margin-top: 5px;
  line-height: 1.4;
}

.contact-error:not(:empty) {
  display: block;
}

/* OPTIONAL LABEL */

.contact-optional {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

/* SUCCESS BANNER */

.contact-success {
  font-family: 'HelveticaW1Roman', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: #1d5e1d;
  background: #edf7ed;
  border: 1px solid #a8d5a8;
  padding: 16px 20px;
  margin-top: 32px;
  line-height: 1.6;
}

/* PLACEHOLDER */

.contact-input-group input::placeholder,
.contact-input-group textarea::placeholder {
  color: #9b9b9b;
}

/* BUTTON */

.contact-submit-btn {
  width: 220px;
  height: 56px;
  border: 1px solid #111;
  background: #0b0b0b;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  margin-top: 40px;
  transition: 0.3s ease;
}

.contact-submit-btn:hover {
  background: transparent;
  color: #111;
}

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

@media (max-width: 1100px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .contact-main-title {
    font-size: 58px;
  }
}

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

@media (max-width: 768px) {
  .contact-page {
    padding-top: 120px;
  }

  .contact-main-section {
    padding: 40px 20px 100px;
  }

  .contact-main-title {
    font-size: 44px;
    letter-spacing: -2px;

    margin-bottom: 30px;
  }

  .contact-main-text p {
    font-size: 16px;
    line-height: 1.7;

    margin-bottom: 22px;
  }

  .contact-email-link {
    font-size: 18px;
    margin-bottom: 26px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 20px;

    margin-bottom: 20px;
  }

  .contact-input-group input {
    height: 54px;
  }

  .contact-input-group textarea {
    height: 160px;
  }

  .contact-submit-btn {
    width: 100%;
    margin-top: 30px;
  }
}
