/* =========================================
   FAITHWORD — Global Styles
   ========================================= */

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

:root {
  --gold: #b8960c;
  --gold-light: #d4a017;
  --gold-pale: #f5e9c0;
  --cream: #fffdf7;
  --cream-dark: #fdf6e3;
  --brown-dark: #3d3228;
  --brown-mid: #6b5744;
  --brown-light: #9a7b5e;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(180, 140, 30, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--brown-dark);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--brown-dark);
}

/* =========================================
   HEADER
   ========================================= */

header {
  background: var(--white);
  border-bottom: 2px solid var(--gold-pale);
  padding: 24px 20px;
  text-align: center;
}

.header-inner {
  max-width: 700px;
  margin: 0 auto;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.tagline {
  font-size: 14px;
  color: var(--brown-light);
  margin-top: 4px;
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* =========================================
   MAIN
   ========================================= */

main {
  flex: 1;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  background: linear-gradient(135deg, #fffdf7 0%, #fdf6e3 50%, #fef9ec 100%);
  text-align: center;
  padding: 70px 24px 50px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.2;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--brown-mid);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

.divider-cross {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 12px;
  margin-top: 40px;
  opacity: 0.6;
}

/* =========================================
   FORM SECTION
   ========================================= */

.form-section {
  padding: 60px 24px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 10px;
  color: var(--brown-dark);
}

.form-intro {
  text-align: center;
  color: var(--brown-light);
  font-size: 15px;
  margin-bottom: 32px;
  font-weight: 300;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e8dcc8;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--brown-dark);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e8dcc8;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--brown-dark);
  background: var(--cream);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8960c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group select:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
  background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.field-note {
  display: block;
  font-size: 12px;
  color: var(--brown-light);
  margin-top: 5px;
  font-style: italic;
}

.char-count {
  display: block;
  font-size: 12px;
  color: #bbb;
  text-align: right;
  margin-top: 4px;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold-light), #c8890a);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-top: 10px;
  box-shadow: 0 4px 18px rgba(180, 140, 30, 0.35);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 140, 30, 0.45);
}

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

.btn-icon {
  margin-right: 8px;
}

.secure-note {
  text-align: center;
  font-size: 12px;
  color: var(--brown-light);
  margin-top: 14px;
  font-weight: 300;
}

/* =========================================
   HOW IT WORKS
   ========================================= */

.how-it-works {
  background: var(--cream-dark);
  padding: 70px 24px;
  text-align: center;
  border-top: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
}

.how-it-works h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

.steps {
  display: flex;
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
}

.step-num {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold-light), #c8890a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(180, 140, 30, 0.3);
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--brown-mid);
  font-weight: 300;
}

/* =========================================
   SCRIPTURE BANNER
   ========================================= */

.scripture-banner {
  padding: 60px 24px;
  text-align: center;
  background: var(--white);
}

.scripture-banner blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  color: var(--brown-dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  padding: 0 20px;
}

.scripture-banner blockquote::before {
  content: '\201C';
  font-size: 80px;
  color: var(--gold-pale);
  position: absolute;
  top: -20px;
  left: -10px;
  line-height: 1;
  font-family: 'Cormorant Garamond', serif;
}

.scripture-banner cite {
  display: block;
  font-size: 15px;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* =========================================
   SUCCESS PAGE
   ========================================= */

.success-page body {
  background: var(--cream);
}

.success-hero {
  text-align: center;
  padding: 60px 24px 40px;
  background: linear-gradient(135deg, #fffdf7, #fdf6e3);
  border-bottom: 1px solid var(--gold-pale);
}

.dove {
  font-size: 48px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.success-hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  margin-bottom: 16px;
}

.success-sub {
  font-size: 17px;
  color: var(--brown-mid);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

.word-section {
  max-width: 740px;
  margin: 0 auto;
  padding: 50px 24px;
}

.word-card {
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.word-header {
  background: linear-gradient(135deg, var(--gold-light), #c8890a);
  padding: 20px 32px;
  text-align: center;
}

.word-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: white;
  letter-spacing: 2px;
  font-weight: 600;
}

.word-body {
  padding: 36px 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.9;
  color: var(--brown-dark);
}

.word-body p {
  margin-bottom: 16px;
}

.word-body p:last-child {
  margin-bottom: 0;
}

.word-section-label {
  font-family: 'Lato', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin-top: 32px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid var(--gold-pale) !important;
  padding-bottom: 6px !important;
}

.word-section-label:first-child {
  margin-top: 0 !important;
}

.word-declaration {
  background: var(--cream);
  border-left: 3px solid var(--gold-light);
  padding: 10px 16px !important;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--brown-dark);
  margin-bottom: 8px !important;
}

.word-disclaimer {
  font-family: 'Lato', sans-serif !important;
  font-size: 12px !important;
  color: #aaa !important;
  font-style: italic !important;
  text-align: center !important;
  margin-top: 28px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--gold-pale) !important;
}

.word-footer {
  border-top: 1px solid var(--gold-pale);
  padding: 16px 32px;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
}

.success-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.print-btn {
  background: var(--cream-dark);
  border: 1.5px solid var(--gold-pale);
  color: var(--brown-mid);
}

.return-btn {
  background: linear-gradient(135deg, var(--gold-light), #c8890a);
  border: none;
  color: white;
  box-shadow: 0 4px 14px rgba(180, 140, 30, 0.3);
}

/* =========================================
   ERROR SECTION
   ========================================= */

.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-card {
  text-align: center;
  max-width: 500px;
}

.error-card h1 {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--brown-dark);
}

.error-card p {
  color: var(--brown-mid);
  margin-bottom: 30px;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px;
  font-size: 13px;
  font-weight: 300;
}

/* =========================================
   PRINT STYLES
   ========================================= */

@media print {
  header, footer, .success-hero, .success-actions, .scripture-banner {
    display: none;
  }
  .word-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  body {
    background: white;
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
  .form-card {
    padding: 32px 24px;
  }

  .word-body {
    padding: 28px 24px;
    font-size: 17px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }
}
