/* DOSS_RAA1_CAMPAINHA_CHECKIN_CSS_20260728 */
:root {
  color-scheme: light;
  --raa-bg: #f3f5f7;
  --raa-card: #ffffff;
  --raa-ink: #17202a;
  --raa-muted: #5f6b76;
  --raa-line: #dce2e8;
  --raa-primary: #c7392f;
  --raa-primary-dark: #912820;
  --raa-success: #16794b;
  --raa-warning: #a85b00;
  --raa-shadow: 0 24px 70px rgba(23, 32, 42, 0.16);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(199, 57, 47, 0.12), transparent 38rem),
    var(--raa-bg);
  color: var(--raa-ink);
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  overflow-x: hidden;
}

button, input { font: inherit; }

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

[hidden] { display: none !important; }

.raa-shell {
  width: min(960px, 100%);
  min-height: min(760px, calc(100vh - 32px));
  background: var(--raa-card);
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 32px;
  box-shadow: var(--raa-shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.raa-header {
  min-height: 82px;
  padding: 18px clamp(22px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--raa-line);
}

.raa-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.raa-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--raa-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.raa-brand strong {
  display: block;
  font-size: 1.05rem;
}

.raa-brand span {
  color: var(--raa-muted);
  font-size: 0.86rem;
}

.raa-store {
  color: var(--raa-muted);
  font-weight: 750;
  text-align: right;
}

.raa-main {
  display: grid;
  align-items: center;
  padding: clamp(24px, 5vw, 58px);
}

.raa-screen {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.raa-avatar {
  width: 178px;
  height: 178px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff6ef, #f0d7c8);
  box-shadow: 0 18px 42px rgba(71, 44, 30, 0.18);
  overflow: hidden;
}

.raa-avatar svg {
  width: 100%;
  height: 100%;
}

.raa-kicker {
  margin: 0 0 10px;
  color: var(--raa-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 850;
  font-size: 0.78rem;
}

.raa-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.raa-copy {
  margin: 20px auto 0;
  max-width: 650px;
  color: var(--raa-muted);
  font-size: clamp(1.06rem, 2.2vw, 1.36rem);
  line-height: 1.5;
}

.raa-primary,
.raa-secondary,
.raa-danger {
  min-height: 62px;
  border-radius: 18px;
  padding: 16px 28px;
  font-weight: 850;
  font-size: 1.05rem;
}

.raa-primary {
  background: var(--raa-primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(199, 57, 47, 0.24);
}

.raa-primary:hover { background: var(--raa-primary-dark); }

.raa-secondary {
  background: #eef2f5;
  color: var(--raa-ink);
  border: 1px solid var(--raa-line);
}

.raa-danger {
  background: #fff4e6;
  color: #7c4300;
  border: 1px solid #efc58e;
}

.raa-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.raa-form {
  width: min(560px, 100%);
  margin: 28px auto 0;
}

.raa-phone-display {
  min-height: 80px;
  padding: 17px 24px;
  border: 2px solid var(--raa-line);
  border-radius: 20px;
  background: #fafbfc;
  display: grid;
  place-items: center;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.raa-hidden-input {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.raa-keypad {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.raa-key {
  min-height: 66px;
  border-radius: 16px;
  background: #f0f3f6;
  color: var(--raa-ink);
  font-size: 1.35rem;
  font-weight: 850;
  border: 1px solid var(--raa-line);
}

.raa-key:active { transform: scale(0.97); }

.raa-form-error,
.raa-help-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 750;
}

.raa-form-error { color: #a9251e; }
.raa-help-status { color: var(--raa-success); }

.raa-result-card {
  margin: 28px auto 0;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--raa-line);
  border-radius: 26px;
  background: #fafbfc;
}

.raa-result-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.raa-reference {
  font-weight: 900;
  font-size: 1.15rem;
}

.raa-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 13px;
  background: #e9edf1;
  color: var(--raa-ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.raa-badge.is-ready {
  background: #dbf4e7;
  color: #0a6038;
}

.raa-badge.is-progress {
  background: #e5eefc;
  color: #1b4d91;
}

.raa-badge.is-warning {
  background: #fff0d9;
  color: #824700;
}

.raa-result-title {
  margin: 18px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.raa-loader {
  width: 74px;
  height: 74px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 8px solid #e8edf1;
  border-top-color: var(--raa-primary);
  animation: raa-spin 0.9s linear infinite;
}

@keyframes raa-spin { to { transform: rotate(360deg); } }

.raa-footer {
  padding: 16px 24px;
  text-align: center;
  color: var(--raa-muted);
  border-top: 1px solid var(--raa-line);
  font-size: 0.82rem;
}

.raa-config-code {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #f0f3f6;
  border: 1px solid var(--raa-line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (max-width: 620px) {
  body { padding: 0; }
  .raa-shell {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }
  .raa-header { padding: 14px 18px; }
  .raa-store { display: none; }
  .raa-main { padding: 22px 18px 28px; }
  .raa-avatar { width: 138px; height: 138px; }
  .raa-actions { flex-direction: column; }
  .raa-actions button { width: 100%; }
}
