/* assets/style.css – FNG Seminar Registration */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --fng-magenta:    #C41E8E;
  --fng-gold:       #E8A825;
  --fng-charcoal:   #1a1a1a;
  --fng-gray-text:  #555555;
  --fng-warm-gray:  #f7f5f2;
  --fng-white:      #ffffff;
  --fng-border:     #e8e4df;
  --fng-font-head:  'Playfair Display', serif;
  --fng-font-body:  'DM Sans', sans-serif;
  --fng-radius:     12px;
  --fng-shadow:     0 4px 24px rgba(0,0,0,.08);
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.fng-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--fng-font-body);
  color: var(--fng-charcoal);
}

/* ── Price badge ──────────────────────────────────────────────────────────── */
.fng-price-badge {
  background: var(--fng-magenta);
  color: var(--fng-white);
  border-radius: var(--fng-radius);
  padding: 20px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fng-badge-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}
.fng-price-main {
  font-family: var(--fng-font-head);
  font-size: 40px;
  font-weight: 700;
  margin-left: auto;
}
.fng-price-sub {
  font-size: 13px;
  opacity: .8;
  flex-basis: 100%;
}

/* ── Step title ───────────────────────────────────────────────────────────── */
.fng-step-title {
  font-family: var(--fng-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--fng-charcoal);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--fng-border);
}

/* ── Fields ───────────────────────────────────────────────────────────────── */
.fng-field {
  margin-bottom: 20px;
}
.fng-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--fng-charcoal);
}
.fng-field .req { color: var(--fng-magenta); }

.fng-field input[type="text"],
.fng-field input[type="email"],
.fng-field input[type="tel"],
.fng-field select,
.fng-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--fng-border);
  border-radius: 8px;
  font-family: var(--fng-font-body);
  font-size: 15px;
  color: var(--fng-charcoal);
  background: var(--fng-white);
  box-sizing: border-box;
  transition: border-color .2s;
}
.fng-field input:focus,
.fng-field select:focus,
.fng-field textarea:focus {
  outline: none;
  border-color: var(--fng-magenta);
  box-shadow: 0 0 0 3px rgba(196,30,142,.1);
}

.fng-hint {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
}

/* ── Price summary ────────────────────────────────────────────────────────── */
.fng-price-summary {
  background: var(--fng-warm-gray);
  border: 1px solid var(--fng-border);
  border-radius: var(--fng-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.fng-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--fng-border);
}
.fng-price-row:last-child { border-bottom: none; }
.fng-price-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--fng-magenta);
  padding-top: 12px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.fng-btn-primary {
  background: var(--fng-magenta);
  color: var(--fng-white);
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-family: var(--fng-font-body);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  width: 100%;
}
.fng-btn-primary:hover {
  background: #a0186f;
  transform: translateY(-1px);
}
.fng-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── PayPal container ─────────────────────────────────────────────────────── */
#fng-paypal-buttons {
  border: 1px solid var(--fng-border);
  border-radius: var(--fng-radius);
  padding: 16px;
  background: var(--fng-white);
}

/* ── Legal ────────────────────────────────────────────────────────────────── */
.fng-legal {
  font-size: 12px;
  color: #999;
  margin-top: 16px;
  text-align: center;
}
.fng-legal a { color: var(--fng-magenta); }

/* ── Success ──────────────────────────────────────────────────────────────── */
.fng-success-box {
  text-align: center;
  padding: 48px 32px;
  background: var(--fng-white);
  border: 2px solid var(--fng-magenta);
  border-radius: 20px;
}
.fng-success-icon {
  width: 72px; height: 72px;
  background: var(--fng-magenta);
  color: var(--fng-white);
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.fng-success-box h2 {
  font-family: var(--fng-font-head);
  font-size: 32px;
  color: var(--fng-magenta);
  margin-bottom: 12px;
}
.fng-success-summary {
  background: var(--fng-warm-gray);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.8;
}

/* ── Error ────────────────────────────────────────────────────────────────── */
.fng-error {
  background: #fff0f0;
  border: 1px solid #ffaaaa;
  color: #c00;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 14px;
}

/* ── Loading ──────────────────────────────────────────────────────────────── */
.fng-loading {
  text-align: center;
  padding: 16px;
  color: var(--fng-gray-text);
}
.fng-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--fng-border);
  border-top-color: var(--fng-magenta);
  border-radius: 50%;
  animation: fng-spin .7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes fng-spin { to { transform: rotate(360deg); } }

/* ── Cancelled box ────────────────────────────────────────────────────────── */
.fng-cancelled-box {
  text-align: center;
  padding: 36px 32px;
  background: #fff8f0;
  border: 2px solid #E8A825;
  border-radius: 16px;
  margin-bottom: 20px;
}
.fng-cancelled-icon {
  width: 60px; height: 60px;
  background: #E8A825;
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.fng-cancelled-box h3 {
  font-family: var(--fng-font-head);
  font-size: 22px;
  color: #8a620a;
  margin: 0 0 10px;
}
.fng-cancelled-box p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.fng-cancelled-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ── Retry button ─────────────────────────────────────────────────────────── */
.fng-btn-retry {
  background: transparent;
  color: var(--fng-magenta);
  border: 2px solid var(--fng-magenta);
  border-radius: 50px;
  padding: 10px 24px;
  font-family: var(--fng-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.fng-btn-retry:hover {
  background: var(--fng-magenta);
  color: #fff;
}

/* ── Help link ────────────────────────────────────────────────────────────── */
.fng-link-help {
  font-size: 14px;
  color: var(--fng-magenta);
  text-decoration: none;
  font-weight: 500;
}
.fng-link-help:hover { text-decoration: underline; }

/* ── Status-Badge in der Fehlermeldung ───────────────────────────────────── */
.fng-error strong { display: block; margin-bottom: 4px; }

/* ── Retry-Banner (erscheint wenn Seite mit ?fng_retry=ID aufgerufen wird) ── */
.fng-retry-banner {
  background: #e8f4e8;
  border: 1px solid #2d5a27;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2d5a27;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ── Unterkunft: Karten-Auswahl ───────────────────────────────────────────── */
.fng-accom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .fng-accom-cards { grid-template-columns: 1fr; }
}

.fng-accom-card {
  position: relative;
  border: 2px solid var(--fng-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: var(--fng-white);
  display: block;
}
.fng-accom-card:hover {
  border-color: var(--fng-magenta);
  box-shadow: 0 2px 12px rgba(196,30,142,.1);
}
.fng-accom-card.selected {
  border-color: var(--fng-magenta);
  background: #fdf5fb;
}

.fng-accom-card-inner {
  padding: 16px 18px;
  padding-right: 36px; /* Platz für Check */
}
.fng-accom-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.fng-accom-card-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--fng-charcoal);
  line-height: 1.3;
}
.fng-accom-card-rooms {
  font-size: 11px;
  background: #f0f0f0;
  color: #666;
  border-radius: 50px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fng-accom-card-price {
  display: block;
  font-family: var(--fng-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--fng-magenta);
  margin-bottom: 6px;
}
.fng-accom-card-price--free {
  font-family: var(--fng-font-body);
  font-size: 13px;
  font-weight: 400;
  color: #888;
}
.fng-accom-card-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}
.fng-accom-partner-badge {
  display: inline-block;
  background: #e8f0e7;
  color: #2d5a27;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 8px;
}

/* Check-Icon rechts oben */
.fng-accom-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: var(--fng-magenta);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.fng-accom-card.selected .fng-accom-card-check { opacity: 1; }

/* ── Kurtaxe-Badge auf Unterkunftskarten ─────────────────────────────────── */
.fng-accom-kurtaxe-badge {
  display: inline-block;
  background: #e8f4e8;
  color: #2d5a27;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 6px;
}
