:root {
  --hp-blue: #0096d6;
  --hp-blue-light: #38b6f0;
  --hp-dark: #071626;
  --hp-dark-2: #0f2942;
  --hp-navy-3: #14395c;
  --text-dark: #0f1e2e;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --error-color: #e0392f;
  --success-bg: #e7f8ef;
  --success-text: #15803d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px -12px rgba(7, 22, 38, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #eef3f8;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Ambient background blobs */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--hp-blue) 0%, transparent 70%);
  top: -180px;
  left: -140px;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #7c5cff 0%, transparent 70%);
  top: 30%;
  right: -160px;
  opacity: 0.2;
}

.blob-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--hp-blue-light) 0%, transparent 70%);
  bottom: -160px;
  left: 20%;
  opacity: 0.25;
}

/* Header */
.site-header {
  position: relative;
  background: linear-gradient(135deg, var(--hp-dark) 0%, var(--hp-dark-2) 55%, var(--hp-navy-3) 100%);
  color: #fff;
  padding: 40px 20px 68px;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(56, 182, 240, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(124, 92, 255, 0.18) 0%, transparent 40%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  animation: fade-down 0.6s ease-out;
}

.logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.logo-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 0;
}

.logo-rptech {
  height: 26px;
  filter: none;
}

.organiser-line {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  animation: fade-down 0.6s ease-out 0.08s backwards;
}

.organiser-line strong {
  color: #d7ecfa;
  font-weight: 700;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(56, 182, 240, 0.15);
  border: 1px solid rgba(56, 182, 240, 0.4);
  color: #7fd4f7;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  animation: fade-down 0.6s ease-out 0.05s backwards;
}

.header-badge svg {
  width: 14px;
  height: 14px;
}

.header-text {
  animation: fade-down 0.6s ease-out 0.1s backwards;
}

.header-text h1 {
  margin: 4px 0 8px;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff 0%, #bfe9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-text .subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: #a9c0d6;
  font-weight: 400;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 6px;
  animation: fade-down 0.6s ease-out 0.15s backwards;
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d7ecfa;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
}

.event-meta-item svg {
  width: 15px;
  height: 15px;
  color: #7fd4f7;
  flex-shrink: 0;
}

.header-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.header-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

.header-wave path {
  fill: #eef3f8;
}

/* Main content */
.content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 16px 56px;
  margin-top: -44px;
  position: relative;
  z-index: 1;
}

.form-card {
  background: #fff;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 36px 32px;
  animation: rise-in 0.5s ease-out 0.15s backwards;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.form-card-head {
  margin-bottom: 26px;
}

.form-card h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--hp-dark);
}

.form-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.required {
  color: var(--error-color);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.15s;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
  background: #f8fafc;
  color: var(--text-dark);
}

.form-group input::placeholder {
  color: #a0aec0;
}

.form-group input:focus {
  outline: none;
  border-color: var(--hp-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 150, 214, 0.12);
}

.input-wrap:focus-within .input-icon {
  color: var(--hp-blue);
}

.form-group input.invalid {
  border-color: var(--error-color);
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 5px;
  min-height: 1em;
}

.radio-group {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--text-muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--hp-blue);
  transform: scale(0);
  transition: transform 0.15s;
}

.radio-option:has(input:checked),
.radio-option.is-checked {
  border-color: var(--hp-blue);
  background: rgba(0, 150, 214, 0.06);
  color: var(--hp-dark);
  box-shadow: 0 0 0 4px rgba(0, 150, 214, 0.1);
}

.radio-option:has(input:checked) .radio-dot,
.radio-option.is-checked .radio-dot {
  border-color: var(--hp-blue);
}

.radio-option:has(input:checked) .radio-dot::after,
.radio-option.is-checked .radio-dot::after {
  transform: scale(1);
}

.radio-option:has(input:focus-visible) {
  outline: 2px solid var(--hp-blue);
  outline-offset: 2px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--hp-blue) 0%, #0077ab 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -6px rgba(0, 150, 214, 0.55);
}

.submit-btn .btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(0, 150, 214, 0.6);
}

.submit-btn:hover .btn-icon {
  transform: translateX(3px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #9fc9de;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.form-status {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  animation: fade-down 0.25s ease-out;
}

.form-status.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.form-status.error {
  background: #fdecea;
  color: var(--error-color);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 38, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 34px 30px 28px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  animation: modal-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.modal-box h3 {
  margin: 0 0 8px;
  color: var(--hp-dark);
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-event-date {
  display: inline-block;
  background: rgba(0, 150, 214, 0.08);
  color: var(--hp-blue) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px !important;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.webinar-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--hp-blue) 0%, #0077ab 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 8px 20px -6px rgba(0, 150, 214, 0.5);
}

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

.webinar-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(0, 150, 214, 0.55);
}

.modal-or {
  margin: 20px 0 10px !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #94a3b8 !important;
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.copy-input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-family: inherit;
}

.copy-input:focus {
  outline: none;
  border-color: var(--hp-blue);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: var(--hp-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

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

.copy-btn:hover {
  background: #14395c;
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.copied {
  background: var(--success-text);
}

.copy-feedback {
  display: block;
  min-height: 1.1em;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success-text);
}

.modal-note {
  margin-top: 18px !important;
  font-size: 0.78rem !important;
  color: #a0aec0 !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .site-header {
    padding: 32px 16px 60px;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .header-text .subtitle {
    font-size: 0.9rem;
  }

  .event-meta-item {
    font-size: 0.8rem;
    padding: 6px 11px;
  }

  .logo {
    height: 34px;
  }

  .logo-rptech {
    height: 22px;
  }

  .logo-chip {
    padding: 5px 9px;
  }

  .organiser-line {
    font-size: 0.78rem;
  }

  .form-card {
    padding: 26px 22px;
    border-radius: 14px;
  }

  .content {
    margin-top: -36px;
  }

  .radio-group {
    gap: 10px;
  }

  .copy-row {
    flex-direction: column;
  }

  .copy-btn {
    padding: 11px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
