/* ══════════════════════════════════════
   GABI BESSA TATTOO — Brand System CSS
   ══════════════════════════════════════ */

:root {
  /* primary palette */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-body: #4A4A4A;
  --color-muted: #717070;

  /* contextual accents */
  --color-cta: #26D366;
  --color-feminine: #F9846D;
  --color-masculine: #45596C;
  --color-neutral: #A88475;

  /* utilities */
  --color-line: #D4C4B8;
  --color-bg-soft: #FAFAF7;

  /* active accent (swapped by JS based on gender) */
  --color-accent: var(--color-black);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography hierarchy ── */
h1 {
  font-size: 30px;
  font-weight: 400;
  color: var(--color-muted);
  text-transform: uppercase;
  line-height: 1.2;
}

h2 {
  font-size: 25px;
  font-weight: 400;
  color: var(--color-muted);
  text-transform: uppercase;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-body);
  text-transform: uppercase;
  line-height: 1.3;
}

.body-long {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-body);
}

.subtitle {
  font-size: 14px;
  font-weight: 400;
}

/* ── Brand separator ── */
.separator {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  padding: 16px 0;
  letter-spacing: 0.05em;
}

/* ── Links ── */
a {
  color: var(--color-accent);
  text-decoration: none;
}

a:active {
  opacity: 0.7;
}

/* ── Buttons ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-white);
  background: var(--color-cta);
  border: none;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
  transition: opacity 0.15s;
}

.btn-cta:active {
  opacity: 0.85;
}

.btn-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  background: transparent;
  border: 1px solid var(--color-black);
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
}

.btn-secondary:active {
  opacity: 0.7;
}

/* ── Form elements ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  outline: none;
  min-height: 48px;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-body);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.field {
  margin-bottom: 24px;
}

.field-error {
  font-size: 13px;
  color: #D32F2F;
  margin-top: 4px;
}

/* ── Radio / Checkbox cards ── */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
  transition: border-color 0.15s, background 0.15s;
}

.option-card:active {
  background: var(--color-bg-soft);
}

.option-card.selected {
  border-color: var(--color-accent);
  background: var(--color-bg-soft);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.option-card .option-label {
  font-size: 16px;
  font-weight: 400;
}

/* ── Region cards (Step 3) ── */
.region-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.region-tier-group {
  margin-bottom: 24px;
}

.region-tier-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 8px;
}

.region-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
  transition: border-color 0.15s, background 0.15s;
}

.region-card:active {
  background: var(--color-bg-soft);
}

.region-card.selected {
  border-color: var(--color-accent);
  background: var(--color-bg-soft);
}

.region-card .region-name {
  font-size: 16px;
}

.region-card .region-price {
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ── Photo upload ── */
.photo-upload-area {
  border: 1px dashed var(--color-line);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-muted);
}

.photo-upload-area .upload-icon {
  font-size: 24px;
}

.photo-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--color-line);
}

.photo-preview-wrap {
  position: relative;
}

.photo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Checkbox consent ── */
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.consent-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
}

.consent-item .consent-text {
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.4;
}

.consent-item.required .consent-text {
  font-weight: 500;
}

/* ── Layout ── */
.page-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-black);
  color: var(--color-white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.header-sep {
  color: var(--color-muted);
  font-size: 12px;
}

.main {
  flex: 1;
  padding: 32px 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.footer {
  background: var(--color-black);
  color: var(--color-muted);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.footer a {
  color: var(--color-white);
}

/* ── Wizard steps ── */
.step {
  display: none;
  flex-direction: column;
}

.step.active {
  display: flex;
}

.step-header {
  margin-bottom: 32px;
}

.step-question {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-body);
  margin-bottom: 8px;
}

.step-help {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.4;
}

.step-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-back {
  font-size: 14px;
  color: var(--color-muted);
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  touch-action: manipulation;
}

/* ── Progress bar ── */
.progress-bar {
  height: 3px;
  background: var(--color-line);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.3s ease;
  width: 0%;
}

/* ── Success step ── */
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 3;
}

/* ── Underage block ── */
.block-message {
  text-align: center;
  padding: 48px 0;
}

.block-message h2 {
  margin-bottom: 16px;
}

.block-message p {
  color: var(--color-body);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ── Art approval page ── */
.art-container {
  text-align: center;
}

.art-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  margin: 24px auto;
  display: block;
}

.art-status {
  padding: 16px;
  border-radius: 4px;
  text-align: center;
  margin: 24px 0;
  font-size: 14px;
  text-transform: uppercase;
}

.art-status.approved {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

/* ── Care page ── */
.care-section {
  margin-bottom: 32px;
}

.care-section h3 {
  margin-bottom: 16px;
}

.care-text {
  font-size: 16px;
  color: var(--color-body);
  line-height: 1.6;
  white-space: pre-line;
}

/* ── Loading spinner ── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-line);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

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

/* ── Gender accent themes ── */
body.theme-feminine { --color-accent: var(--color-feminine); }
body.theme-masculine { --color-accent: var(--color-masculine); }
body.theme-neutral { --color-accent: var(--color-neutral); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ── Shadow (max allowed) ── */
.card-shadow {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-line);
  margin: 24px 0;
}

@media (min-width: 768px) {
  h1 { font-size: 41px; }
  .main { padding: 48px 24px; }
}
