/* ─────────────────────────────────────────────────────────────────────────
   Custom Memory Form — memory.css
   Matches the RSVP plugin palette exactly.
   ───────────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap");

:root {
  --cmem-orange: #e76f51;
  --cmem-orange-dark: #ca5d42;
  --cmem-orange-light: #fdf4f0;
  --cmem-gold: #b8922e;
  --cmem-gold-light: #f5edd8;
  --cmem-text: #5c4d3a;
  --cmem-muted: #7a7870;
  --cmem-border: #dbd6cc;
  --cmem-ivory: #e6e2dc;
  --cmem-white: #ffffff;
  --cmem-error: #a8392b;
  --cmem-radius: 6px;
  --cmem-transition: 0.18s ease;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
#cmem-wrap {
  margin: 0 auto;
}

/* ── Step transition ────────────────────────────────────────────────────── */
.cmem-step {
  animation: cmemIn 0.35s ease both;
}

@keyframes cmemIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h2.cmem-title {
  font-family:
    "Aire Bold Pro", "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-weight: bold !important;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--cmem-orange);
  margin: 0 0 0.35rem;
  letter-spacing: 0.08em !important;
  line-height: 1.15;
}

.cmem-sub {
  font-size: 0.92rem;
  color: var(--cmem-muted);
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

/* ── Textarea ───────────────────────────────────────────────────────────── */
.cmem-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--cmem-border);
  border-radius: var(--cmem-radius);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cmem-text);
  background: var(--cmem-white);
  line-height: 1.65;
  resize: vertical;
  min-height: 140px;
  transition:
    border-color var(--cmem-transition),
    box-shadow var(--cmem-transition);
}

.cmem-textarea::placeholder,
input[type="text"].cmem-name-input::placeholder {
  color: #b0aca4;
}

.cmem-textarea:focus,
input[type="text"].cmem-name-input:focus {
  outline: none;
  border-color: var(--cmem-orange);
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.12);
}

/* ── Character count ────────────────────────────────────────────────────── */
.cmem-char-count {
  font-size: 0.78rem;
  color: var(--cmem-muted);
  text-align: right;
  margin: 0.75rem 0 0;
}

/* .cmem-name-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: #5c4d3a;
  line-height: 1.3;
}

.cmem-optional {
  color: #bbb;
  font-size: 13px;
} */

input[type="text"].cmem-name-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.3rem 1rem;
  border: 1.5px solid var(--cmem-border);
  border-radius: var(--cmem-radius);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cmem-text);
  background: var(--cmem-white);
  line-height: 1.65;
}

/* ── Error ──────────────────────────────────────────────────────────────── */
.cmem-error {
  color: var(--cmem-error);
  font-size: 0.84rem;
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.cmem-btn {
  display: inline-flex;
  align-items: center;
  background: var(--cmem-orange);
  color: #fff;
  border: none;
  padding: 0.72rem 1.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--cmem-radius);
  cursor: pointer;
  margin-top: 1.25rem;
  transition:
    background var(--cmem-transition),
    transform 0.1s;
}

.cmem-btn:hover {
  background: var(--cmem-orange-dark);
}
.cmem-btn:active {
  transform: scale(0.97);
}

.cmem-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ── Thank you ──────────────────────────────────────────────────────────── */
.cmem-thankyou {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.cmem-thankyou-icon {
  font-size: 2.5rem;
  color: var(--cmem-gold);
  margin-bottom: 1.1rem;
  display: block;
  animation: cmemSpin 8s linear infinite;
}

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