/* Pricing block + bulk-pricing contact modal.
   Scoped with .pc- prefix so it can't collide with existing site classes. */

.pc-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}

.pc-price-unit {
  font-size: 1rem;
  font-weight: 400;
}

.pc-bulk-note {
  margin: 0 0 0.5rem;
}

/* Inline text button. Looks like a link, behaves like a button. */
.pc-inline-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #0b5cab;
  text-decoration: underline;
  cursor: pointer;
}

.pc-inline-button:hover,
.pc-inline-button:focus-visible {
  color: #06407a;
}

.pc-signed-out-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #4a4a4a;
}

/* ---------- Modal ---------- */

.pc-modal[hidden] {
  display: none;
}

.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}

.pc-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.pc-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1.5px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-modal__close:hover {
  background: #585858;
  border-color: #585858;
  color: #fff;
}

.pc-modal__title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.pc-modal__intro {
  margin: 0 0 1.25rem;
  color: #444;
}

.pc-field {
  margin-bottom: 1rem;
}

.pc-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.pc-field input,
.pc-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.7rem;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  font: inherit;
  color: #111;
  background: #fff;
}

.pc-field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}

.pc-field input::placeholder,
.pc-field textarea::placeholder {
  color: #8a8a8a;
}

.pc-field input:focus-visible,
.pc-field textarea:focus-visible,
.pc-inline-button:focus-visible,
.pc-modal__close:focus-visible,
.pc-modal__submit:focus-visible {
  outline: 2px solid #0b5cab;
  outline-offset: 2px;
}

.pc-field--invalid input,
.pc-field--invalid textarea {
  border-color: #b3261e;
}

.pc-field__error {
  display: block;
  margin-top: 0.25rem;
  color: #b3261e;
  font-size: 0.85rem;
}

.pc-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.pc-modal__submit {
  height: 2.5em;
  padding: 0 1.42em;
  border: 1.5px solid #B5D96A;
  border-radius: 0.5em;
  background: #B5D96A;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pc-modal__submit:hover:not(:disabled) {
  background: #585858;
  border-color: #585858;
  color: #fff;
}

.pc-modal__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.pc-modal__status {
  margin: 0;
  font-size: 0.9rem;
}

.pc-modal__status--error {
  color: #b3261e;
}

.pc-modal__status--success {
  color: #1a6b34;
}

@media (max-width: 480px) {
  .pc-modal__panel {
    padding: 1.5rem 1rem 1.25rem;
  }

  .pc-modal__submit {
    width: 100%;
  }
}