:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #2a2021;
  background: #f4f1ed;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(196, 151, 66, 0.22), transparent 32%),
    linear-gradient(180deg, #7a1f2b 0, #7a1f2b 185px, #f4f1ed 185px);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 20px 16px 36px;
}

.hero {
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 10px 4px 26px;
}

.hero h1 {
  margin: 4px 0 8px;
  font-size: 30px;
}

.eyebrow {
  margin: 0;
  color: #f3d28b;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.subtitle {
  margin: 0;
  opacity: 0.88;
}

.clock {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(56, 30, 31, 0.1);
}

.card h2 {
  font-size: 18px;
  margin: 0 0 15px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 14px 0 7px;
}

input {
  width: 100%;
  border: 1px solid #d8d1cc;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  background: #fffdfa;
}

input:focus {
  border-color: #7a1f2b;
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.1);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 999px;
}

.status.pending {
  color: #7c5b16;
  background: #fff1c8;
}

.status.success {
  color: #176235;
  background: #d9f5e3;
}

.status.error {
  color: #8c222d;
  background: #fde1e4;
}

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #241f20;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.camera-frame video,
.camera-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-frame video {
  transform: scaleX(-1);
}

.camera-placeholder {
  position: absolute;
  color: #ddd;
  text-align: center;
  padding: 20px;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  font-weight: 700;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button.primary {
  color: white;
  background: #7a1f2b;
}

.button.secondary {
  color: #5c2028;
  background: #f4e8e9;
}

.button.full {
  width: 100%;
}

.submit-button {
  min-height: 52px;
  font-size: 16px;
}

.location-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: #faf7f3;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.location-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.location-box span {
  color: #766c68;
}

.location-box strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.message {
  margin-top: 14px;
  border-radius: 12px;
  padding: 13px 14px;
  line-height: 1.45;
}

.message.success {
  color: #155e32;
  background: #dcf5e5;
}

.message.error {
  color: #8a202a;
  background: #fde2e5;
}

.message.info {
  color: #654b11;
  background: #fff1c7;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #746966;
  padding-top: 6px;
}

@media (max-width: 390px) {
  .hero {
    flex-direction: column;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }
}
