/* RSVP forma — vizuelna replika AddEvent widget-a, bez iframe-a */

[hidden] { display: none !important; }

.rsvpform { display: block; }

.rsvp-card {
  background: #fff;
  border-radius: 6px;
  padding: 40px 35px 45px;
  text-align: left;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  box-shadow: 0 7px 14px 0 rgba(50, 50, 93, .1), 0 3px 6px 0 rgba(0, 0, 0, .07);
}

.rsvp-card .rsvp-title {
  margin: 0 0 50px;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: #0b1a33;
}

/* Going / Maybe / Can't Go */
.rsvp-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.rsvp-pill { position: relative; margin: 0; cursor: pointer; }
.rsvp-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.rsvp-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  box-sizing: border-box;
  padding: 0 22px 0 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #efefef;
  color: #333;
  font-size: 16px;
  line-height: 1;
  transition: background-color .15s, border-color .15s, color .15s;
}
.rsvp-pill span svg { width: 18px; height: 18px; flex: none; }
.rsvp-pill:hover span { background: #e5e5e5; }
.rsvp-pill input:checked + span {
  background: #fff;
  border-color: #1e7d55;
  color: #1e7d55;
}
.rsvp-pill input:focus-visible + span { outline: 2px solid #0b1a33; outline-offset: 2px; }

/* Polja */
.rsvp-field { margin: 0 0 22px; }
.rsvp-field label {
  display: block;
  margin: 0 0 8px 3px;
  font-size: 15px;
  color: #1a1a1a;
}
.rsvp-card .rsvp-field input {
  display: block;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  background: #fafafa;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  outline: 0;
}
.rsvp-card .rsvp-field input:focus { border-color: #0b1a33; background: #fff; }
.rsvp-card .rsvp-field.invalid input { border-color: #d93025; }

.rsvp-card p.rsvp-consent {
  margin: 35px 0;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.rsvp-card p.rsvp-error {
  margin: -15px 0 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: #d93025;
}

.rsvp-submit {
  display: inline-block;
  height: 44px;
  padding: 0 25px;
  border: 0;
  border-radius: 4px;
  background: #0b1a33;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}
.rsvp-submit:hover { background: #18294a; }
.rsvp-submit:disabled { opacity: .6; cursor: wait; }

/* Honeypot protiv spam botova */
.rsvp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Potvrda */
.rsvp-card p.rsvp-done-msg {
  margin: 0 0 25px;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}
.rsvp-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: #0b1a33;
  text-decoration: underline;
  cursor: pointer;
}

@media only screen and (max-width: 600px) {
  .rsvp-card { padding: 28px 20px 32px; }
  .rsvp-card .rsvp-title { font-size: 20px; margin-bottom: 30px; }
  .rsvp-pill span { height: 42px; padding: 0 16px 0 12px; font-size: 15px; }
}
