/* Background applied only to the contact form section */
.contact1 {
    background-image: url('../img/backgroung.webp'); /* Adjust the path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0; /* Added padding to create space around the form */
}

/* Main container for the contact section */
.contact-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.94);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Left side text */
.contact-text {
    flex: 1;  /* Equal width for both sections */
    margin-right: 20px; /* Small margin to separate from form */
}

/* Right side form */
.contact-form {
    flex: 1;  /* Equal width for both sections */
    background-color: rgba(255, 255, 255, 0.3);  /* Slight transparency */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Adjusting the contact text and form layout */
.contact-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Form elements */
input[type="text"], input[type="email"], textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    outline: none;
}

textarea {
    height: 120px;
    resize: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-container input {
    margin-right: 10px;
}

.checkbox-container label {
    font-size: 18px;
}

.checkbox-container a {
    color: #F20505;
    text-decoration: none;
}

.submit {
    background-color: #F20505;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    width: 40%;
}

.submit:hover {
    background-color: #BF0404;
}

@media (max-width: 768px) {
    .contact-content {
      flex-direction: column; /* форма наверх, текст вниз */
      padding: 20px;
    }
  
    .contact-text,
    .contact-form {
      flex: 1;
      margin: 0;
      
      box-shadow: none;
      background: transparent;
    }
  
    .contact-text h2 {
      font-size: 6vw;
    }
  
    .contact-text p,
    .checkbox-container label {
      font-size: 4.2vw;
    }
  
    input[type="text"], input[type="email"], textarea {
      font-size: 4vw;
      padding: 10px;
    }
  
    .submit {
      font-size: 4.5vw;
      padding: 3vw 5vw;
      width: 100%;
      border-radius: 5vw;
    }
  
    .checkbox-container {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .checkbox-container input {
      margin-bottom: 10px;
    }
  
    .social-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 10px;
    }
  
    .social-links a {
      font-size: 5vw;
    }
  }
  
