/* ========================= */
/* STATE: ENTRY ACTIVE */
/* ========================= */

.entry-message {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.entry-active .entry-message {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========================= */
/* ENTRY BUTTON */
/* ========================= */

.entry-continue {
  background: none;
  border: none;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(184,134,44,0.7);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.entry-continue:hover {
  opacity: 1;
}

/* ========================= */
/* STATE: FORM OPEN */
/* ========================= */

body.entry-open .entry-message {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

body.entry-open .l3-flow {
  opacity: 0;
}

/* ========================= */
/* STATE: SUBMITTED */
/* ========================= */

body.entry-submitted .layer3-form {
  opacity: 1;
  transform: none;
}

body.entry-submitted .l3-flow {
  opacity: 0.05;
}

body.entry-submitted .layer3-back {
  opacity: 0;
  pointer-events: none;
}

/* ========================= */
/* ENTRY OVERLAY */
/* ========================= */

.entry-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 13, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 20;
}

body.entry-active .entry-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ========================= */
/* ENTRY BOX */
/* ========================= */

.entry-box {
  max-width: 520px;
  width: 90%;
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.9);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

body.entry-active .entry-box {
  transform: translateY(0);
  opacity: 1;
}

/* ========================= */
/* EXIT ENTRY (FIX) */
/* ========================= */

body.entry-open .entry-overlay {
  opacity: 0;
  pointer-events: none !important;
}

body.entry-open .entry-box {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* ========================= */
/* FORM */
/* ========================= */

.layer3-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 24px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.6s ease,
            transform 0.6s ease,
            visibility 0s linear 0.6s;

  z-index: 100;
  visibility: hidden;

  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}

body.entry-open .layer3-form {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0.3s;
}

body.layer3.entry-open .layer3-form {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);

  visibility: visible; 

  transition-delay: 1s;
}

/* ========================= */
/* STEP FORM */
/* ========================= */

.step-question {
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 12px;
}

.step-input {
  width: min(420px, 80vw);
  min-height: 70px;

  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);

  color: rgba(255,255,255,0.9);
  text-align: center;
  letter-spacing: 1.6px;

  padding: 5px;

  resize: none;
  outline: none;

  transition: border-color 0.3s ease;
}

.step-input:focus {
  border-bottom: 1px solid rgba(184,134,44,0.9);
}

/* ========================= */
/* ACTIONS */
/* ========================= */

.step-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.step-next,
.step-submit {
  background: none;
  border: none;

  color: rgba(184,134,44,0.85);

  letter-spacing: 4px;
  text-transform: uppercase;

  cursor: pointer;
  transition: opacity 0.3s ease;
}

.step-next:hover,
.step-submit:hover {
  opacity: 1;
}

.step-back {
  background: none;
  border: none;

  color: rgba(255,255,255,0.35);

  letter-spacing: 3px;
  text-transform: uppercase;

  cursor: pointer;
}

.step-back:hover {
  opacity: 0.7;
}

/* ========================= */
/* GDPR */
/* ========================= */

.step-gdpr {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.layer3-form.gdpr .step-gdpr {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gdpr-core {
  max-width: 320px;
  margin: 0 auto 12px;
  font-size: 13px;
  letter-spacing: 1.4px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

.gdpr-toggle {
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(184,134,44,0.7);
  cursor: pointer;
  margin-bottom: 16px;
}

.gdpr-full {
  max-width: 360px;
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.step-gdpr.open .gdpr-full {
  max-height: 500px;
  opacity: 1;
}

/* ========================= */
/* CUSTOM CHECKBOX */
/* ========================= */

.gdpr-check-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;

  cursor: pointer;
  user-select: none;
}

.gdpr-check {
  display: none;
}

.gdpr-box {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.gdpr-box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;

  width: 5px;
  height: 9px;

  border: solid rgba(184,134,44,0.9);
  border-width: 0 2px 2px 0;

  transform: rotate(45deg) scale(0.5);
  opacity: 0;

  transition: all 0.25s ease;
}

.gdpr-check:checked + .gdpr-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.gdpr-check-wrap:hover .gdpr-box {
  border-color: rgba(184,134,44,0.7);
}

.gdpr-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}

.gdpr-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.gdpr-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdpr-actions button {
  position: relative;
  padding: 0 16px;
  
}

/* ločnica med gumbi */
.gdpr-actions button:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);

  width: 1px;
  height: 14px;

  background: rgba(255,255,255,0.15);
}

.step-back-alt {
  background: none;
  border: none;

  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;

  cursor: pointer;
}

.step-back-alt:hover {
  opacity: 0.7;
}

/* ========================= */
/* SUBMIT + CANCEL */
/* ========================= */


.step-cancel {
  background: none;
  border: none;

  color: rgba(255,255,255,0.35);

  letter-spacing: 3px;
  text-transform: uppercase;

  cursor: pointer;
}

.step-cancel:hover {
  opacity: 0.7;
}

/* ========================= */
/* RESPONSE */
/* ========================= */

.form-response {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  max-width: 420px;
  width: 90%;

  padding: 32px 28px;

  border: 1px solid rgba(184,134,44,0.25);
  border-radius: 12px;

  background: rgba(10, 10, 10, 0.9);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 1s ease;

  text-align: center;

  z-index: 50;
}

body.entry-submitted .form-response {
  opacity: 1;
  z-index: 100;
}

/* TEXT */

.response-line {
  font-size: 16px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.9);
}

.response-line.subtle {
  font-size: 16px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.9);
}

/* PRIVACY MODAL */

.privacy-modal {
  position: fixed;
  inset: 0;

  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 2000;
}

.privacy-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.privacy-content {
  width: min(500px, 90vw);
  max-height: 80vh;

  background: rgba(10,10,10,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;

  padding: 24px;

  display: flex;
  flex-direction: column;
}

.privacy-scroll {
  overflow-y: auto;
  margin-top: 12px;

  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.privacy-close {
  align-self: flex-end;

  background: none;
  border: none;

  color: rgba(184,134,44,0.8);
  letter-spacing: 2px;
  cursor: pointer;
}

/* default (mobile) */
.privacy-scroll {
  overflow-y: auto;
  margin-top: 12px;

  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* desktop */
@media (min-width: 768px) {
  .privacy-content {
    max-height: none;
  }

  .privacy-scroll {
    overflow: visible;
  }
}