.hero-services {
  background: url('../img/contacts/0.png') no-repeat center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: whitesmoke;
  position: relative;
}
.hero-services h1{
  color: whitesmoke;
}

.hero-services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-services-content {
  position: relative;
  z-index: 1;
}


h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  color: #1B2021;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}
@media (max-width: 480px) {
  h3 {
    font-size: 1.8rem;
  }
}

/* Layout Containers */
.core-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
}

/* Contact Section */
#contact {
  text-align: center;
  padding: 60px 20px;
  background: whitesmoke;
}

#contact h2 {
  font-size: 2.5rem;
  color: #1B2021;
  margin-bottom: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Improved Form Layout */
.form-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Ensure form and info are side by side on larger screens */
@media (min-width: 900px) {
  .form-box {
    flex-direction: row;
    justify-content: space-between;
  }
  form, .form-info {
    flex: 1;
    max-width: 48%;
  }
}

/* Full width form layout on small screens */
@media (max-width: 768px) {
  .form-box {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  form, .form-info {
    max-width: 100%;
  }
}

/* Form Styling */
form {
  background: whitesmoke;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 350px;
  max-width: 500px;
}

/* Centered Input Fields */
form input,
form textarea{
  width: 100%;
  padding: 14px;
  border: 1px solid #30343F;
  font-size: 1rem;
  transition: border-color 0.3s ease-in-out;

  background:whitesmoke;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus {
  border-color: #EB8258;
  outline: none;
  background:whitesmoke;
}

form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Submit Button */
form button {
  background: whitesmoke;
  color: #222222;
  padding: 14px 20px;
  border: 1px solid #222222;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  width: 100%;
  transition: 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

form button:hover {
  background: #222222;
  color: whitesmoke;
  transform: translateY(-2px);
}

/* Contact Info Styling */
.form-info , form label{
  flex: 1;
  min-width: 350px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Box Styling */
.form-kontakt-box {
  background: whitesmoke;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.form-kontakt-box h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 12px;
  font-weight: 600;
}

.form-kontakt-box p {
  font-size: 1rem;
  color:#30343F;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-box {
    flex-direction: column-reverse;
    align-items: center;
  }
  .form-info {
    max-width: 100%;

  }
  .form-info h3{
    font-size: 1.2rem;
  }
  form{
    min-width: 100px;
  }

  /* Contact Info Styling */
  .form-info , form label{
    min-width: 100px;
  }
}
/* Team Section */
.our-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.team-member {
  background: whitesmoke;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

.team-member img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
}

.team-member h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #1B2021;
}

.team-member p {
  font-size: 1rem;
  color: #30343F;
  margin: 5px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .services-box {
    flex-direction: column;
    text-align: left;
  }

  .box-content {
    flex-direction: column;
    text-align: left;
  }

  .services-box img {
    max-width: 100%;
  }

  .team-member {
    max-width: 100%;
  }
}

@media (max-width: 1000px) {

  .services-box img {
    display: none !important; /* Ensure the image is hidden */
  }

}
