/* rsvp-gate.css — minimal + elegant, NOT your main styles */

:root{
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Allura", cursive;

  --ink: rgba(20,20,20,.88);
  --muted: rgba(20,20,20,.62);
  --line: rgba(255,255,255,.22);

  --card: rgba(255,255,255,.72);
  --card-strong: rgba(255,255,255,.86);

  --shadow: 0 26px 70px rgba(0,0,0,.22);
  --radius: 22px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
}

body{
  overflow-x: hidden;
  background: #0f1211;
}

/* Page wrapper */
.gate{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 14px;
  position: relative;
}

/* Background */
.gate-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-photo{
  position: absolute;
  width: min(520px, 78vw);
  height: auto;
  border-radius: 22px;
  object-fit: cover;
  filter: saturate(.95) contrast(1.05);
  opacity: .85;
}

.bg-photo.p1{ left: -6%; top: 8%; transform: rotate(-7deg); }
.bg-photo.p2{ right: -8%; top: 14%; transform: rotate(6deg); }
.bg-photo.p3{ left: 18%; bottom: -10%; transform: rotate(4deg); }

.bg-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 10%, rgba(255,255,255,.10), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.72));
}

/* Card */
.gate-card{
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.20);
  overflow: hidden;
}

.gate-top{
  padding: 26px 22px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,0));
}

.ring-mark{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 2px auto 10px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.20);
}

.gate-kicker{
  margin: 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

.gate-title{
  margin: 6px 0 6px;
  font-size: 54px;
  font-weight: 400;
  color: rgba(255,255,255,.95);
}

.script{ font-family: var(--script); line-height: 1; }

.gate-sub{
  margin: 0 auto;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.86);
}

.gate-sub .em{
  font-weight: 600;
  color: rgba(255,255,255,.96);
}

/* Form */
.gate-form{
  padding: 18px 22px 22px;
  background: rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.14);
}

.field{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.label{
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.86);
  color: rgba(20,20,20,.88);
  font-family: var(--serif);
  font-size: 15px;
  outline: none;
}

input:focus{
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 0 0 4px rgba(255,255,255,.10);
}

/* Button */
.gate-btn{
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .6px;
  cursor: pointer;

  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;

  transition: transform .12s ease, background .2s ease;
}

.gate-btn:hover{ transform: translateY(-1px); background: rgba(0,0,0,.62); }
.gate-btn:active{ transform: translateY(0px) scale(.99); }

.hint{
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  text-align: center;
}

.error{
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 12px;
  text-align: center;
  color: #4c1b1b;
}

/* Footer */
.gate-foot{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 18px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.dot{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

/* Mobile tweaks */
@media (max-width: 700px){
  .bg-photo{ width: min(420px, 88vw); }
  .bg-photo.p1{ left: -16%; top: 4%; }
  .bg-photo.p2{ right: -18%; top: 18%; }
  .bg-photo.p3{ left: 4%; bottom: -14%; }

  .gate-title{ font-size: 48px; }
}

.back-btn{
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;
    border-radius: 999px;

    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.14);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);

    color: rgba(0,0,0,.85);
    text-decoration: none;
    font-family: var(--serif, system-ui, -apple-system, Segoe UI, Roboto, Arial);
    font-size: 14px;
    letter-spacing: .2px;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
    user-select: none;

    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  }

  .back-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    background: rgba(255,255,255,.98);
  }

  .back-btn:active{
    transform: translateY(0) scale(.98);
  }

  .back-btn:focus,
  .back-btn:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(84,32,32,.22), 0 10px 24px rgba(0,0,0,.12);
  }

  .back-btn__icon{
    font-size: 16px;
    line-height: 1;
  }

  @media (max-width: 480px){
    .back-btn{
      top: 10px;
      left: 10px;
      padding: 9px 12px;
      font-size: 13px;
    }
  }