footer {
  /* background-color: #2f383e; */
  background-color: var(--secondary900);
}

.footer-wrapper {
  max-width: 130rem;
  margin: 0 auto;
  justify-content: space-around;
  display: flex;
  flex-wrap: wrap;
  padding: 10rem 0;
}

.footer-top-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  flex-wrap: wrap;
}

.emergency-links {
  width: 100%;
  text-align: center;
  margin-top: 4rem;
  order: 2;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__title {
  font-size: var(--font-size-medium-large);
  color: var(--primary50);
  font-weight: 500;
  text-align: center;
}

.footer__link {
  font-size: var(--font-size-medium);
  color: var(--primary50);
  font-weight: 400;
  text-decoration: none;
}

.footer-contact {
  color: var(--primary50);
  font-size: var(--font-size-medium);
  text-align: center;
}

.shipping-support {
  text-align: center;
}

.shipping-support h4 {
  font-size: var(--font-size-medium-large);
  color: white;
  font-weight: 500;
  margin-bottom: 2rem;
}

.shipping-support p {
  font-size: var(--font-size-medium);
  color: white;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.shipping-support a {
  color: white;
  text-decoration: underline;
}

.shipping-support a:hover {
  color: #f0f0f0;
}

.emergency-link {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white !important;
  padding: 1.2rem 2.4rem;
  text-decoration: none !important;
  border-radius: 0.8rem;
  font-weight: 700;
  font-size: var(--font-size-medium);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
  border: 2px solid transparent;
}

.emergency-link:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.4);
  color: white !important;
}

.emergency-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.copyright {
  font-size: var(--font-size-medium-large);
  font-weight: 300;
  color: var(--primary50);
  text-align: center;
  padding-bottom: 8rem;
}

@media only screen and (max-width: 576px) {
  .footer-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 6rem 0;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-wrapper > div {
    width: 80%;
    padding: 1rem;
  }

  .footer-top-row > div:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.337);
  }

  .footer-top-row > div:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.337);
  }

  .footer-top-row > div:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.337);
  }

  .footer-top-row > div:nth-child(4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.337);
  }

  .footer-top-row > div {
    padding-bottom: 2rem;
  }

  .shipping-support h4 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .shipping-support p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  footer > .copyright {
    padding-bottom: 6rem;
    font-size: 1.6rem;
  }

  .footer__title {
    font-size: 1.6rem;
  }

  .emergency-links {
    margin-top: 2rem;
    width: 100%;
  }

  .emergency-link {
    padding: 1rem 1.8rem;
    font-size: 1.4rem;
  }
}

/* Inquiry Modal Styles */
.inquiry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inquiry-modal-overlay.hidden {
  display: none;
}

.inquiry-modal {
  background-color: white;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.inquiry-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e5e5;
}

.inquiry-modal-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary900);
}

.inquiry-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.inquiry-modal-close:hover {
  background-color: #f5f5f5;
}

.inquiry-modal-body {
  padding: 32px;
}

.inquiry-form-group {
  margin-bottom: 24px;
}

.inquiry-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary900);
  font-size: 1.4rem;
}

.inquiry-form-group input,
.inquiry-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.4rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.inquiry-form-group input:focus,
.inquiry-form-group textarea:focus {
  outline: none;
  border-color: var(--primary500);
}

.inquiry-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.inquiry-submit-btn {
  background-color: var(--primary500);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.inquiry-submit-btn:hover {
  background-color: var(--primary600);
}

.inquiry-submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Mobile responsive */
@media only screen and (max-width: 576px) {
  .inquiry-modal {
    width: 95%;
    margin: 20px;
  }

  .inquiry-modal-header,
  .inquiry-modal-body {
    padding: 20px;
  }

  .inquiry-modal-header h3 {
    font-size: 1.6rem;
  }
}
