:root {
  --ts-red: #e30613;
  --ts-text: #070707;
  --ts-border: #c9c9c9;
}

.ts-contact-page,
.ts-contact-alerts,
.ts-contact-page * { box-sizing: border-box; }

.ts-contact-alerts {
  width: 100%;
  margin: 35px 0 -15px;
  font-family: Arial, Helvetica, sans-serif;
}

.ts-contact-alert {
  margin-bottom: 10px;
}

.ts-contact-page {
  width: 100%;
  margin: 35px 0 0;
  color: var(--ts-text);
  font-family: Arial, Helvetica, sans-serif;
}

.ts-contact-title {
  margin: 0 0 34px;
  color: var(--ts-text);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.ts-contact-intro h2,
.ts-contact-company h2,
.ts-contact-form-wrap h2 {
  margin: 0;
  color: var(--ts-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.ts-contact-line {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 26px;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.ts-contact-line span:last-child,
.ts-contact-line a {
  min-width: 0;
  color: #222 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ts-contact-line a:hover,
.ts-contact-line a:focus {
  color: var(--ts-red) !important;
}

.ts-icon {
  display: inline-block;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin-right: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.ts-icon--pin {
  background-image: url('../img/location.png');
  background-size: 18px 22px;
}

.ts-icon--phone {
  background-image: url('../img/phone.png');
  background-size: 15px 22px;
}

.ts-icon--mail {
  background-image: url('../img/email.png');
  background-size: 22px 16px;
}

.ts-contact-intro {
  margin-bottom: 35px;
}

.ts-contact-intro h2 {
  margin-bottom: 17px;
}

.ts-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 31px 30px;
}

.ts-contact-card {
  display: block;
  min-width: 0;
  min-height: 170px;
  padding: 28px 20px 20px;
  border: 1px solid var(--ts-border);
  background: #fff;
  color: var(--ts-text);
  text-decoration: none;
}

.ts-contact-card h3 {
  min-height: 25px;
  margin: 0 0 8px;
  color: var(--ts-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ts-contact-card .ts-contact-line + .ts-contact-line {
  margin-top: 7px;
}

.ts-contact-detail {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
}

.ts-contact-company {
  min-height: 400px;
  padding-right: 30px;
  border-right: 1px solid #c8c8c8;
}

.ts-contact-company h2 {
  margin-bottom: 27px;
}

.ts-contact-company .ts-contact-line + .ts-contact-line {
  margin-top: 10px;
}

.ts-contact-form-wrap {
  padding-left: 31px;
}

.ts-contact-form-wrap h2 {
  margin: -1px 0 29px;
}

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

.ts-form-group {
  margin-bottom: 25px;
}

.ts-form-group--email {
  width: min(434px, 100%);
}

.ts-form-group label {
  display: block;
  margin: 0 0 7px;
  color: var(--ts-text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.ts-contact-form b {
  color: var(--ts-red);
}

.ts-contact-form input[type='email'],
.ts-contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 25px;
  background: #fff;
  box-shadow: none;
  color: var(--ts-text);
  font: 14px Arial, Helvetica, sans-serif;
  outline: 0;
}

.ts-contact-form input[type='email'] {
  height: 41px;
  padding: 8px 18px;
}

.ts-contact-form textarea {
  height: 100px;
  padding: 13px 18px;
  resize: vertical;
}

.ts-contact-form input[type='email']:focus,
.ts-contact-form textarea:focus {
  border-color: var(--ts-red);
}

.ts-privacy {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 1px 0 10px;
  cursor: pointer;
  color: var(--ts-text);
  font-size: 14px;
  font-weight: 400;
}

.ts-privacy input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ts-checkbox {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.ts-privacy input:checked + .ts-checkbox {
  border-color: var(--ts-red);
}

.ts-privacy input:checked + .ts-checkbox::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--ts-red);
  border-bottom: 2px solid var(--ts-red);
  transform: rotate(45deg);
  content: '';
}

.ts-privacy strong {
  color: var(--ts-text);
  font-weight: 700;
}

.ts-privacy a {
  color: var(--ts-text) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.ts-privacy a:hover,
.ts-privacy a:focus {
  color: var(--ts-red) !important;
}

.ts-required {
  margin: 0 0 10px;
  color: var(--ts-text);
  font-size: 14px;
}

.ts-contact-form button {
  width: 210px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: var(--ts-red);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s ease;
}

.ts-contact-form button:hover,
.ts-contact-form button:focus {
  background: #bd0010;
}

.ts-contact-hp {
  position: absolute !important;
  left: -10000px !important;
}

@media (max-width: 1199px) {
  .ts-contact-detail {
    grid-template-columns: 34.1% minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .ts-contact-title {
    margin-bottom: 34px;
    font-size: 36px;
  }

  .ts-contact-intro {
    margin-bottom: 31px;
  }

  .ts-contact-intro h2,
  .ts-contact-company h2,
  .ts-contact-form-wrap h2 {
    font-size: 24px;
  }

  .ts-contact-intro h2 {
    margin-bottom: 25px;
  }

  .ts-contact-grid { display: block; }

  .ts-contact-card {
    min-height: 170px;
    margin-bottom: 30px;
    padding: 29px 19px 20px;
  }

  .ts-contact-card h3 {
    margin-bottom: 9px;
    font-size: 16px;
  }

  .ts-contact-detail {
    display: block;
  }

  .ts-contact-company {
    min-height: 0;
    padding: 0 0 55px;
    border: 0;
  }

  .ts-contact-company h2 {
    margin-bottom: 25px;
  }

  .ts-contact-company .ts-contact-line + .ts-contact-line {
    margin-top: 10px;
  }

  .ts-contact-form-wrap {
    padding: 0;
  }

  .ts-contact-form-wrap h2 {
    margin: 0 0 29px;
  }

  .ts-form-group {
    margin-bottom: 28px;
  }

  .ts-form-group--email {
    width: 100%;
  }

  .ts-form-group label {
    margin-bottom: 8px;
  }

  .ts-contact-form button {
    width: 100%;
  }
}
