.rf-shell {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.rf-card {
  background: var(--surface, #141418);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.rf-card h2,
.rf-card h3 {
  margin: 0 0 8px;
}

.rf-sub {
  color: var(--muted, #b5b0a6);
  margin: 0 0 18px;
  font-size: 0.96rem;
}

.rf-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rf-tab {
  min-height: 58px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f1e8;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 16px;
  transition: all 0.16s ease;
  touch-action: manipulation;
}

.rf-tab.is-active {
  background: linear-gradient(135deg, #e0b15a, #c79339);
  color: #111115;
  border-color: #e0b15a;
}

.rf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rf-field {
  display: grid;
  gap: 8px;
}

.rf-field.is-full {
  grid-column: 1 / -1;
}

.rf-field label,
.rf-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e9e3d7;
}

.rf-input,
.rf-select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: #0d0d11;
  color: #f5f1e8;
  font-size: 16px;
  box-sizing: border-box;
}

.rf-input:focus,
.rf-select:focus {
  outline: none;
  border-color: #e0b15a;
}

.rf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rf-chip {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f1e8;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.rf-chip.is-active {
  background: #e0b15a;
  color: #111115;
  border-color: #e0b15a;
}

.rf-yn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.rf-yn-btns {
  display: flex;
  gap: 10px;
}

.rf-yn-btn {
  min-width: 72px;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #0d0d11;
  color: #f5f1e8;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.rf-yn-btn.is-yes.is-active {
  background: #e0b15a;
  color: #111115;
  border-color: #e0b15a;
}

.rf-yn-btn.is-no.is-active {
  background: #2b2c35;
  color: #ffffff;
  border-color: #e0b15a;
}

.rf-waiver-list {
  display: grid;
  gap: 12px;
}

.rf-waiver-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  touch-action: manipulation;
}

.rf-waiver-item.is-checked {
  border-color: rgba(224, 177, 90, 0.7);
  background: rgba(224, 177, 90, 0.08);
}

.rf-waiver-item input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin: 2px 0 0;
  accent-color: #e0b15a;
  cursor: pointer;
}

.rf-waiver-title {
  font-weight: 700;
  color: #f5f1e8;
  margin-bottom: 4px;
  display: block;
}

.rf-waiver-body {
  color: #cbc5b9;
  font-size: 0.93rem;
  line-height: 1.5;
}

.rf-sig-wrap {
  border: 2px dashed rgba(224, 177, 90, 0.45);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.rf-sig-canvas {
  display: block;
  width: 100%;
  height: 210px;
  touch-action: none;
  cursor: crosshair;
}

.rf-sig-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}

.rf-id-drop {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.rf-id-preview {
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  margin: 0 auto;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.rf-id-preview.has-img {
  display: block;
}

.rf-alert {
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 600;
  display: none;
}

.rf-alert.is-error {
  display: block;
  background: rgba(217, 72, 72, 0.16);
  border: 1px solid rgba(217, 72, 72, 0.55);
  color: #ffb8b8;
}

.rf-alert.is-success {
  display: block;
  background: rgba(74, 196, 121, 0.14);
  border: 1px solid rgba(74, 196, 121, 0.5);
  color: #b7f7cf;
}

.rf-minor-box {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(224, 177, 90, 0.65);
  background: rgba(224, 177, 90, 0.08);
}

.rf-minor-box.is-visible {
  display: grid;
  gap: 14px;
}

.rf-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.rf-submit-btn {
  min-height: 58px;
  padding: 14px 28px;
  font-size: 1.08rem;
  font-weight: 800;
  border-radius: 14px;
}

@media (max-width: 720px) {
  .rf-grid,
  .rf-tabs,
  .rf-yn-row {
    grid-template-columns: 1fr;
  }
  .rf-card {
    padding: 18px;
  }
}

.rf-law-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(245, 241, 232, 0.92);
}

.rf-restricted-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(217, 72, 72, 0.16);
  border: 1px solid rgba(217, 72, 72, 0.55);
  color: #ffb8b8;
  font-weight: 650;
}

.rf-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 550;
}

.rf-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
