.aifo-foot {
  --foot-bg: #070400;
  --foot-accent: #f98715;
  --foot-text: #fff;
  --foot-muted: #666;
  --foot-muted-60: rgba(255, 255, 255, 0.6);
  --foot-border: rgba(255, 255, 255, 0.16);
  --foot-chip-bg: rgba(255, 255, 255, 0.2);
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--foot-bg);
  color: var(--foot-text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.aifo-foot__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("../images/backgrounds/footer_bg.png") center bottom / cover no-repeat;
}

.aifo-foot__inner {
  position: relative;
  z-index: 1;
  max-width: 1128px;
  margin: 0 auto;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .aifo-foot__inner {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .aifo-foot__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Top bar: logo + social */
.aifo-foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--foot-muted);
}

.aifo-foot__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.aifo-foot__social {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aifo-foot__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.aifo-foot__social a:hover {
  opacity: 1;
}

.aifo-foot__social .icon-media-box {
  width: 27px;
  height: 27px;
}

/* Main: contact + nav */
.aifo-foot__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 992px) {
  .aifo-foot__main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
  }
}

.aifo-foot__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aifo-foot__contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aifo-foot__contact-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.24px;
  color: var(--foot-accent);
}

.aifo-foot__contact-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.aifo-foot__contact-label .icon-dianhua,
.aifo-foot__contact-label .icon-youxiang,
.aifo-foot__contact-label .icon-dizhi {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 14px;
  color: #f98715;
}

.aifo-foot__contact-value {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 16px;
  letter-spacing: -0.14px;
  color: var(--foot-text);
}

.aifo-foot__nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  width: 100%;
}

@media (min-width: 992px) {
  .aifo-foot__nav-grid {
    width: 500px;
    justify-content: space-between;
  }
}

.aifo-foot__nav-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 100px;
}

.aifo-foot__nav-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--foot-text);
}

.aifo-foot__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aifo-foot__nav-list a {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--foot-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.aifo-foot__nav-list a:hover {
  color: var(--foot-text);
}

/* Newsletter */
.aifo-foot__newsletter {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--foot-border);
  border-bottom: 1px solid var(--foot-border);
}

@media (min-width: 992px) {
  .aifo-foot__newsletter {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.aifo-foot__newsletter-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aifo-foot__newsletter-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.aifo-foot__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.aifo-foot__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.24px;
  color: var(--foot-muted-60);
}

.aifo-foot__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.aifo-foot__form {
  width: 100%;
  max-width: 420px;
  overflow: visible;
}

.aifo-foot__form-field {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: var(--foot-chip-bg);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.aifo-foot__form-field.is-invalid {
  border-color: #f98715;
}

.aifo-foot__form-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--foot-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  outline: none;
}

.aifo-foot__form-input::placeholder {
  color: #ccc;
}

.aifo-foot__form-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  background: var(--foot-accent);
  color: var(--foot-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.aifo-foot__form-btn:hover {
  background: #ffad33;
}

.aifo-foot__form-btn:active {
  transform: translateY(1px);
}

.aifo-foot__form-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--foot-bg);
  border: 1px solid var(--foot-accent);
  border-radius: 4px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.24px;
  color: var(--foot-accent);
  max-width: calc(100% - 118px);
  white-space: nowrap;
}

.aifo-foot__form-tooltip[hidden] {
  display: none !important;
}

.aifo-foot__form-tooltip::before,
.aifo-foot__form-tooltip::after {
  content: "";
  position: absolute;
  left: 16px;
  width: 0;
  height: 0;
  border-style: solid;
}

.aifo-foot__form-tooltip::before {
  top: -8px;
  border-width: 0 7px 8px;
  border-color: transparent transparent var(--foot-accent);
}

.aifo-foot__form-tooltip::after {
  top: -6px;
  border-width: 0 6px 7px;
  border-color: transparent transparent var(--foot-bg);
}

.aifo-foot__form-tooltip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--foot-accent);
  border-radius: 2px;
  color: var(--foot-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.aifo-foot__form-tooltip-text {
  color: var(--foot-accent);
}

.aifo-foot__form-msg {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 16px;
}

.aifo-foot__form-success {
  color: #86efac;
}

/* Legal block */
.aifo-foot__legal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aifo-foot__disclaimer {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.24px;
  color: var(--foot-muted-60);
  text-align: justify;
}

.aifo-foot__company {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.24px;
  color: var(--foot-muted-60);
}

.aifo-foot__company p {
  margin: 0 0 4px;
}

/* Payment chips */
.aifo-foot__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--foot-border);
  border-bottom: 1px solid var(--foot-border);
}

.aifo-foot__pay-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid var(--foot-border);
}

.aifo-foot__pay-group:last-child {
  border-right: none;
  padding-right: 0;
}

.aifo-foot__pay-chip {
  width: 42px;
  height: 24px;
  border-radius: 6px;
  background: var(--foot-chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.aifo-foot__pay-chip img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

/* Bottom bar */
.aifo-foot__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 576px) {
  .aifo-foot__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

.aifo-foot__copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.24px;
  color: var(--foot-text);
  white-space: nowrap;
}

.aifo-foot__copyright a {
  color: var(--foot-text);
  text-decoration: none;
}

.aifo-foot__copyright a:hover {
  color: var(--foot-accent);
}

.aifo-foot__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aifo-foot__legal-links a {
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.24px;
  color: var(--foot-muted-60);
  text-decoration: underline;
}

.aifo-foot__legal-links a:hover {
  color: var(--foot-text);
}
