:root {
  --navy: #1A2744;
  --gold: #C9A475;
  --bordeaux: #6B2D3E;
  --beige: #F4EDE4;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--beige);
  color: var(--navy);
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gold);
}

h2 {
  font-size: 1.9rem;
}

header.app-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  z-index: 10;
}

header.app-header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.eyebrow-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.callout {
  background: var(--beige);
  color: var(--navy);
  font-weight: 700;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}

.brand-footer {
  text-align: right;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: #8b93a3;
  margin-top: 2rem;
}

.brand-footer strong {
  color: var(--gold);
  font-weight: 700;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(26, 39, 68, 0.08);
  margin-bottom: 1.25rem;
}

.card.optional {
  background: #ECE7DF;
}

label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
  font-size: 0.9rem;
}

label:first-child {
  margin-top: 0;
}

.hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin: -0.15rem 0 0.35rem;
}

input, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #D9CFC2;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 4.5rem;
}

input:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

button.primary {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  cursor: pointer;
}

button.primary:hover {
  background: #24345c;
}

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

.error-box {
  background: #F6E4E8;
  border: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.error-box.visible {
  display: block;
}

.success-box {
  background: #E7F0E8;
  border: 1px solid #3F7A4C;
  color: #3F7A4C;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.success-box.visible {
  display: block;
}

.link-row {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.link-row a {
  color: var(--bordeaux);
  text-decoration: none;
  font-weight: 600;
}

.field-row {
  display: flex;
  gap: 0.75rem;
}

.field-row > div {
  flex: 1;
}

.file-picker-label {
  display: block;
  border: 2px dashed var(--gold);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
  background: var(--beige);
}

.file-picker-label input {
  display: none;
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.thumb-grid .thumb {
  position: relative;
  width: 72px;
  height: 72px;
}

.thumb-grid img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #D9CFC2;
  display: block;
}

.thumb-grid .thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--bordeaux);
  color: var(--white);
  font-size: 0.7rem;
  line-height: 20px;
  padding: 0;
  cursor: pointer;
}

.dictation-tip {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--beige);
  border: 1px solid #E5DCCB;
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.dictation-tip-svg {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.dictation-tip p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--navy);
}

.password-field-wrapper {
  position: relative;
}

.password-field-wrapper input {
  padding-right: 2.6rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  opacity: 0.6;
}

.password-toggle-btn:hover {
  opacity: 1;
}
