/* YL Contact Us footer modal */
.yl-extra-contact-footer-instance {
  position: relative;
  padding: 8px 0;
}

.yl-contact-us-footer-trigger {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  text-underline-offset: 0;
  text-align: inherit;
  padding: 12px 0;
}

.yl-contact-us-footer-trigger:hover,
.yl-contact-us-footer-trigger:focus-visible {
  opacity: 0.85;
}

.yl-contact-footer-modal-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.yl-contact-footer-modal-root[hidden] {
  display: none !important;
}

.yl-contact-footer-modal-root.is-open:not([hidden]) {
  display: flex;
}

.yl-contact-footer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.yl-contact-footer-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 2rem 1.75rem 1.75rem;
  box-sizing: border-box;
}

.yl-contact-footer-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  border-radius: 4px;
}

.yl-contact-footer-close:hover,
.yl-contact-footer-close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.yl-contact-footer-field {
  margin-bottom: 1rem;
}

.yl-contact-footer-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: #222;
}

.yl-contact-footer-field input[type="text"],
.yl-contact-footer-field input[type="email"],
.yl-contact-footer-field input[type="tel"],
.yl-contact-footer-field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  box-sizing: border-box;
}

.yl-contact-footer-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.yl-contact-footer-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.yl-contact-footer-submit {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #8b5a3c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.yl-contact-footer-submit:hover,
.yl-contact-footer-submit:focus-visible {
  background: #744832;
  outline: none;
}

.yl-contact-footer-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.yl-contact-footer-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
}

.yl-contact-footer-message.is-error {
  color: #b00020;
}

.yl-contact-footer-message.is-success {
  color: #1b5e20;
}

body.yl-contact-footer-modal-open {
  overflow: hidden;
}

/* Success phase (after submit) */
.yl-contact-footer-dialog-phase--success {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.yl-contact-footer-dialog-phase--success[hidden] {
  display: none !important;
}

.yl-contact-footer-success-text {
  color: #21272a;
}

.yl-contact-footer-success-join {
  margin-top: 26px;
}

.yl-contact-footer-success-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
}

.yl-contact-footer-social-link {
  display: inline-flex;
  line-height: 0;
  opacity: 0.9;
}

.yl-contact-footer-social-link:hover,
.yl-contact-footer-social-link:focus-visible {
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.yl-contact-footer-social-link img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
