/* Стили для формы заявки tereze.tech */
.tereze-lead-form {
  --primary-color: #E11E1E;
/* Красный цвет с сайта tereze.tech */
  --error-color: #E11E1E;
  --text-color: #1A1A1A;
  --border-color: #e0e0e0;
  --hover-color: #333;
  --focus-color: rgba(225,30,30, 0.2);
  --font-family: 'Montserrat', Arial, sans-serif;

  max-width: 100%;
  /*margin: 0 auto;*/
  padding: 20px 0;
  /*border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);*/
}

.tereze-lead-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.tereze-lead-form .form-group {
  position: relative;
}

.tereze-lead-form label {
  display: inline-flex;
  margin-bottom: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  color: #7C7F8C;
  vertical-align: middle;
}

#attachment {
    margin-bottom: 5px;
}

.tereze-lead-form input[type="text"],
.tereze-lead-form input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-color);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tereze-lead-form input[type="text"]:focus,
.tereze-lead-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-color);
}

.tereze-lead-form input[type="text"].error,
.tereze-lead-form input[type="tel"].error {
  border-color: var(--error-color);
}

.tereze-lead-form .error-message {
  position: absolute;
  font-family: var(--font-family);
  font-size: 12px;
  color: var(--error-color);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s, transform 0.3s;
}

.tereze-lead-form .error-message.visible {
  opacity: 1;
  transform: translateY(0);
}

#privacyError {
  transform: translateY(-10px);
  left: 25px;
}
@media (max-width: 416px) {
    #privacyError {
        left: 0;
    }
}

.tereze-lead-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tereze-lead-form input[type="checkbox"] {
  margin-top: 3px;
  margin-right: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.tereze-lead-form .checkbox-group label {
  font-weight: 400;
  font-size: 13px;
  margin-bottom: 0;
}

.tereze-lead-form a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
  padding-left: 0.3em;
}

.tereze-lead-form a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.tereze-lead-form .submit-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 30px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  overflow: hidden;
}

.tereze-lead-form .submit-button:hover {
  background-color: var(--hover-color);
}

.tereze-lead-form .submit-button:active {
  transform: scale(0.98);
}

.tereze-lead-form .button-text {
  transition: opacity 0.3s;
}

.tereze-lead-form .button-loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.tereze-lead-form .submit-button.loading .button-text {
  opacity: 0;
}

.tereze-lead-form .submit-button.loading .button-loader {
  opacity: 1;
  visibility: visible;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
  .tereze-lead-form {
    padding: 20px 0;
  }

  .tereze-lead-form input[type="text"],
  .tereze-lead-form input[type="tel"] {
    padding: 12px 14px;
    font-size: 15px;
  }
  
  .tereze-lead-form .error-message {
      font-size: 10px;
  }
  
  .tereze-lead-form .checkbox-group {
      margin-bottom: 20px;
  }
  
  .tereze-lead-form .submit-button {
      width: 100%;
  }
}

/* Стили для страницы благодарности */
body > .thank-you-container {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*.thank-you-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}*/

.thank-you-icon {
  width: 120px;
  height: 120px;
  background-color: #E11E1E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.thank-you-icon svg {
  width: 60px;
  height: 60px;
  fill: white;
}

.thank-you-container > p {
  font-size: 18px;
  margin-bottom: 30px;
}

@media(max-width:500px) {
    .tereze-lead-form label {
        font-size: 10px;
        font-weight: 600;
    }
}

@media (max-width: 576px) {
.thank-you-container > p {
    font-size: 13px;
  }
}

/* Модальное окно формы заявки вызова */
.modal-overlay {
    position: fixed;
    inset: 0;
    /*display: flex;*/
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 30px;
    overflow-y: auto;
    display: none;
}

.modal-container {
    position: relative;
    max-width: 600px;
    background-color: #fff;
    margin: auto;
    padding: 30px;
    cursor: default;
    border-radius: 10px;
}

.modal-header h3 {
    margin-bottom: 0;
}

.modal-close {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 30px;
    position: absolute;
    top: -3px;
    right: 10px;
    padding: 0;
}

.modal-close:hover {
    color: #E11E1E;
}

.modal-container #privacyError {
    transform: translateY(-10px);
    left: 0;
}

.modal-container .tereze-lead-form {
    padding-bottom: 0;
}

.form-note {
    margin-bottom: 0;
}

.attach-file p {
    margin-bottom: 0;
}

/*  Страница благодарности  */
.thank-you-message {
    font-size: 20px;
    font-weight: 600;
}

.countdown {
    font-size: 24px;
    font-weight: 600;
    color: #E11E1E;
    margin-left: 10px;
}

.social-section {
    margin: 80px 0 40px;
}

.social-section .social-nav {
    padding-left: 0;
}

.social-section .social-nav li {
    margin-right: 15px;
}

.social-section .social-nav a {
    width: 50px;
    height: 50px;
}

@media (max-width: 576px) {
    .social-icons {
        justify-content: space-around;
        flex-wrap: wrap;
    }
}

.video-section {
    margin: 80px 0 40px;
}

.video-wrapper {
    width: 560px;
    height: 315px;
}

@media (max-width: 590px) {
    .video-wrapper {
        width: 400px;
        height: 255px;
    }
}

@media (max-width: 505px) {
    .video-wrapper {
        width: 270px;
        height: 220px;
    }
}

.newsletter-section {
    margin: 80px 0 40px;
}

.newsletter-form .form-control {
    display: inline;
    width: 50%;
    height: 40px;
    margin-right: 5px;
}

.newsletter-section button {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 420px) {
    .newsletter-section button {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.special-offer {
    margin: 80px 0 40px;
}

.code {
    margin-right: 20px;
}

.promo-code {
    margin-bottom: 15px;
}

.promo-code .btn {
    background-color: transparent;
    border: 2px solid #C81E1E;
    color: #C81E1E;
    padding: 0 20px;
}

.promo-code .btn:hover {
    color: #333;
    border: 2px solid #333;
}

.thank-you-actions {
    margin-top: 60px;
}