/* ==========================================================================
   DEL Conference 2026 — Registration Form Prototype
   ========================================================================== */
:root {
  /* DEL 2026 event palette */
  --red: #D33D24;          /* terracota — primary */
  --red-dark: #B4321C;     /* darker terracota for hover */
  --red-soft: #fbeeea;     /* terracota tint for backgrounds */
  --accent-yellow: #e8a33d;
  --accent-blue: #3d7d9e;
  --accent-blue-soft: #eaf2f6;
  --accent-blue-line: #cfe0e9;
  --accent-green: #3d8a3f;
  --accent-green-soft: #eef6ee;
  --accent-teal: #3d8a82;
  --accent-purple: #4d3a78;
  --accent-cream: #f4ecd6;

  --ink: #1f1d1c;
  --muted: #6b7280;
  --line: #e7e3df;
  --bg: #f6f4f1;
  --card: #ffffff;
  --ok: #3d8a3f;           /* success uses palette green */
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.rf-container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* Two-column layout: 75% form / 25% payment (sticky) */
.rf-layout {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr;
  gap: 20px;
  align-items: start;
}
.rf-main { min-width: 0; }
.rf-aside {
  min-width: 0;
  position: sticky;
  top: 150px;
  align-self: start;
}
.rf-aside .rf-payment { margin-bottom: 0; }

/* Preview banner */
.rf-preview-banner {
  background: #fff8e1;
  color: #8a6d00;
  border-bottom: 1px solid #f1d97a;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  letter-spacing: .2px;
}

/* Header */
.rf-header {
  background: var(--red);
  color: #fff;
  padding: 28px 0;
  margin-bottom: 36px;
}
.rf-brand { font-size: 26px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; gap: 12px; }
.rf-brand-badge {
  background: #fff; color: var(--red);
  font-size: 15px; font-weight: 900; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 5px;
}
.rf-brand-sub { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.9); }

/* Title */
.rf-title { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.rf-intro { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.rf-req-star { color: var(--red); font-weight: 700; }

/* Sections */
.rf-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 28px;
  margin-bottom: 22px;
}
.rf-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rf-section-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  background: var(--red); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.rf-section-title { font-size: 19px; font-weight: 700; }
.rf-optional {
  margin-left: auto;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); background: #f1f3f5;
  padding: 3px 10px; border-radius: 20px;
}
.rf-section-note { color: var(--muted); font-size: 14px; margin: -8px 0 18px; }

/* Grid */
.rf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 18px; }
.rf-col-6 { grid-column: span 6; }
.rf-col-12 { grid-column: span 12; }

/* Fields */
.rf-field { margin-bottom: 18px; }
.rf-grid .rf-field { margin-bottom: 0; }
.rf-field > label {
  display: block;
  font-size: 14px; font-weight: 600; color: #374151;
  margin-bottom: 7px;
}
.rf-muted { color: var(--muted); font-weight: 400; }

.rf-field input[type="text"],
.rf-field input[type="email"],
.rf-field select,
.rf-field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.rf-field input:focus,
.rf-field select:focus,
.rf-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(211,61,36,.15);
}
.rf-field select:disabled { background: #f3f4f6; color: var(--muted); cursor: not-allowed; }
.rf-field input.rf-invalid,
.rf-field select.rf-invalid { border-color: var(--red); background: var(--red-soft); }

.rf-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.rf-hint.rf-ok { color: var(--ok); }
.rf-hint.rf-err { color: var(--red); }

/* Radios */
.rf-radios { display: flex; flex-direction: column; gap: 9px; }
.rf-radio {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; color: #374151; cursor: pointer;
  font-weight: 400;
}
.rf-radio input { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }

/* Registration type cards */
.rf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rf-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rf-card input { position: absolute; opacity: 0; }
.rf-card-title { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.rf-card-desc { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.rf-card:hover { border-color: #cbd5e1; }
.rf-card:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 0 3px rgba(211,61,36,.12);
}

/* Special-events activity card */
.rf-activity {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.rf-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #fafafa;
}
.rf-activity-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.rf-activity-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.rf-activity-desc {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin: 14px 0 0;
  padding: 0 16px 16px;
}
.rf-activity-price {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}
.rf-activity-price-amount {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
}
.rf-activity-price-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-top: 2px;
}
.rf-activity-limit {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #8a6d00;
  background: #FFF9E5;
  border-top: 1px solid #f3e6b8;
  padding: 9px 20px;
}
.rf-activity-limit svg { color: var(--accent-yellow); flex: 0 0 auto; }

/* Coupon row */
.rf-coupon-row { display: flex; gap: 10px; }
.rf-coupon-row input { flex: 1; }
.rf-btn-secondary {
  background: #1f2937; color: #fff; border: none;
  padding: 0 18px; border-radius: 8px; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.rf-btn-secondary:hover { background: #111827; }

/* Conditional fields */
.rf-conditional { display: none; }
.rf-conditional.rf-show { display: block; animation: rf-fade .2s ease; }
@keyframes rf-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Dropzone (file upload) */
.rf-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 170px;
  padding: 28px 20px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #fcfcfd;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rf-dropzone:hover { border-color: var(--red); background: var(--red-soft); }
.rf-dropzone.rf-dragover { border-color: var(--red); background: var(--red-soft); }
.rf-dropzone.rf-has-file { border-style: solid; border-color: var(--ok); background: var(--accent-green-soft); }
.rf-dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Each child must be its own block so flex-column stacks them */
.rf-dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  margin-bottom: 4px;
}
.rf-dropzone-icon svg { display: block; }
.rf-dropzone.rf-has-file .rf-dropzone-icon { color: var(--ok); }

.rf-dropzone-title {
  display: block;
  width: 100%;
  font-size: 16px; font-weight: 700; color: #374151; letter-spacing: .2px;
}
.rf-dropzone-sub {
  display: block;
  width: 100%;
  font-size: 13px; color: var(--muted); letter-spacing: .3px;
}
.rf-dropzone-file {
  display: block;
  width: 100%;
  font-size: 14px; font-weight: 600; color: var(--ok); margin-top: 6px; word-break: break-all;
}
.rf-dropzone-file:empty { display: none; }
.rf-dropzone.rf-invalid { border-color: var(--red); background: var(--red-soft); }

/* Privacy note + terms acceptance checkbox */
.rf-consent { margin-top: 16px; }
.rf-consent-note {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  margin: 0 0 14px;
}
.rf-consent-note a { color: var(--red); text-decoration: underline; }
.rf-consent-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: #121212; font-weight: 600; line-height: 1.4;
  cursor: pointer;
}
.rf-consent-check input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--red); cursor: pointer;
}
.rf-consent-check a { color: var(--red); text-decoration: underline; }
.rf-consent-check input.rf-invalid { outline: 2px solid var(--red); outline-offset: 2px; }
.rf-consent-check .rf-req { color: var(--red); font-weight: 700; }

/* Disclaimers */
.rf-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px; color: var(--muted);
  background: #FFF9E5; border: 1px solid #f3e6b8;
  border-left: 2px solid var(--accent-yellow);
  border-radius: 8px; padding: 12px 14px; margin-top: 10px;
  line-height: 1.3;
}
.rf-disclaimer-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-yellow);
  margin-top: 1px;
}
.rf-disclaimer-icon svg { display: block; }
.rf-disclaimer-text { flex: 1 1 auto; }

/* Payment summary */
.rf-payment { border-top: 3px solid var(--red); }
.rf-summary {
  background: #fafbfc; border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 18px; margin-bottom: 16px;
}
.rf-summary-rows { }
.rf-summary-row {
  display: flex; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: #374151;
}
.rf-summary-row .rf-sr-amount { font-weight: 600; color: var(--ink); }
.rf-summary-row.rf-discount .rf-sr-amount { color: var(--ok); }
.rf-summary-empty { padding: 16px 0; color: var(--muted); font-size: 14px; text-align: center; }
.rf-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 14px; font-weight: 700; font-size: 17px;
}
.rf-total-amount { font-size: 24px; font-weight: 800; color: var(--red); }

/* DOP equivalence (below the total, above the disclaimer) */
.rf-dop {
  margin: 2px 0 14px;
  line-height: 1.4;
  text-align: right;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.rf-dop-amount {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.rf-dop-amount strong { color: var(--red); font-weight: 700; }
.rf-dop-rate {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Honeypot (hidden) */
.rf-honeypot { position: absolute; left: -9999px; }

/* Actions */
.rf-actions { margin-top: 8px; }
.rf-btn-primary {
  width: 100%;
  background: var(--red); color: #fff; border: none;
  padding: 15px; border-radius: 9px;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .15s;
}
.rf-btn-primary:hover { background: var(--red-dark); }
.rf-form-error {
  display: none;
  margin-top: 14px; padding: 12px 14px;
  background: var(--red-soft); border: 1px solid #fecaca; border-radius: 8px;
  color: #b91c1c; font-size: 14px;
}
.rf-form-error.rf-show { display: block; }

.rf-hidden { display: none; }

/* Modal */
.rf-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(17,24,39,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.rf-modal {
  background: #fff; border-radius: 14px;
  max-width: 480px; width: 100%; padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  text-align: center;
}
.rf-modal-head { margin-bottom: 14px; }
.rf-modal-check {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: var(--accent-green-soft); color: var(--ok);
  border-radius: 50%; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.rf-modal h3 { font-size: 20px; font-weight: 800; }
.rf-modal-note { font-size: 14px; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.rf-modal-summary {
  text-align: left; background: #fafbfc; border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 20px;
  font-size: 14px;
}
.rf-modal-summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.rf-modal-summary .rf-ms-total { font-weight: 800; color: var(--red); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }

/* Aside payment panel: tighter padding for the narrow column */
.rf-aside .rf-payment { padding: 22px 20px; }
.rf-aside .rf-summary { padding: 4px 14px; }
.rf-aside .rf-total-amount { font-size: 22px; }

/* Collapse to single column on tablets/phones */
@media (max-width: 960px) {
  .rf-layout { grid-template-columns: 1fr; gap: 0; }
  .rf-aside { position: static; top: auto; }
  .rf-aside .rf-payment { margin-bottom: 22px; }
}

/* Responsive */
@media (max-width: 720px) {
  .rf-col-6 { grid-column: span 12; }
  .rf-cards { grid-template-columns: 1fr; }
  .rf-title { font-size: 28px; }
  .rf-section { padding: 22px 18px; }
}
