@import '~bootstrap/scss/functions.scss';
@import '_variables.scss';
@import '~bootstrap/scss/bootstrap';
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  color: var(--white-color);

  .contact-header {
    text-align: center;
    margin-bottom: 40px;

    .contact-title {
      color: #FF8B00;
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .contact-heading {
      font-size: 42px;
      font-weight: 700;
      color: #000;
      margin: 0;
    }
  }

  .contact-form-container {
    background-color: #FF8B00;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;

    @media (max-width: 768px) {
      flex-direction: column;
    }

    // Информационные блоки
    .contact-info {
      @include flex-column;
      justify-content: space-around;
      width: 35%;
      padding-right: 30px;

      @media (max-width: 768px) {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
      }

      .info-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 40px;

        &:last-child {
          margin-bottom: 0;
        }

        .icon-container {
          width: 50px;
          height: 50px;
          background-color: $white;
          border-radius: 50%;
          @include flex-center;
          margin-right: 15px;
          flex-shrink: 0;

          i {
            font-size: 20px;
            color: #FF8B00;
          }
        }

        .info-content {
          h3 {
            margin: 0 0 8px;
            font-size: 16px;
            font-weight: 600;
            color: $white;
          }

          p {
            margin: 0;
            color: $white;
            font-size: 15px;
          }
        }
      }
    }

    // Форма
    .contact-form {
      flex: 1;

      .form-row {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;

        @media (max-width: 576px) {
          flex-direction: column;
          gap: 15px;
        }

        .form-group {
          flex: 1;
        }
      }

      .form-group {
        position: relative;
        margin-bottom: 15px;

        &:last-child {
          margin-bottom: 0;
        }

        .form-control {
          width: 100%;
          padding: 15px 20px;
          border: none;
          border-radius: 8px;
          background-color: $white;
          color: #000;
          font-size: 15px;

          &::placeholder {
            color: lighten(#000, 40%);
          }

          &:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(#003FA5, 0.3);
          }
        }

        textarea.form-control {
          resize: vertical;
          min-height: 120px;
        }

        .input-icon {
          width: 14px;
          height: 14px;
          position: absolute;
          top: 50%;
          right: 15px;
          transform: translateY(-50%);
          color: lighten(#FF8B00, 10%);
          font-size: 16px;

          // Для textarea иконка располагается в верхнем правом углу
          textarea + & {
            top: 20px;
            transform: none;
          }
        }

        .btn-submit {
          background-color: #003FA5;
          color: $white;
          border: none;
          border-radius: 8px;
          padding: 15px 25px;
          font-size: 16px;
          font-weight: 600;
          cursor: pointer;
          transition: background-color 0.3s;
          width: 100%;
          text-align: center;
          display: flex;
          align-items: center;
          justify-content: center;

          i {
            margin-left: 8px;
          }

          &:hover {
            background-color: darken(#003FA5, 10%);
          }
        }
      }
    }
  }

  // Иконки
  .icon-location,
  .icon-phone,
  .icon-mail,
  .icon-user,
  .icon-building,
  .icon-message,
  .icon-arrow-right {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
}
