/* ==========================================================================
   Megosztott komponensek – modál, galéria, űrlap, kártyák, placeholder
   ========================================================================== */

/* ---- Kép placeholder (PHP / DB bekötéshez) ---- */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  width: 100%;
  height: 100%;
  min-height: 8em;
  background:
    repeating-linear-gradient(
      -45deg,
      #e8e4de 0,
      #e8e4de 0.5em,
      #ded9d2 0.5em,
      #ded9d2 1em
    );
  color: rgba(12, 11, 10, 0.5);
  text-align: center;
  overflow: hidden;
}

.img-placeholder::before {
  content: "";
  width: 2.75em;
  height: 2.75em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23907041' stroke-width='1.25'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0 0 22.5 18.75V5.25A2.25 2.25 0 0 0 20.25 3H3.75A2.25 2.25 0 0 0 1.5 5.25v13.5A2.25 2.25 0 0 0 3.75 21Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.65;
}

.img-placeholder__label {
  font-size: 0.6875em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.img-placeholder__hint {
  font-size: 0.625em;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Referencia kártyák ---- */
.page-referenciak .sheet-section:first-of-type {
  padding-top: 4.5em;
}

@media (min-width: 1502px) {
  .page-referenciak .sheet-filter {
    margin-top: 1.5em;
  }
}

.sheet-filter {
  margin-bottom: 2.5em;
}

.project-grid {
  gap: 2.25em;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  border: 1px solid rgba(12, 11, 10, 0.08);
  border-radius: 0.25em;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(12, 11, 10, 0.04);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(12, 11, 10, 0.1);
  border-color: rgba(144, 112, 65, 0.25);
}

.project-card .sheet-card__media {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(12, 11, 10, 0.06);
}

.project-card .sheet-card__body {
  padding: 1.35em 1.25em 1.5em;
}

.project-card .sheet-card__meta {
  color: var(--bronze);
  font-weight: 600;
}

.project-card .sheet-card__title {
  font-family: var(--font-display);
  font-size: 1.0625em;
  line-height: 1.35;
}

.page-referenciak .project-card[hidden] {
  display: none !important;
}

/* ---- Galéria trigger kártyák ---- */
button.sheet-card {
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-card {
  cursor: pointer;
  background: #fff;
  border-radius: 0.25em;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12, 11, 10, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(12, 11, 10, 0.1);
  outline: none;
}

.gallery-card:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bronze);
}

.gallery-card .sheet-card__media {
  aspect-ratio: 4 / 3;
}

.gallery-card .sheet-card__body {
  padding: 1em 1.15em 1.25em;
}

.gallery-card .sheet-card__title {
  margin: 0;
  font-size: 1em;
}

.gallery-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.5em;
  font-size: 0.6875em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ---- Herendi pillérek ikonokkal ---- */
.sheet-pillars--icons {
  gap: 1.25em;
}

.sheet-pillar--icon {
  padding: 1.35em 1.25em;
  border: 1px solid rgba(12, 11, 10, 0.08);
  border-radius: 0.25em;
  background: #fdfaf9;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.sheet-pillar--icon:hover {
  border-color: rgba(144, 112, 65, 0.3);
  box-shadow: 0 8px 24px rgba(12, 11, 10, 0.06);
}

.sheet-pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75em;
  height: 2.75em;
  margin-bottom: 0.85em;
  border-radius: 50%;
  background: rgba(144, 112, 65, 0.12);
  color: var(--bronze);
}

.sheet-pillar__icon svg {
  width: 1.35em;
  height: 1.35em;
}

.sheet-pillar--icon .sheet-pillar__title {
  font-family: var(--font-display);
  font-size: 1.0625em;
}

.sheet-pillar--icon .sheet-pillar__text {
  margin: 0;
  font-size: 0.875em;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- Gyártási környezet kártyák (modal trigger) ---- */
.env-card {
  cursor: pointer;
  background: #fff;
  border-radius: 0.25em;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12, 11, 10, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.env-card:hover,
.env-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(12, 11, 10, 0.1);
  outline: none;
}

.env-card:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bronze);
}

.env-card .sheet-card__media {
  aspect-ratio: 16 / 10;
}

.env-card .sheet-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 1em 1.15em 1.15em;
}

.env-card__arrow {
  flex-shrink: 0;
  width: 1.75em;
  height: 1.75em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(144, 112, 65, 0.12);
  color: var(--bronze);
  transition: background 180ms ease;
}

.env-card:hover .env-card__arrow {
  background: var(--bronze);
  color: #fff;
}

/* ---- Karrier layout javítás ---- */
.page-karrier .sheet-top__intro {
  max-width: 20.5em;
}

.page-karrier .sheet-section--intro {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  overflow: visible;
}

.page-karrier .sheet-section--intro .sheet-two-col {
  align-items: start;
}

.page-karrier .sheet-section--intro .sheet-prose {
  position: relative;
  z-index: 1;
}

.page-karrier .sheet-media--career {
  aspect-ratio: 4 / 3;
  min-height: 14em;
  border-radius: 0.25em;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(12, 11, 10, 0.08);
  display: block;
  padding: 0;
  background: none;
  color: inherit;
}

.page-karrier .sheet-media--career .img-placeholder {
  min-height: 100%;
  aspect-ratio: auto;
  height: 100%;
}

@media (min-width: 1502px) {
  .page-karrier .sheet-section--intro {
    padding-top: 5em;
    margin-top: 0;
  }

  .page-karrier .sheet-top__left {
    align-content: start;
  }

  .page-karrier .sheet-top__intro {
    margin-bottom: 0;
  }
}

@media (min-width: 900px) and (max-width: 1501px) {
  .page-karrier .sheet-top__left {
    grid-row: 1 !important;
  }

  .page-karrier .sheet-section--intro {
    clear: both;
    padding-top: 3rem;
  }
}

/* ---- Állás kártyák ---- */
.job-card {
  cursor: pointer;
  border: 1px solid rgba(12, 11, 10, 0.08);
  border-radius: 0.25em;
  background: #fff;
  box-shadow: 0 2px 10px rgba(12, 11, 10, 0.04);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.job-card:hover,
.job-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(144, 112, 65, 0.3);
  box-shadow: 0 12px 28px rgba(12, 11, 10, 0.08);
  outline: none;
}

.job-card:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bronze);
}

.job-card .sheet-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1em 1.5em;
  align-items: center;
  padding: 1.5em 1.35em;
}

.job-card__content {
  min-width: 0;
}

.job-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.6875em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  white-space: nowrap;
}

.job-card__cta svg {
  width: 1em;
  height: 1em;
  transition: transform 180ms ease;
}

.job-card:hover .job-card__cta svg {
  transform: translateX(3px);
}

@media (max-width: 599px) {
  .job-card .sheet-card__body {
    grid-template-columns: 1fr;
  }
}

.sheet-cards--jobs {
  gap: 1.25em;
}

/* ---- Karrier modál: leírás + jelentkezési űrlap ---- */
.job-modal {
  display: grid;
  gap: 2em;
}

.job-modal__description {
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(12, 11, 10, 0.08);
}

.job-apply {
  padding-top: 0.25em;
}

.job-apply__title {
  margin: 0 0 1.25em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125em;
  color: var(--ink-h);
}

.job-apply__form {
  margin: 0;
}

.job-apply__form input[type="file"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px dashed rgba(12, 11, 10, 0.2);
  border-radius: var(--radius-sm);
  background: #fdfaf9;
  font-size: 0.875rem;
}

.job-apply__form .field-hint {
  margin: 0.45em 0 0;
  font-size: 0.8125em;
  color: var(--muted);
}

.job-apply__submit {
  width: 100%;
  margin-top: 0.5em;
}

@media (min-width: 640px) {
  .job-apply__submit {
    width: auto;
  }
}

.site-modal__body .job-apply__form textarea {
  min-height: 7rem;
}

@media (max-width: 599px) {
  .site-modal--wide {
    width: 100%;
  }

  .job-modal {
    gap: 1.5em;
  }
}

/* ---- Modál ---- */
.site-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(12, 11, 10, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.site-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.site-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(52rem, 100%);
  max-height: min(90vh, 52rem);
  background: #fff;
  border-radius: 0.35em;
  box-shadow: 0 24px 64px rgba(12, 11, 10, 0.22);
  transform: translateY(1.25rem) scale(0.98);
  opacity: 0;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease;
}

.site-modal-overlay.is-open .site-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.site-modal--wide {
  width: min(72rem, 100%);
  max-height: min(92vh, 56rem);
}

.site-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1.35em 1.5em 1em;
  border-bottom: 1px solid rgba(12, 11, 10, 0.08);
}

.site-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375em;
  line-height: 1.25;
  color: var(--ink-h);
}

.site-modal__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25em;
  height: 2.25em;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(12, 11, 10, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-b);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-modal__close:hover {
  background: #fdfaf9;
  border-color: rgba(144, 112, 65, 0.35);
}

.site-modal__close svg {
  width: 1em;
  height: 1em;
}

.site-modal__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.35em 1.5em 1.75em;
  -webkit-overflow-scrolling: touch;
}

.site-modal__body--flush {
  padding: 0;
}

/* CKEditor tartalom előnézet */
.rich-content {
  font-size: 0.9375em;
  line-height: 1.7;
  color: var(--ink-b);
}

.rich-content h2,
.rich-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 1.5em 0 0.65em;
  line-height: 1.3;
}

.rich-content h2:first-child,
.rich-content h3:first-child {
  margin-top: 0;
}

.rich-content p {
  margin: 0 0 1em;
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 1.25em 0;
  border-radius: 0.2em;
}

.rich-content .img-placeholder {
  aspect-ratio: 16 / 9;
  margin: 1.25em 0;
  border-radius: 0.2em;
}

.rich-content__note {
  display: flex;
  align-items: flex-start;
  gap: 0.65em;
  margin-top: 1.5em;
  padding: 0.85em 1em;
  border-radius: 0.25em;
  background: rgba(144, 112, 65, 0.08);
  font-size: 0.8125em;
  line-height: 1.5;
  color: var(--muted);
}

.rich-content__note svg {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.1em;
  color: var(--bronze);
}

/* ---- Galéria modal rács ---- */
.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

@media (min-width: 600px) {
  .gallery-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem;
  }
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0.2em;
  overflow: hidden;
  cursor: pointer;
  background: #e8e4de;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(12, 11, 10, 0.15);
  outline: none;
}

.gallery-thumb:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bronze);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb__label {
  position: absolute;
  inset: auto 0 0;
  padding: 0.45em 0.5em;
  background: linear-gradient(transparent, rgba(12, 11, 10, 0.65));
  color: #fff;
  font-size: 0.625em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

/* PhotoSwipe brand override */
.pswp {
  --pswp-bg: rgba(12, 11, 10, 0.92);
  --pswp-root-z-index: 1100;
}

/* ---- Google térkép ---- */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 14rem;
  margin-top: 1.5em;
  border-radius: 0.25em;
  overflow: hidden;
  border: 1px solid rgba(12, 11, 10, 0.08);
  box-shadow: 0 4px 16px rgba(12, 11, 10, 0.06);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Egyedi form elemek ---- */
.custom-check,
.custom-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  cursor: pointer;
  user-select: none;
}

.sheet-form label.custom-radio,
.sheet-form label.custom-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  font-weight: 400;
}

.custom-check input,
.custom-radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-check__box,
.custom-radio__mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  margin-top: 0.1em;
  border: 2px solid rgba(12, 11, 10, 0.22);
  background: #fff;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.custom-check__box {
  border-radius: 0.2em;
}

.custom-radio__mark {
  border-radius: 50%;
}

.custom-check__box svg,
.custom-radio__mark svg {
  width: 0.75em;
  height: 0.75em;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
  color: #fff;
}

.custom-radio__mark::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.custom-check input:checked + .custom-check__box,
.custom-radio input:checked + .custom-radio__mark {
  border-color: var(--bronze);
  background: var(--bronze);
}

.custom-check input:checked + .custom-check__box svg {
  opacity: 1;
  transform: scale(1);
}

.custom-radio input:checked + .custom-radio__mark svg {
  display: none;
}

.custom-radio input:checked + .custom-radio__mark::after {
  opacity: 1;
  transform: scale(1);
}

.custom-check input:focus-visible + .custom-check__box,
.custom-radio input:focus-visible + .custom-radio__mark {
  box-shadow: 0 0 0 3px rgba(144, 112, 65, 0.25);
}

.custom-check__text,
.custom-radio__text {
  flex: 1;
  min-width: 0;
  font-size: 0.8125em;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.custom-check__text a,
.custom-radio__text a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.custom-check__text a:hover {
  color: var(--ink-b);
}

.custom-select {
  position: relative;
}

.custom-select select {
  appearance: none;
  width: 100%;
  padding: 0.75em 2.5em 0.75em 1em;
  border: 1px solid rgba(12, 11, 10, 0.15);
  border-radius: 0.2em;
  background: #fff;
  font-size: 0.9375em;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.custom-select select:focus-visible {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(144, 112, 65, 0.15);
}

.custom-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1em;
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* ---- Űrlap validáció ---- */
.sheet-form [data-field] {
  position: relative;
}

.sheet-form input,
.sheet-form textarea,
.sheet-form select {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.sheet-form input.is-invalid,
.sheet-form textarea.is-invalid,
.sheet-form select.is-invalid,
.sheet-form input[type="file"].is-invalid,
.custom-check.is-invalid .custom-check__box {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.sheet-form [data-field].is-invalid input[type="file"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.contact-turnstile.is-invalid {
  outline: 2px solid #c0392b;
  outline-offset: 4px;
  border-radius: 4px;
}

.sheet-form input.is-valid,
.sheet-form textarea.is-valid {
  border-color: #2d7a4f;
}

.sheet-form input.is-valid.is-invalid,
.sheet-form textarea.is-valid.is-invalid,
.sheet-form input[type="file"].is-valid.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.sheet-form [data-field].is-invalid .custom-check__box {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.4em;
  font-size: 0.75em;
  color: #c0392b;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.field-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field-error svg {
  flex-shrink: 0;
  width: 0.9em;
  height: 0.9em;
}

.form-turnstile {
  min-height: 4.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em;
  border: 1px dashed rgba(12, 11, 10, 0.2);
  border-radius: 0.25em;
  background: rgba(253, 250, 249, 0.8);
  font-size: 0.75em;
  color: var(--muted);
  text-align: center;
}

.form-turnstile[data-sitekey=""] {
  border-color: rgba(144, 112, 65, 0.35);
}

.contact-turnstile {
  display: flex;
  justify-content: center;
  min-height: 4.875rem;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  padding: 1em 1.15em;
  border-radius: 0.25em;
  font-size: 0.875em;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    max-height 320ms ease,
    margin 280ms ease,
    padding 280ms ease;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.form-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 8rem;
  margin-bottom: 0.5em;
  padding: 1em 1.15em;
}

.form-alert--success {
  background: rgba(45, 122, 79, 0.1);
  color: #1e5631;
  border: 1px solid rgba(45, 122, 79, 0.25);
}

.form-alert--error {
  background: rgba(192, 57, 43, 0.08);
  color: #922b21;
  border: 1px solid rgba(192, 57, 43, 0.22);
}

.form-alert__icon {
  flex-shrink: 0;
  width: 1.35em;
  height: 1.35em;
}

.form-alert__icon svg {
  width: 100%;
  height: 100%;
}

.sheet-form.is-submitting .btn[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

.btn--loading {
  position: relative;
}

.btn--loading::after {
  content: "";
  width: 1em;
  height: 1em;
  margin-left: 0.35em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--ink-b);
}

body.modal-open {
  overflow: hidden;
}
