/* ================================================
   UR THE PROOF — White / Royal Blue / Gold
   ================================================ */

:root {
  --bg: #ffffff;
  --bg-light: #f7f8fc;
  --bg-mid: #f0f2f8;
  --bg-surface: #e8ebf2;
  --royal: #1a3a8a;
  --royal-light: #2550b0;
  --royal-dim: #0f2660;
  --gold: #c9a84c;
  --gold-light: #e0c36a;
  --gold-dim: #a88b35;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --border: #d8dce6;
  --error: #c94c4c;
  --success: #2e8b57;
  --radius: 8px;
  --radius-lg: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Screens ---- */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* ================================================
   LANDING SCREEN
   ================================================ */
.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.logo-mark {
  font-size: 3rem;
  color: var(--royal);
  margin-bottom: 1.5rem;
  animation: pulse-gold 3s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.landing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--royal);
}

.gold {
  color: var(--gold);
}

.landing-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.landing-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ---- Subscribe Form ---- */
.subscribe-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sub-input {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border-radius: var(--radius);
  outline: none;
  text-align: center;
  transition: border-color 0.3s ease;
}

.sub-input:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(26, 58, 138, 0.15);
}

.sub-input::placeholder {
  color: var(--text-muted);
}

.sub-error {
  color: var(--error);
  font-size: 0.8rem;
  min-height: 1.2em;
  text-align: center;
}

.landing-quote {
  margin-top: 3rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--royal), var(--royal-dim));
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--royal-light), var(--royal));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 58, 138, 0.3);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--royal);
  border: 1px solid var(--royal-dim);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(26, 58, 138, 0.08);
  border-color: var(--royal);
}

/* ================================================
   QUESTIONNAIRE SCREEN
   ================================================ */
#questionnaire {
  flex-direction: column;
}

.q-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.q-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--royal);
  white-space: nowrap;
}

.progress-container {
  flex: 1;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--royal-dim), var(--royal));
  border-radius: 2px;
  width: 12.5%;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Main Content ---- */
.q-main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 2rem;
}

.section-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--royal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--royal);
}

.section-principle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ---- Form Fields ---- */
.fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.field input[type="text"]:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(26, 58, 138, 0.15);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a9a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field select option {
  background: var(--bg-mid);
  color: var(--text-primary);
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(201, 76, 76, 0.15);
}

/* ---- Checkbox Group ---- */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  border-color: var(--royal);
  background: rgba(26, 58, 138, 0.05);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--royal);
  width: 16px;
  height: 16px;
}

/* ---- Footer Navigation ---- */
.q-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 100;
}

/* ================================================
   SUBMITTING / LOADING SCREEN
   ================================================ */
#submitting {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.loading-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.loading-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}

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

/* ================================================
   THANK YOU SCREEN
   ================================================ */
#thankyou .landing-content {
  min-height: 100vh;
}

.gold-check {
  font-size: 3rem;
  color: var(--success);
  width: 80px;
  height: 80px;
  border: 3px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: none;
}

/* ================================================
   ERROR MODAL
   ================================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
  color: var(--error);
  margin-bottom: 1rem;
}

/* ---- Privacy Modal ---- */
.privacy-modal {
  max-width: 500px;
  text-align: left;
}

.privacy-modal h3 {
  color: var(--royal) !important;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.privacy-icon {
  text-align: center;
  font-size: 1.5rem;
  color: var(--royal);
  margin-bottom: 0.75rem;
}

.privacy-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.privacy-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.privacy-text ul li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.privacy-text ul li:last-child {
  border-bottom: none;
}

.privacy-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--royal);
  border-radius: 50%;
}

.privacy-text ul li strong {
  color: var(--text-primary);
}

.privacy-modal .btn-primary {
  width: 100%;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
  .q-header {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .q-logo {
    font-size: 0.8rem;
  }

  .progress-text {
    font-size: 0.7rem;
  }

  .q-main {
    padding: 1.5rem 1rem 5rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .q-footer {
    padding: 0.75rem 1rem;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

}
