.op-contact {
  width: 100%;
  padding: 10rem 9rem;
}

.op-contact__inner {
  max-width: var(--container-size-xl);
  margin: 0 auto;
}

/* ===== Texty ===== */

.op-contact__eyebrow {
  display: block;
  margin-bottom: 9.6rem;

  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.357;
  letter-spacing: 0.56rem;
  color: var(--black);
  text-transform: uppercase;
}

.op-contact__title {
  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: 500;
  font-size: 4rem;
  line-height: 1.375;
  letter-spacing: 0.4rem;
  color: var(--black);
}

/* ===== Form ===== */

.op-contact__form {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.op-contact__fields {
  max-width: 76rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.op-contact__actions {
  max-width: 76rem;
  width: 100%;
  margin: 6rem auto 0;
  display: flex;
  justify-content: flex-end;
  overflow: visible;
}

.op-contact__notice {
  position: fixed;
  left: 50%;
  bottom: 3rem;
  transform: translate(-50%, 1rem);
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.33;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  opacity: 0;
  z-index: 999;
  pointer-events: none;
  animation: op-contact-snackbar 4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.op-contact__notice--error {
  background: rgba(10, 10, 10, 0.9);
}

@keyframes op-contact-snackbar {
  0% {
    opacity: 0;
    transform: translate(-50%, 1rem);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  82% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 1rem);
  }
}

.op-contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Field ===== */

.op-contact__field {
  position: relative;
  width: 100%;
}

.op-contact__input {
  width: 100%;
  height: 5rem;
  padding: 0 1rem;

  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.375;
  letter-spacing: 0.24rem;
  text-align: center;
  color: var(--black);

  background: transparent;
  border: none;
  border-bottom: 0.1rem solid var(--black);
  outline: none;
}

/* ===== Label ===== */

.op-contact__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.357;
  letter-spacing: 0.14rem;
  color: var(--black);

  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

/* Hover – label se mírně posune dolů, zůstává v inputu */
.op-contact__field:hover .op-contact__label {
  transform: translate(-50%, -30%);
}

/* Focus / vyplněno – label pod linku */
.op-contact__input:focus + .op-contact__label {
  transform: translate(-50%, 150%);
  opacity: 0.8;
}

/* Nutné pro :placeholder-shown hack */
.op-contact__input::placeholder {
  opacity: 0;
}

.op-contact__input.is-filled + .op-contact__label {
  transform: translate(-50%, 150%);
  opacity: 0.8;
}

/* ===== Submit ===== */

.op-contact__submit {
  background: none;
  border: none;
  cursor: pointer;

  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1.385;
  --ls-base: 1.04rem;
  --ls-hover: 1.3rem;

  letter-spacing: var(--ls-base);
  color: var(--black);

  transition: letter-spacing 0.3s ease, margin 0.3s ease, transform 0.3s ease;
}

.op-contact__submit:hover {
  letter-spacing: var(--ls-hover);
  margin-left: calc((var(--ls-base) - var(--ls-hover)) / 2);
  margin-right: calc((var(--ls-base) - var(--ls-hover)) / 2);
  transform: translateX(0.8rem);
}

@media (max-width: 720px) {
  .op-contact__eyebrow {
    margin-bottom: 3rem;
  }

  .op-contact__title {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 2.5rem;
    letter-spacing: 0.18rem;
    margin-bottom: -2rem;
  }

  .op-contact__fields {
    gap: 5rem;
  }

  .op-contact__actions {
    margin-top: 3rem;
  }

  .op-contact__submit {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 2.5rem;
    letter-spacing: 0.72rem;
  }
}
