* {
  box-sizing: border-box;
}
:root {
  --ink: #403934;
  --muted: #766c66;
  --line: #ded3cc;
  --paper: rgba(255, 253, 251, 0.97);
  --soft: #f6f0ec;
}
html {
  background: #f7f1ed;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(135deg, #fff1fc, #efe6e0);
}
button,
input {
  font: inherit;
}
.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px 14px 34px;
}
.card {
  width: min(100%, 620px);
  background: var(--paper);
  border: 1px solid rgba(92, 73, 61, 0.08);
  border-radius: 28px;
  padding: 20px 20px 30px;
  box-shadow: 0 24px 80px rgba(61, 43, 33, 0.12);
  text-align: center;
}
.photo-wrap {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 4/5;
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #e7ddd7, #f7f1ed);
}
.couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.couple-photo.photo-missing {
  display: none;
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    70px "Cormorant Garamond",
    serif;
  color: #a69388;
}
.couple-photo:not(.photo-missing) + .photo-fallback {
  display: none;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3.8px;
  margin: 0 0 10px;
  color: #8a7c73;
}
h1 {
  font:
    500 clamp(54px, 14vw, 78px)/0.86 "Cormorant Garamond",
    serif;
  margin: 0;
  letter-spacing: -1px;
}
h1 span {
  font-size: 0.62em;
  margin: 0 8px;
  color: #9b877b;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 21px 0;
}
.ornament i {
  width: 52px;
  height: 1px;
  background: var(--line);
}
.ornament b {
  font:
    20px "Cormorant Garamond",
    serif;
  font-weight: 400;
  color: #9b877b;
}
h2 {
  font:
    500 31px/1.05 "Cormorant Garamond",
    serif;
  margin: 0 0 17px;
}
.intro {
  max-width: 480px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.upload-area {
  border: 1px dashed #cdbeb5;
  background: #fcfaf8;
  border-radius: 18px;
  padding: 18px 13px;
}
.choose-btn {
  border: 0;
  border-radius: 13px;
  padding: 15px 18px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.btn-icon {
  font-size: 21px;
  line-height: 0;
}
.hint {
  font-size: 11px;
  color: #93877f;
  margin: 10px 0 0;
}
.file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}
.file-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--soft);
  border-radius: 12px;
  padding: 9px;
}
.thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: #e6dcd6;
}
.file-meta {
  min-width: 0;
}
.file-name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size {
  font-size: 10px;
  color: #948982;
  margin-top: 3px;
}
.file-note {
  font-size: 9px;
  color: #9a8d85;
  margin-top: 3px;
}
.remove {
  border: 0;
  background: transparent;
  color: #8c7970;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}
.row-progress {
  grid-column: 1/-1;
  height: 4px;
  background: #e5dbd5;
  border-radius: 99px;
  overflow: hidden;
}
.row-progress > div {
  height: 100%;
  width: 0;
  background: #79685f;
  transition: width 0.15s;
}
.consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  text-align: left;
  margin: 18px 2px 0;
  color: #756b65;
  font-size: 10.5px;
  line-height: 1.55;
  cursor: pointer;
}
.consent input {
  position: absolute;
  opacity: 0;
}
.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid #bbaaa0;
  border-radius: 4px;
  background: #fff;
  position: relative;
  margin-top: 1px;
}
.consent input:checked ~ .checkmark {
  background: var(--ink);
  border-color: var(--ink);
}
.consent input:checked ~ .checkmark:after {
  content: "✓";
  position: absolute;
  color: #fff;
  font-size: 11px;
  left: 3px;
  top: -1px;
}
.upload-btn {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  border: 0;
  border-radius: 13px;
  background: #b4a49b;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.7px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.upload-btn:not(:disabled) {
  background: var(--ink);
}
.upload-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.overall {
  margin-top: 17px;
  text-align: left;
}
.overall-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #81756e;
  margin-bottom: 6px;
}
.progress {
  height: 7px;
  border-radius: 99px;
  background: #e8dfda;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  width: 0;
  background: #6e5d54;
  transition: width 0.15s;
}
.status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 11px;
  color: #766a63;
}
.status.error {
  color: #a45e54;
}
.success {
  margin-top: 22px;
  padding: 23px 14px;
  background: #f7f1ed;
  border-radius: 17px;
}
.success-heart {
  font:
    37px "Cormorant Garamond",
    serif;
}
.success h3 {
  font:
    600 28px "Cormorant Garamond",
    serif;
  margin: 4px 0;
}
.success p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}
.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 600;
}
.closing {
  font:
    19px "Cormorant Garamond",
    serif;
  color: #897a72;
  margin: 24px 0 0;
}
@media (min-width: 600px) {
  .page {
    padding: 42px 20px;
  }
  .card {
    padding: 30px 50px 40px;
  }
}

/* ===== Finom alulról feljövő animáció ===== */

.reveal-up {
  opacity: 0;
  transform: translateY(50px);

  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);

  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up.delay-1 {
  transition-delay: 0.15s;
}

.reveal-up.delay-2 {
  transition-delay: 0.35s;
}

/* Feltöltési feltételek link */

.terms-link {
  color: #5f514a;

  font-weight: 600;

  text-decoration: underline;
  text-decoration-color: #bca99f;
  text-underline-offset: 3px;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.terms-link:hover {
  color: #2f2926;
  text-decoration-color: #5f514a;
}
.section-2 {
  color: black;
  text-align: center;
  background-color: white;
  margin-top: 50px;
  padding-top: 10px;
}

.w-layout-blockcontainer {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .w-layout-blockcontainer {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  .w-layout-blockcontainer {
    max-width: none;
  }
}

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.logo {
  max-height: 40vh;
  max-width: 100%;
}

a {
  color: black;
}
