:root {
  --orange: #EF4A1F;
  --espresso: #3D261E;
  --cream: #FFF5EC;
  --blush: #F9EBDE;
  --taupe: #78645D;
  --mushroom: #C0ADA3;
  --sage: #6D975F;
  --sky: #9CC3D5;
  --peach: #FDAB67;
  --paleyellow: #FBF6C1;
  --font-display: "Henrietta", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Light.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Regular.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Medium.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-SemiBold.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Bold.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

html {
  font-size: 1.25rem;
}

@media screen and (max-width:1920px) {
  html {
    font-size: calc(0.75rem + 0.41666666666666674vw);
  }
}

@media screen and (max-width:1440px) {
  html {
    font-size: calc(0.9376951092611863rem + 0.20811654526534862vw);
  }
}

@media screen and (max-width:479px) {
  html {
    font-size: 1rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--espresso);
}

/* ── Screen ───────────────────────────────── */

.screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.screen[hidden] {
  display: none;
}

/* ── Front screen ─────────────────────────── */

.front__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  /* max-width: 34rem; */
}

.front__header {
  text-align: center;
  max-width: 32rem;
}

.front__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--espresso);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.front__title span {
  color: var(--orange);
}

.front__subtitle {
  font-size: 1rem;
  color: var(--espresso);
  opacity: 0.87;
  line-height: 1.4;
  margin: 0;
}

.front__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 34rem;
  width: 100%;
}

/* ── ID Card ──────────────────────────────── */

.id-card {
  background: var(--blush);
  border: 5px solid white;
  border-radius: 0.625rem;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.id-card__head {
  padding: 0.75rem 1.25rem 0;
}

.id-card__brand-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  margin-bottom: 0.125rem;
}

.id-card__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  color: var(--orange);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: center;
  white-space: nowrap;
  position: relative;
}

.id-card__bird {
  height: 1.375rem;
  width: auto;
  position: absolute;
  top: -0.75rem;
  right: 0;
  transform: translate(100%, 20%);
}

.id-card__meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--orange);
  letter-spacing: -0.06em;
}

.id-card__meta--right {
  text-align: right;
}

.id-card__rule {
  border: none;
  border-top: 1px dashed var(--orange);
  margin: 0 0 0.25rem;
}

.id-card__tagline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--orange);
  letter-spacing: -0.06em;
  text-align: center;
  margin: 0 0;
}

.id-card__body {
  display: flex;
  gap: 3rem;
  padding: 1.25rem;
  align-items: flex-start;
}

.id-card__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.id-card__stamp {
  width: 7rem;
  aspect-ratio: 3/4;
  /* flex-shrink: 0; */
  /* border: 1px dashed rgba(61, 38, 30, 0.5); */
  /* border-radius: 2px; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  /* min-height: 6.25rem; */
  position: relative;
}
.id-card__stamp-border-svg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
}

.id-card__stamp p {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(61, 38, 30, 0.5);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}

.id-card__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  /* padding: 2rem 0; */
}

.id-card__consent input[type="checkbox"] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background: #fbf1e8;
  border: 1px solid #3c1e13;
  border-radius: 3px;
  cursor: pointer;
  margin: 0;
}

.id-card__consent input[type="checkbox"]:checked {
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l4 4 6-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 0.875rem;
  background-repeat: no-repeat;
  background-position: center;
}

.id-card__consent label {
  font-size: 0.875rem;
  color: var(--espresso);
  line-height: 1.2;
  cursor: pointer;
}

/* ── Field ────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(61, 38, 30, 0.8);
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-bottom: 1px solid rgba(239, 74, 31, 0.4);
  border-radius: 3px 3px 0 0;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--espresso);
  outline: none;
}

.field__input::placeholder {
  color: rgba(61, 38, 30, 0.5);
}

.field__input:focus {
  background: rgba(255, 255, 255, 0.5);
}

/* ── CTA Button ───────────────────────────── */

.cta-btn {
  width: 100%;
  background: var(--orange);
  border: none;
  border-radius: 0.375rem;
  height: 3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  color: white;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cta-btn:hover {
  opacity: 0.88;
}
