@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy: #0a192f;
  --navy-light: #172a45;
  --gold: #d4af37;
  --gold-light: #f4e4bc;
  --ivory: #fcfaf2;
  --white: #ffffff;
  --slate: #64748b;
  --error: #ef4444;
  --success: #10b981;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  background-image: 
    radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(10, 25, 47, 0.03) 0px, transparent 50%);
}

/* Header */
header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Main Content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeIn 1s ease-out;
}

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

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.lede {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--slate);
}

/* Form Card */
.order-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.info-pane h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.steps {
  list-style: none;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-number {
  background: var(--navy);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--slate);
  font-size: 0.95rem;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(10, 25, 47, 0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--navy), var(--gold));
}

.form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-light);
}

textarea, input, select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: #f8fafc;
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  background: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

button {
  width: 100%;
  padding: 1.25rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

button:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.status {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1rem;
  min-height: 1.25rem;
  color: var(--slate);
  font-weight: 500;
}

.disclaimer {
  font-size: 0.75rem;
  color: #991b1b;
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  margin-top: 0.75rem;
  line-height: 1.4;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--slate);
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

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

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

button.loading .spinner {
  display: block;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--slate);
  font-size: 0.875rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 900px) {
  .order-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero {
    margin-bottom: 3rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 2rem 1.5rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Floating Help Button */
.help-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 1000;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.help-fab:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-color: var(--navy);
}

.help-fab svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .help-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem;
  }
  .help-fab span {
    display: none;
  }
}

/* Sample Section */
.sample-section {
  margin-top: 8rem;
  background: var(--navy);
  border-radius: 3rem;
  padding: 5rem 4rem; /* Increased vertical padding */
  color: var(--white);
  position: relative;
  overflow: hidden;
  width: 100%; /* Ensure it takes full width of container */
  box-shadow: var(--shadow-xl);
}

.sample-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sample-container {
  display: grid;
  grid-template-columns: 320px 1fr; /* Slightly wider image col */
  gap: 5rem; /* Increased gap */
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.sample-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: rotate(-2deg);
  transition: var(--transition);
}

.sample-image img:hover {
  transform: rotate(0deg) scale(1.02);
}

.sample-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.sample-description {
  font-size: 1.125rem;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.sample-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.sample-actions .secondary-button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.sample-actions .secondary-button:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Inline Reader */
.inline-reader {
  background: #fdfbf7;
  color: #2d3436;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.reader-pages {
  position: relative;
  flex-grow: 1;
}

.page {
  display: none;
  animation: fadeIn 0.4s ease-out;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.8;
}

.page.active {
  display: block;
}

.page h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--navy);
  text-align: center;
}

.byline {
  text-align: center;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2rem;
}

.sample-hint {
  text-align: center;
  font-size: 1rem;
  color: var(--slate);
  font-family: var(--font-sans);
  margin-top: 4rem;
  font-style: italic;
}

.reader-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.arrow-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  margin: 0;
}

.arrow-btn:hover {
  background: var(--gold);
  transform: scale(1.1);
}

.arrow-btn:disabled {
  background: #e2e8f0;
  cursor: not-allowed;
  transform: none;
}

.arrow-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

#page-indicator {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.875rem;
  min-width: 80px;
  text-align: center;
}

@media (max-width: 900px) {
  .sample-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sample-image {
    max-width: 300px;
    margin: 0 auto;
  }
  .sample-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Pricing UI */
.price-summary {
  background: var(--ivory);
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed var(--gold);
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.price-label {
  font-weight: 600;
  color: var(--navy-light);
}

.price-values {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.original-price {
  color: var(--slate);
  text-decoration: line-through;
  font-size: 1.125rem;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  transition: var(--transition);
}

.current-price.discounted {
  color: var(--success);
  transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(10, 25, 47, 0.05);
}

.faq-section h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--navy);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(10, 25, 47, 0.03);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-item h3::before {
  content: '?';
  background: var(--gold-light);
  color: var(--gold);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.faq-item p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.6;
}

/* Coupon Modal & Label Row */
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  transition: var(--transition);
}

.link-button:hover {
  color: var(--navy);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--ivory);
  margin: 5% auto;
  padding: 2.5rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gold-light);
}

.modal-content h2 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.modal-subtitle {
  color: var(--slate);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  color: var(--slate);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--error);
}

.coupon-list {
  display: grid;
  gap: 1rem;
}

.coupon-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: var(--transition);
}

.coupon-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.coupon-card h4 {
  color: var(--navy);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.coupon-badge {
  background: var(--gold-light);
  color: var(--gold);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.coupon-card p {
  color: var(--slate);
  font-size: 0.875rem;
  margin: 0;
}
