#contact-page {
  width: 100%;
  min-height: 100vh;
  background-color: #FFFDF6;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat Alternates', sans-serif;
}

.upper-sec {
  position: relative;
  height: 35vh;
  width: 100%;
  overflow: hidden;
}

.upper-sec img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.green-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 99, 71, 0.8);
  pointer-events: none;
}

.contact-header {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: left;
  text-align: left;
  position: absolute;
  top: 110px;
  left: 120px;
  max-width: 500px;
}

.contact-header h1 {
  font-size: 70px;
  font-weight: 600;
  margin: 0;
}

.contact-header p {
  font-weight: 500;
  font-family: 'Afacad', sans-serif;
  margin-left: 1rem;
  margin-top: 0;
}

.contact-content {
  font-family: 'Afacad';
  display: flex;
  flex-direction: column;
  font-size: 18px;
  color: #141E46;
  margin-top: 7rem;
  margin-left: 10rem;
  gap: 1.5rem;
}

.contact-content .con {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.contact-content .con i {
  color: #1a3e2d;
  font-size: 18px;
}

.contact-form {
  font-family: 'Afacad';
  width: 600px;
  max-height: 700px;
  position: absolute;
  top: 150px;
  right: 0;
  margin-right: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  transition: all 0.3s ease;
}

.contact-form-header h1 {
  margin: 0;
  color: #141E46;
  font-size: 28px;
  font-weight: bold;
}

.contact-form-header p {
  margin: 0;
}

.names {
  display: flex;
  gap: 15px;
}

.names input {
  flex: 1;
}

.add-infos {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.phone-field {
  display: flex;
  gap: 10px;
}

.country-code {
  padding: 8px 11px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #141e466a;
  font-size: 16px;
  backdrop-filter: blur(4px);
  min-width: 90px;
}

input,
textarea {
  padding: 8px 18px;
  border-radius: 25px;
  border: 1px solid rgba(13, 12, 36, 0.3);
  background: rgba(255, 255, 255, 0.2);
  color: #141e466a;
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(3px);
  width: 100%;
  resize: none;
  font-family: 'Afacad';
}

input::placeholder,
textarea::placeholder {
  color: #141e4640;
  font-weight: 500;
  font-family: 'Afacad';
}

.message {
  height: 135px;
}

.submit-btn {
  padding: 12px 20px;
  background-color: #141E46;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #346347;
}

.disclaimer {
  font-size: 12px;
  color: #141e4688;
  text-align: center;
  line-height: 1.4;
}

.disclaimer .link {
  color: #141E46;
  text-decoration: underline;
}

/* 🖥️ 4K / Large Screens */
@media (min-width: 1920px) {
  .contact-header h1 {
    font-size: 90px;
  }

  .contact-form {
    right: 200px;
    width: 700px;
  }
}

/* 💻 Laptops / Desktops */
@media (max-width: 1200px) {
  .contact-header {
    left: 80px;
    top: 90px;
  }

  .contact-form {
    right: 30px;
    width: 500px;
  }

  .contact-content {
    margin-left: 6rem;
  }
}

/* 📱 Tablets (≤992px) */
@media (max-width: 992px) {
  #contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFDF6;
    overflow-x: hidden;
  }

  .upper-sec {
    height: 30vh;
  }

  .contact-header {
    top: 25px;
    left: auto;
    margin: 2rem auto 1rem;
    text-align: center;
    max-width: 90%;
  }

  .contact-header h1 {
    font-size: 52px;
  }

  .contact-header p {
    font-size: 16px;
    margin-top: 0.5rem;
    text-align: center;
  }

  .contact-content {
    margin: 2rem 0;
    text-align: center;
    align-items: center;
    color: #141E46;
  }

  .contact-form {
    position: relative;
    right: auto;
    top: auto;
    margin: 2rem auto 4rem;
    width: 90%;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  }

  .names {
    flex-direction: column;
    gap: 12px;
  }

  .phone-field {
    flex-direction: column;
    gap: 10px;
  }

  input, textarea, select {
    font-size: 15px;
    padding: 10px 16px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* 📱 Mobile (≤600px) */
@media (max-width: 600px) {
  .upper-sec {
    height: 25vh;
  }

  .contact-header h1 {
    font-size: 40px;
  }

  .contact-header p {
    font-size: 14px;
    line-height: 1.4;
  }

  .contact-content {
    gap: 1rem;
    font-size: 16px;
  }

  .contact-form {
    width: 94%;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  .contact-form-header h1 {
    font-size: 22px;
  }

  .contact-form-header p {
    font-size: 13px;
  }

  .names,
  .phone-field {
    flex-direction: column;
    gap: 10px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 20px;
  }

  .disclaimer {
    font-size: 11px;
  }
}

/* 📱 Smallest Screens (≤400px) */
@media (max-width: 400px) {
  .upper-sec {
    height: 22vh;
  }

  .contact-header h1 {
    font-size: 32px;
  }

  .contact-header p {
    font-size: 13px;
  }

  .contact-content {
    font-size: 15px;
  }

  .contact-form {
    padding: 1rem;
    width: 96%;
    border-radius: 16px;
  }

  input, textarea {
    font-size: 14px;
  }

  .submit-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}
