/* Banner trên cùng */
.banner-form {
  text-align: center;
  position: relative;
  z-index: 0;
  img {
    width: 100%;
    margin: 0 auto;
    display: block;
  }
}

/* Nền banner-item.png */
.banner-item-bg {
  position: relative;
  right: -15%;
  background: no-repeat center;
  background-size: cover;
  z-index: 1;
  width: 85%;
}
.graphic-item-bg{
    position: relative;
    z-index: 0;
    width: 100%;
    margin-top: -55%;
}
.section-title {
    text-align: center;
    font-size: 42px;
    color: #FF6D40;
    font-weight: 600;
    font-family: 'Avant Garde', Arial, sans-serif;
    position: relative;
    margin-top: -20%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 0.5;
    z-index: 101;
}
.title-tinmoi{
  font-family: 'SVN-Aguda', sans-serif;
  font-size: 68px;
  font-weight: 600;
  color: rgba(66, 16, 177, 1);
  margin-left: 20%;
  position: relative;
  z-index: 3;
  margin-top: 20%;
  padding-bottom: 100px;
}
.title-tinmoi h1{
  margin: 0;
}
.sub-title-lienhe{
  font-family: 'Avant Garde', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
}
.sub-title{
    font-family: 'Avant Garde', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffff;
}


/* FORM */

.form-wrapper {
  position: relative;

  left: 50%;
  transform: translate(-50%, -150%);
  width: 40%;
  background: rgb(255, 255, 255);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  flex: 0 0 30%;
  box-sizing: border-box;
}

/* Floating Label Support */
.floating-label-group {
  position: relative;
  width: 100%;
  font-family: 'Avant Garde', Arial, sans-serif;
}

.floating-label-group input,
.floating-label-group textarea,
.floating-label-group select {
  width: 90%;
  padding: 14px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  font-family: 'Avant Garde', Arial, sans-serif;
}

.floating-label-group label {
  position: absolute;
  top: 14px;
  left: 12px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease all;
  background: white;
  padding: 0 4px;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #333;
}

/* Fix select (do không hỗ trợ placeholder-shown) */
.floating-label-group select:focus + label,
.floating-label-group select + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #333;
}
.success-message {
  padding: 20px;
  background-color: #dff0d8;
  color: #3c763d;
  border: 2px solid #c3e6cb;
  border-radius: 10px;
  font-size: 18px;
  font-family: 'Avant Garde';
  text-align: center;
  animation: fadeInUp 0.5s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Responsive 1 cột ở mobile */
@media (max-width: 768px) {
  .form-group {
    flex: 0 0 100%;
  }
}


.form-row input,
.form-row select {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  min-width: 200px;
  font-family: 'Avant Garde', Arial, sans-serif;
  font-weight: 400;
}

.form-button {
  text-align: right;

}

.form-button button {
  padding: 12px 24px;
  background-color: #ff5722;
  color: white;
  font-family: 'Avant Garde', Arial, sans-serif;
  font-weight: 400;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.form-button button:hover {
  background-color: #e64a19;
}

/* === RESPONSIVE QUERIES === */
@media (min-width: 2560px) {
  .form-wrapper {
    width: 35%;
    top: 60%;
  }
  .title-tinmoi {
    font-size: 96px;
  }
}

@media (max-width: 1440px) {
  .title-tinmoi {
    font-size: 56px;
    margin-left: 10%;
  }
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 32px;
    margin-top: -10%;
  }
  .title-tinmoi {
    font-size: 48px;
    margin-left: 10%;
    padding-bottom: 40px;
  }
  .sub-title-lienhe {
    font-size: 20px;
  }
  .banner-item-bg {
    right: -5%;
    width: 100%;
  }
  .graphic-item-bg {
    margin-top: -50%;
  }
}

@media (max-width: 768px) {
  .form-wrapper {
    width: 77%;
    /* padding: 20px; */
    transform: translate(1%, 1%);
    position: static;
    /* margin-top: -80px; */
  }
  .form-row {
    flex-direction: column;
  }
  .form-button {
    text-align: center;
  }
  .section-title {
    font-size: 24px;
    margin-top: -5%;
  }
  .title-tinmoi {
    font-size: 32px;
    margin-left: 0;
    text-align: center;
    margin-top: 10%;
  }
  .sub-title-lienhe {
    font-size: 16px;
    text-align: center;
  }
  .graphic-item-bg {
    display: none;
  }
}

@media (max-width: 480px) {
  .form-row input,
  .form-row select {
    /* min-width: 100%; */
  }
}
