/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #faf7f2;
  --cream-dark: #f3ede3;
  --white: #ffffff;
  --gold: #c2a15b;
  --gold-dark: #a9894a;
  --gold-light: #e6d9bd;
  --text: #4a4238;
  --text-light: #8a7f6f;
  --error: #b3554f;
  --shadow: 0 20px 60px rgba(168, 141, 86, 0.18);
}

body {
  font-family: "Jost", sans-serif;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Decorative soft blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 340px;
  height: 340px;
  background: #f0e3c8;
  top: -100px;
  left: -100px;
}

body::after {
  width: 300px;
  height: 300px;
  background: #ecdfc4;
  bottom: -80px;
  right: -80px;
}

/* ============ CARD ============ */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 32px 32px;
  text-align: center;
  border: 1px solid rgba(194, 161, 91, 0.15);
  animation: fadeUp 0.8s ease both;
}

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

/* Ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold);
}

.ornament .line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament .line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament svg {
  width: 18px;
  height: 18px;
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 4px;
}

.names {
  font-family: "Great Vibes", cursive;
  font-size: 52px;
  line-height: 1.15;
  color: var(--gold-dark);
  margin: 8px 0 4px;
  text-shadow: 0 2px 12px rgba(194, 161, 91, 0.25);
}

.subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

/* ============ FORM ============ */
.field {
  text-align: left;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 14px 16px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.input-wrap input::placeholder {
  color: #b9ad9c;
}

.input-wrap input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(194, 161, 91, 0.12);
}

.error-msg {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  align-items: center;
  gap: 6px;
}

.error-msg.show {
  display: flex;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============ BUTTONS ============ */
.btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-wa {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(194, 161, 91, 0.35);
  margin-top: 6px;
}

.btn-wa:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(194, 161, 91, 0.42);
}

.btn-wa:active:not(:disabled) {
  transform: translateY(0);
}

.btn-wa:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-wa svg {
  width: 20px;
  height: 20px;
}

.btn-copy {
  margin-top: 10px;
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold-light);
  font-size: 14px;
  padding: 12px;
}

.btn-copy:hover {
  background: var(--cream);
  border-color: var(--gold);
}

.btn-copy svg {
  width: 16px;
  height: 16px;
}

/* ============ PREVIEW ============ */
.preview {
  margin-top: 26px;
  text-align: left;
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.preview-title svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.preview-box {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  padding: 18px;
  max-height: 260px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Jost", sans-serif;
}

.preview-box::-webkit-scrollbar {
  width: 6px;
}

.preview-box::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 3px;
}

.preview-empty {
  color: #b9ad9c;
  font-style: italic;
}

/* ============ FOOTER ============ */
footer {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
}

footer span {
  color: var(--gold-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 10;
  opacity: 0;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 400px) {
  .card {
    padding: 30px 20px 24px;
  }
  .names {
    font-size: 44px;
  }
  h1 {
    font-size: 26px;
  }
}