@font-face {
  font-family: 'Gibson';
  src: url('/assets/gibson-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Gibson';
  src: url('/assets/gibson-light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}

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

:root {
  --bg: #ede2d4;
  --text: #371e1b;
  --wine: #6f222a;
  --wine-light: #8a3035;
  --gold: #d1b38f;
  --label: #5a3d38;
  --input-bg: #f5ede4;
  --card-bg: #FFFFFF;
  --shadow: 0 2px 16px rgba(55, 30, 27, 0.1);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Gibson', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 0;
}

.logo-specialli {
  width: 220px;
  max-width: 60%;
  height: auto;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--wine);
  margin-bottom: 1.25rem;
}

.headline {
  font-family: 'Gibson', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: -0.5rem;
}

.highlight {
  color: var(--wine-light);
  font-style: italic;
}

.sys-char {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.logo-trend {
  width: 140px;
  max-width: 40%;
  height: auto;
  margin-top: -0.5rem;
  margin-bottom: -0.5rem;
}

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 2px;
  margin: 0.75rem 0;
}

/* Form Card */
.form-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  width: 100%;
  margin-bottom: 2rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--label);
  margin-bottom: 0.5rem;
}

.field input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border: none;
  border-radius: 10px;
  background-color: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: box-shadow 0.2s;
}

.field input:focus {
  box-shadow: 0 0 0 2px var(--wine-light);
}

.field input::placeholder {
  color: #999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  font-size: 1.2rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}

/* Messages */
.message {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.message-warning {
  background: #FFF3CD;
  color: #856404;
}

.message-error {
  background: #F8D7DA;
  color: #721C24;
}

/* Thank You Page */
.thank-you-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2.5rem 1.5rem;
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: pop 0.4s ease-out;
}

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.thank-you-title {
  font-family: 'Gibson', Georgia, serif;
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.thank-you-text {
  font-size: 0.95rem;
  color: var(--label);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.redirect-text {
  font-size: 0.85rem;
  color: #999;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--input-bg);
  border-radius: 2px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--gold), var(--wine));
  border-radius: 2px;
}

.btn-instagram {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wine);
  border: 2px solid var(--wine);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-instagram:active {
  background: var(--wine);
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
}

.footer-line {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 0.25rem;
}

.footer-line::before,
.footer-line::after {
  content: '——';
  margin: 0 0.5rem;
  color: #ccc;
}

.footer-copy {
  font-size: 0.7rem;
  color: #bbb;
}

/* Loading state */
.btn-submit.loading .btn-text {
  display: none;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-submit.loading .spinner {
  display: block;
}

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