.footer-info {
  color: #fff;
  font-family: SVN-Aptima;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5625rem;
}
.footer-info strong {
  font-weight: 700;
}

.footer {
  min-height: 33.1875rem;
  height: auto;
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 5.1875rem;
  box-sizing: border-box;
}
.footer-wrap {
  margin-left: 12.5rem;
  margin-right: 12.5rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 15.5856rem 24.1875rem 24.1875rem;
  justify-content: space-between;
  align-items: start;
}
.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-wordmark {
  width: 16.875rem;
  height: 1.375rem;
  object-fit: contain;
  margin-bottom: 1.75rem;
}
.footer-logos,
.footer-info,
.footer-main .wpcf7,
.footer-main .contact-form {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.footer-info p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5625rem;
}
.footer-logo {
  width: 15.5856rem;
  height: 12.5213rem;
  object-fit: contain;
}

.legal {
  margin-top: 3.375rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid #59a1ca;
  color: #6fc5ef;
  text-align: center;
  font-family: SVN-Aptima;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 400;
  line-height: 0.75rem;
}
.legal p {
  width: 56rem;
  margin: 0 auto;
}

@media (max-width: 639.98px) {
  .footer {
    height: auto;
    background: #112e50;
  }

  .footer-main {
    row-gap: 2.12rem;
    place-items: center;
    grid-template-columns: 1fr;
  }
  .footer-wordmark {
    display: none;
  }
  .footer-wrap {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    margin-left: 0;
    margin-right: 0;
  }
  .legal p {
    width: 22.19rem;
  }
  .legal p br:not(:nth-child(2)) {
    display: none;
  }

  .footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .footer-logo {
    width: 12.21288rem;
    height: 9.81169rem;
  }
  .legal {
    color: #6fc5ef;
    text-align: center;
    font-family: SVN-Aptima;
    font-size: 0.625rem;
    font-style: italic;
    font-weight: 400;
    line-height: 0.75rem; /* 120% */
  }
}

/* Fix hiển thị cho Contact Form 7 trong footer */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.contact-form .form-panel {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.contact-form .field {
  display: block;
  width: 100%;
  position: relative;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select {
  width: 100%;
  height: 2.75rem;
  background: transparent;
  border: 1px solid #59a1ca;
  border-radius: 0.375rem;
  padding: 0 1rem;
  color: #fff;
  font-family: "SVN-Aptima", sans-serif;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus {
  border-color: #a1dcf4;
  box-shadow: 0 0 8px rgba(161, 220, 244, 0.2);
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Custom styling for Select dropdown to fit in dark mode */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'%3E%3Cpath d='M4.82 4.75L9.65 0H0L4.82 4.75Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.625rem 0.3125rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form select option {
  background-color: #123358;
  color: #fff;
}

/* Submit Button */
.contact-form .submit-button,
.contact-form input[type="submit"] {
  background: #a1dcf4;
  color: #123358;
  border: none;
  border-radius: 0.375rem;
  padding: 0 2rem;
  height: 2.75rem;
  font-family: "SVN-Aptima", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-form .submit-button:hover,
.contact-form input[type="submit"]:hover {
  background: #fff;
  color: #123358;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.contact-form br {
  display: none !important;
}
.contact-form p {
  margin: 0 !important;
}

/* Validation error styling */
.contact-form .wpcf7-not-valid-tip {
  color: #ff4d4f;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

.contact-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
  box-sizing: border-box;
}

.contact-form.sent .wpcf7-response-output {
  border-color: #52c41a;
  color: #52c41a;
}
