:root {
  --sap-blue: #0070F2;
  --sap-dark-blue: #0040B0;
  --sap-light-blue: #E8F3FE;
  --sap-gold: #F0AB00;
  --sap-text: #1D2D3E;
  --sap-muted: #556B82;
  --sap-border: #D9D9D9;
  --sap-bg: #F5F6F7;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "72", "72full", Arial, Helvetica, sans-serif;
  background: var(--sap-bg);
  color: var(--sap-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: var(--white);
  border-bottom: 3px solid var(--sap-blue);
  box-shadow: var(--shadow);
  padding: 0 24px;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.header-brand { display: flex; align-items: center; gap: 16px; }
.sap-logo-mark {
  background: var(--sap-blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
  padding: 5px 10px;
  border-radius: 4px;
}
.header-divider { width: 1px; height: 36px; background: var(--sap-border); }
.header-event { display: flex; flex-direction: column; }
.header-event-title { font-size: 15px; font-weight: 700; color: var(--sap-text); }
.header-event-subtitle { font-size: 12px; color: var(--sap-muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-badge {
  background: linear-gradient(135deg, var(--sap-blue), var(--sap-dark-blue));
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.header-source-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sap-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--sap-border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.header-source-link:hover {
  color: var(--sap-blue);
  border-color: var(--sap-blue);
  background: rgba(0, 112, 185, 0.06);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--sap-dark-blue) 0%, var(--sap-blue) 60%, #0090E0 100%);
  color: var(--white);
  padding: 48px 24px 52px;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero h1 span { color: var(--sap-gold); }
.hero-desc { font-size: 16px; opacity: 0.85; line-height: 1.6; }

/* MAIN */
main { flex: 1; padding: 40px 24px 60px; }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}
.card-header {
  background: var(--sap-light-blue);
  border-bottom: 1px solid #C5DCF7;
  padding: 18px 28px;
}
.card-header h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--sap-dark-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-header h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--sap-blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.card-body { padding: 28px; }

/* FORM */
.form-group { margin-bottom: 24px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--sap-text); margin-bottom: 6px; }
label .required { color: #BB0000; margin-left: 2px; }
.field-hint { font-size: 13px; color: var(--sap-muted); margin-bottom: 8px; }
.field-error { font-size: 13px; color: #BB0000; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
select, input[type="text"], input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--sap-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--sap-text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
select:focus, input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: var(--sap-blue);
  box-shadow: 0 0 0 3px rgba(0,112,242,0.15);
}
input[type="text"].input-error, input[type="email"].input-error {
  border-color: #BB0000;
  box-shadow: 0 0 0 3px rgba(187,0,0,0.12);
}
input[type="text"].input-ok, input[type="email"].input-ok {
  border-color: #30914C;
  box-shadow: 0 0 0 3px rgba(48,145,76,0.12);
}

/* RESULT */
.result-section {
  margin-top: 28px;
  border-top: 2px solid var(--sap-light-blue);
  padding-top: 24px;
}
.result-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sap-dark-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #30914C;
  border-radius: 50%;
}
.info-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--sap-bg);
  margin-bottom: 10px;
  border: 1px solid var(--sap-border);
}
.info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sap-muted);
  min-width: 140px;
  flex-shrink: 0;
}
.info-value {
  font-size: 15px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 600;
  color: var(--sap-text);
  flex: 1;
}
.info-link {
  font-size: 14px;
  color: var(--sap-blue);
  text-decoration: none;
  word-break: break-all;
  flex: 1;
}
.info-link:hover { text-decoration: underline; }
.copy-btn {
  background: var(--sap-blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--sap-dark-blue); }
.copy-btn.copied { background: #30914C; }

/* REGISTER */
.register-row { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.register-btn {
  background: var(--sap-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}
.register-btn:hover:not(:disabled) { background: var(--sap-dark-blue); }
.register-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.register-btn.register-btn-sent { background: #30914C; }
.register-status { font-size: 13px; margin: 0; }
.register-success { color: #30914C; }
.register-error { color: #BB0000; }

/* FOOTER */
footer {
  background: var(--sap-text);
  color: rgba(255,255,255,0.7);
  padding: 18px 24px;
  text-align: center;
  font-size: 13px;
}
.footer-inner { max-width: 960px; margin: 0 auto; }

/* UTILITIES */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Temporary element used as clipboard copy fallback */
.clipboard-helper { position: fixed; opacity: 0; pointer-events: none; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-badge { display: none; }
  .card-body { padding: 20px; }
  .info-label { min-width: 100px; }
}
