/* Memory wall - designed for the Wedding T10 look (maroon, gold, ivory) */
.wed10-wall-lead {
  max-width: min(86%, 21rem);
  margin: 0.1rem auto 1.1rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.4;
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(255, 248, 235, 0.72);
  color: var(--wed10-maroon);
  text-shadow: 0 1px 0 rgba(255, 248, 235, 0.7), 0 0 8px rgba(255, 248, 235, 0.6);
}

.wed10-wall-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 1.7rem 1.15rem 1.5rem;
  border-radius: 1.1rem;
  border: 1.5px solid rgba(140, 109, 42, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(247, 236, 214, 0.86));
  box-shadow:
    0 0 0 4px rgba(110, 26, 26, 0.08),
    0 14px 30px rgba(60, 14, 14, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.wed10-wall-corner {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  pointer-events: none;
  border: 0 solid var(--wed10-maroon);
}
.wed10-wall-corner--tl { top: 0.55rem; left: 0.55rem; border-top-width: 2px; border-left-width: 2px; }
.wed10-wall-corner--tr { top: 0.55rem; right: 0.55rem; border-top-width: 2px; border-right-width: 2px; }
.wed10-wall-corner--bl { bottom: 0.55rem; left: 0.55rem; border-bottom-width: 2px; border-left-width: 2px; }
.wed10-wall-corner--br { bottom: 0.55rem; right: 0.55rem; border-bottom-width: 2px; border-right-width: 2px; }

/* photo - same double maroon + gold frame as the gallery */
.wed10-wall-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.wed10-wall-frame {
  position: relative;
  display: block;
  width: min(62%, 10.5rem);
  aspect-ratio: 3 / 4;
  padding: 0.36rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--wed10-maroon);
  box-shadow:
    0 0 0 2px rgba(140, 109, 42, 0.9),
    0 10px 22px rgba(60, 14, 14, 0.32);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wed10-wall-frame::before,
.wed10-wall-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 0.5rem;
  height: 0.5rem;
  background: #e6c887;
  border: 1px solid rgba(110, 26, 26, 0.9);
  transform: rotate(45deg);
  pointer-events: none;
}
.wed10-wall-frame::before { top: -0.26rem; left: -0.26rem; }
.wed10-wall-frame::after { bottom: -0.26rem; right: -0.26rem; }

.wed10-wall-frame:active {
  transform: scale(0.985);
}

.wed10-wall-frame.is-invalid {
  box-shadow: 0 0 0 2px #d4351c, 0 0 0 5px rgba(212, 53, 28, 0.25);
}

.wed10-wall-mat {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.24rem;
  background: #fffaf0;
  box-shadow:
    inset 0 0 0 2px rgba(212, 181, 106, 0.7),
    inset 0 0 0 4px rgba(110, 26, 26, 0.85);
}

.wed10-wall-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wed10-wall-preview[hidden],
.wed10-wall-empty[hidden],
.wed10-wall-busy[hidden],
.wed10-wall-photo-actions[hidden],
.wed10-wall-error[hidden] {
  display: none;
}

.wed10-wall-empty {
  position: absolute;
  inset: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem;
  border: 1.5px dashed rgba(110, 26, 26, 0.45);
  border-radius: 0.2rem;
  color: var(--wed10-maroon);
  text-align: center;
}

.wed10-wall-empty svg {
  width: 2.1rem;
  height: 2.1rem;
}

.wed10-wall-empty-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wed10-wall-empty-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wed10-gold-2);
}

.wed10-wall-busy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 240, 0.85);
  color: var(--wed10-maroon);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wed10-wall-photo-actions {
  display: flex;
  gap: 0.5rem;
}

.wed10-wall-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 109, 42, 0.85);
  background: linear-gradient(165deg, var(--wed10-maroon-2), var(--wed10-maroon));
  color: #f6e6b8;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.wed10-wall-chip--ghost {
  background: transparent;
  color: var(--wed10-maroon);
  border-color: rgba(110, 26, 26, 0.55);
}

.wed10-wall-chip:active {
  opacity: 0.8;
}

/* fields */
.wed10-wall-field {
  display: block;
  margin-bottom: 0.9rem;
}

.wed10-wall-label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wed10-maroon);
}

.wed10-wall-field input,
.wed10-wall-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid rgba(140, 109, 42, 0.55);
  border-radius: 0.6rem;
  background: rgba(255, 252, 247, 0.85);
  color: var(--wed10-ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; /* 16px stops iOS Safari zooming the page on focus */
  line-height: 1.3;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.wed10-wall-field input.is-invalid,
.wed10-wall-field textarea.is-invalid {
  border-color: #d4351c;
  box-shadow: 0 0 0 2px rgba(212, 53, 28, 0.18);
}

.wed10-wall-field input::placeholder,
.wed10-wall-field textarea::placeholder {
  color: rgba(90, 55, 22, 0.45);
  font-style: italic;
}

.wed10-wall-field input:focus,
.wed10-wall-field textarea:focus {
  outline: none;
  border-color: var(--wed10-maroon);
  box-shadow: 0 0 0 2px rgba(110, 26, 26, 0.15);
}

.wed10-wall-error {
  margin: 0 0 0.7rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #8b1408;
}

.wed10-wall-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 181, 106, 0.85);
  background: linear-gradient(165deg, var(--wed10-maroon-2), var(--wed10-maroon) 55%, #4a1010);
  color: #f6e6b8;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(60, 14, 14, 0.35), inset 0 1px 0 rgba(246, 230, 184, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wed10-wall-submit svg {
  width: 1rem;
  height: 1rem;
}

.wed10-wall-submit[disabled] {
  opacity: 0.65;
  pointer-events: none;
}

.wed10-wall-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0.5rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wed10-maroon);
}

.wed10-wall-thanks[hidden] {
  display: none;
}

.wed10-wall-thanks p {
  margin: 0;
}

.wed10-wall-thanks .wed10-wall-chip {
  margin-top: 0.5rem;
}

.wed10-wall-thanks-icon {
  font-size: 1.8rem;
  color: var(--wed10-gold);
}
