/* ===== Shared: Form tư vấn + Footer ===== */

/* Form tư vấn (dùng nhiều trang) */
.about-consult {
  background: transparent;
  position: relative;
  z-index: 1;
  margin-bottom: -220px;
}
.about-consult-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 4vw, 52px) clamp(24px, 4vw, 56px) 224px;
  border-radius: 36px 36px 0 0;
  background: linear-gradient(180deg, var(--cyan) 0%, #2f6ad6 48%, var(--blue) 100%);
  box-sizing: border-box;
}
.about-consult-form {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  color: #fff;
}
.about-consult-form h2 {
  margin: 0 0 26px;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.25;
  color: #fff;
}
.about-consult-row {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}
.about-consult-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.about-consult-form label {
  display: block;
}
.about-consult-form input,
.about-consult-form select,
.about-consult-form textarea {
  width: 100%;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  margin-bottom: 14px;
  background: rgba(13, 42, 110, .18);
  color: #fff;
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
  box-sizing: border-box;
  height: auto;
}
.about-consult-form input::placeholder,
.about-consult-form textarea::placeholder {
  color: rgba(255, 255, 255, .78);
}
.about-consult-form select {
  color: rgba(255, 255, 255, .85);
  background-color: rgba(13, 42, 110, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  height: auto;
}
.about-consult-form select option {
  color: #222;
  background: #fff;
}
.about-consult-form input:focus,
.about-consult-form select:focus,
.about-consult-form textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}
.about-consult-form textarea {
  resize: vertical;
  min-height: 110px;
}
.about-consult-submit {
  width: min(100%, 420px);
  display: flex;
  margin: 8px auto 0;
}
.about-consult-form .form-hint {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
  opacity: .92;
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--fl-bg-footer) no-repeat;
  background-size: cover;
  color: #fff;
  padding: 48px 0 0;
  position: relative;
  z-index: 2;
}
/* Trang chủ: form cũ đè lên footer */
body:has(.consult-stage) .site-footer {
  padding-top: 330px;
}
/* Trang dùng about-consult */
body:has(.about-consult) .site-footer,
.page-about .site-footer {
  padding-top: 89px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr .9fr .9fr 1.25fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 36px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-brand img {
  width: 132px;
  height: auto;
  margin-bottom: 14px;
}
.footer-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: .92;
  text-align: center;
}
.footer-links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.footer-links li { margin: 0 0 12px; }
.site-footer a {
  transition: color .25s;
  color: #fff;
}
.site-footer a:hover { color: var(--cyan); }
.footer-contact h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  font-family: Nunito, sans-serif;
  color: #fff;
}
.footer-contact p {
  margin: 0 0 8px;
  line-height: 1.45;
  opacity: .92;
}
.footer-social {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  padding-top: 18px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  transition: transform .25s;
}
.footer-social a:hover {
  background: transparent;
  transform: translateY(-3px);
}
.footer-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 16px 0;
  background-color: var(--blue);
}
.copyright {
  text-align: center;
  margin: 0;
  font-size: 13px;
  opacity: .85;
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }
  body:has(.consult-stage) .site-footer {
    padding-top: 48px;
  }
  .footer-social {
    justify-content: flex-start;
    padding-top: 16px;
  }
}

@media (max-width: 860px) {
  .about-consult .wrap{
    padding: 0px !important;
  }
  .about-consult-row--3 {
    grid-template-columns: 1fr;
  }
  .about-consult-panel {
    border-radius: 24px 24px 0 0;
    padding: 28px 16px 224px;
  }
  .about-consult-submit { width: 100%; }
  .about-consult {
    margin-bottom: -220px;
  }
  body:has(.about-consult) .site-footer,
  .page-about .site-footer {
    padding-top: 48px;
  }
  body:has(.consult-stage) .site-footer {
    padding-top: 36px;
  }
  .footer-brand img { width: 110px; }
  .footer-contact h3 { font-size: 18px; }
  .footer-links li { margin-bottom: 10px; }
}
