/* Shared factory quote modal. Trigger with the `golf-quote-now` class. */
.golf-quote-now:focus-visible,
.golf-popup-close:focus-visible {
  outline: 3px solid rgba(216, 165, 71, .55);
  outline-offset: 3px;
}

.golf-popup-lock {
  overflow: hidden;
}

.golf-quote-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 22, 17, .72);
}

.golf-quote-popup.is-open {
  display: flex;
}

.golf-popup-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 30px;
  border-radius: 10px;
  background: var(--brand-white, #fff);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.golf-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f0f5f2;
  color: var(--brand-ink, #17231d);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.golf-popup-head {
  margin-bottom: 18px;
  padding-right: 42px;
}

.golf-popup-head h2 {
  margin: 0 0 8px;
  color: var(--brand-ink, #17231d);
  font-size: 28px;
  line-height: 1.2;
  text-transform: none;
}

.golf-popup-head p {
  margin: 0;
  color: var(--brand-copy, #4f645a);
  line-height: 1.6;
}

.golf-popup-form .widget,
.golf-popup-form .wpcf7,
.golf-popup-form form {
  margin: 0;
}

.golf-popup-form input,
.golf-popup-form select,
.golf-popup-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--brand-line, #d9e3de);
  border-radius: 6px;
}

.golf-popup-form textarea {
  min-height: 104px;
}

.golf-popup-form button[type="submit"],
.golf-popup-form input[type="submit"] {
  border: 0;
  background: var(--brand-green, #0f4f38);
  color: var(--brand-white, #fff);
  font-weight: 700;
  cursor: pointer;
}

.golf-form-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--brand-white, #fff);
  color: var(--brand-ink, #17231d);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.golf-form-notice.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.golf-form-notice::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-green, #0f4f38);
  content: "";
  flex: 0 0 auto;
}

.golf-form-notice.is-error {
  color: #7b241c;
}

.golf-form-notice.is-error::before {
  background: #c0392b;
}

@media screen and (max-width: 768px) {
  .golf-quote-popup {
    align-items: flex-end;
    padding: 12px;
  }

  .golf-popup-dialog {
    width: 100%;
    max-height: 88vh;
    padding: 24px 16px 18px;
    border-radius: 10px 10px 0 0;
  }

  .golf-popup-head h2 {
    font-size: 24px;
  }

  .golf-popup-close {
    top: 10px;
    right: 10px;
  }

  .golf-form-notice {
    top: 12px;
    width: calc(100% - 24px);
    font-size: 14px;
  }
}
