.contact-us {
  margin-top: 80px;
  width: 100%;
  height: 600px;
  color: #fff;
  background: url("../images/landing.png") center/cover no-repeat;

  /* Layout alignment */
  display: flex;
  align-items: center; /* Vertically centers the box */
  justify-content: flex-start; /* Keeps it on the left */
}

.contact-us-content {
  position: relative;
  z-index: 2;
  width: 50%; /* Sets the box to exactly half the screen width */
  height: 100%; /* Makes the blur go from top to bottom */

  /* Creating the blurred sidebar effect */
  background: rgba(0, 103, 159, 0.7); /* Darker tint for better text contrast */
  backdrop-filter: blur(20px);

  /* Internal spacing */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers text vertically within the 50% zone */
  padding: 0 5%; /* Gives the text some breathing room from the edges */
  box-sizing: border-box;
}

/* ====== CONTACT SECTION ====== */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00679f;
}

.contact-section {
  padding: 60px;
  background-color: #00679f;
  width: 100%;
  max-width: 900px;
  color: #fff;
}

#form-message {
    scroll-margin-top: 120px;
}

#contact-section {
    scroll-margin-top: 80px; /* header magasság */
}

.contact-section h2 {
  font-weight: 800;
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

.contact-section p {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 15px;
}

.contact-section .text {
  margin-top: 10px;
  font-weight: 600;
  font-size: 22px;
}

.contacts {
  margin: 50px auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: center;
}

.contacts div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.6;
  text-align: left;
  margin-left: 0;
  text-decoration: none;
}
.contacts div a {
  color: #fff;
  text-decoration: none;
}

.contacts div a:hover {
  text-decoration: underline;
}

/* ====== CONTACT INFO ====== */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 30px;
}

.contact-info div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ====== FORM STYLES ====== */
.contact-form {
  background-color: #00679f;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group a {
  color: #fff;
}

label {
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 0.2em;
}

#name,
#email,
#phone,
#subject,
#message {
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  outline: none;
  background-color: #fff;
  color: #333;
  transition: box-shadow 0.3s ease;
}

#name:focus,
#phone:focus,
#email:focus,
#subject:focus,
#message:focus {
  box-shadow: 0 0 0 2px #00a5ff;
}

.check-box {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.check-box p {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* send gomb stílus a képen lévőhöz hasonló pill alakban középre */
.send-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* gomb csík és kis fekete árnyék alul (mint a képen a perem) */
.send-btn {
  display: block; /* or inline-block, if wrapped in a centered container */
  margin: 0 auto;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #00a5ff;
  color: #fff;
  text-align: center;
  margin-top: 30px;
  width: 150px;
}

.send-btn:hover {
  filter: brightness(1.2);
  cursor: pointer;
}

/* Üzenet dobozok (siker/hiba) */
.message {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 22px;
  font-weight: 600;
  max-width: 900px;
}
.message.success {
  background: #1bb75a;
  color: #04210f;
  text-align: center !important;
}
.message.error {
  background: #e05b5b;
  color: #330a0a;
  text-align: center !important;
}

/* extra: szabályozott margók a form elemei között mobilon */
@media (max-width: 620px) {
  .contact-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 15px;
    box-sizing: border-box;
  }
  .contact-info {
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
  }
  textarea {
    min-height: 220px;
  }
  .contact-info {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .contacts {
    flex-direction: column;
    gap: 10px;
  }
  .contact-section h2 {
    font-size: 1.3rem;
  }
  .check-box p {
    text-align: left;
  }
}

@media (max-width: 992px) {
  .contact-us-content {
    width: 70%; /* Give text more room on tablets */
  }
}

@media (max-width: 768px) {
  .contact-us {
    justify-content: center; /* Center the content on mobile */
  }

  .contact-us-content img {
    max-width: 100%;
  }

  .contact-us h1 {
    font-size: 1.8rem;
  }

  .contact-us-content {
    width: 100%; /* Take full width */
    height: auto; /* Let content dictate height */
    padding: 40px 20px;

    /* Optional: If you want the blur to cover the whole screen on mobile */
    /* height: 100%; */

    /* Optional: Center text on mobile for better balance */
    text-align: center;
    align-items: center;
  }

  .contact-us-content p {
    font-size: 1rem;
  }

}

/* Adjust for very short screens (landscape phones) */
@media (max-height: 500px) {
  .contact-us {
    margin-top: 0;
    height: auto;
    padding: 60px 0 0 0;
  }
}
