/* ─────────────────────────────────────────
   Rent Receipt Generator — India
   style.css
───────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  padding: 28px 20px;
  text-align: center;
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.88;
  letter-spacing: 0.2px;
}

/* ─────────────────────────────────────────
   AD SLOTS
───────────────────────────────────────── */
.ad-slot {
  width: 100%;
  max-width: 860px;
  margin: 16px auto;
  min-height: 90px;          /* standard leaderboard height */
  background: #f1f3f6;
  border: 2px dashed #c4ccd8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9ab5;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-slot::before {
  content: 'Advertisement';
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: #ffffff;
  padding: 56px 20px 48px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #0d1b2e;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Trust Badges ── */
.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.trust-badges li {
  background: #f0f7ff;
  border: 1px solid #c3dafe;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a56db;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   SHARED SECTION HELPERS
───────────────────────────────────────── */
.section-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #0d1b2e;
  text-align: center;
  margin-bottom: 36px;
}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.how-it-works {
  background: #eef4ff;
  padding: 56px 20px;
  border-top: 1px solid #d8e6fb;
  border-bottom: 1px solid #d8e6fb;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b2e;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Arrow between steps */
.step-divider {
  font-size: 1.6rem;
  color: #1a73e8;
  opacity: 0.45;
  padding-top: 14px;
  flex-shrink: 0;
  user-select: none;
}

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */
.faq {
  background: #f5f7fa;
  padding: 56px 20px;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item {
  background: #ffffff;
  border-left: 4px solid #1a73e8;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 18px rgba(26, 115, 232, 0.14);
  transform: translateY(-2px);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d1b2e;
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   FORM CARD
───────────────────────────────────────── */
#form-section {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}

.form-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 115, 232, 0.10), 0 1px 4px rgba(0,0,0,0.06);
  padding: 40px 40px 36px;
}

.form-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d1b2e;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8f0fe;
}

/* ── Rows ── */
.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row--2col { grid-template-columns: 1fr 1fr; }
.form-row--3col { grid-template-columns: 1fr 1fr 1fr; }

/* ── Field groups ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

/* ── Inputs, selects, textarea ── */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d9e6;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #f9fbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  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 d='M1 1l5 5 5-5' stroke='%231a73e8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

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

/* Focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

/* PAN hint */
.field-hint {
  font-size: 0.78rem;
  color: #d97706;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Submit Button ── */
.btn-generate {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn-generate:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.45);
}

.btn-generate:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

/* ── Loading state & spinner ── */
.btn-generate:disabled {
  cursor: not-allowed;
  filter: none;
  transform: none;
  opacity: 0.85;
}

.btn-generate--loading {
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  vertical-align: -3px;
  margin-right: 8px;
  animation: spin 0.7s linear infinite;
}

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

/* ── Privacy note ── */
.privacy-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

/* ─────────────────────────────────────────
   STATIC PAGES (Privacy / About)
───────────────────────────────────────── */
.logo-link {
  color: inherit;
  text-decoration: none;
}

.page-content {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 115, 232, 0.10), 0 1px 4px rgba(0,0,0,0.06);
  padding: 44px 44px 40px;
}

.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #0d1b2e;
  margin-bottom: 6px;
}

.page-updated {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid #e8f0fe;
}

.page-section {
  margin-bottom: 26px;
}

.page-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a56db;
  margin-bottom: 10px;
}

.page-section p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 10px;
}

.page-section a {
  color: #1a73e8;
  font-weight: 500;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: #1a73e8;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   WARNING NOTE
───────────────────────────────────────── */
.warning-note {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: 32px 20px;
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 22px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.warning-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-title {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}

.warning-text {
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: #1a1a2e;
  color: #a0aec0;
  padding: 36px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #90cdf4;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links span {
  color: #4a5568;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #718096;
  max-width: 520px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Header */
  .logo {
    font-size: 1.4rem;
  }

  /* Hero */
  .hero {
    padding: 40px 16px 36px;
  }

  .trust-badges {
    gap: 10px 14px;
  }

  .trust-badges li {
    font-size: 0.82rem;
    padding: 7px 14px;
  }

  /* Form */
  #form-section {
    margin: 24px auto;
    padding: 0 12px;
  }

  .form-card {
    padding: 24px 20px 28px;
    border-radius: 12px;
  }

  .form-row--2col,
  .form-row--3col {
    grid-template-columns: 1fr;
  }

  .btn-generate {
    font-size: 0.97rem;
    padding: 14px 20px;
  }

  /* How It Works */
  .how-it-works {
    padding: 40px 16px;
  }

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

  .step {
    max-width: 100%;
    padding: 0 8px;
  }

  .step-divider {
    transform: rotate(90deg);
    padding-top: 0;
    font-size: 1.3rem;
  }

  /* FAQ */
  .faq {
    padding: 40px 16px;
  }

  .faq-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Warning */
  .warning-note {
    padding: 24px 12px;
  }

  .warning-box {
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
  }

  .warning-icon {
    font-size: 1.3rem;
  }

  /* Static pages */
  .page-content {
    margin: 24px auto;
    padding: 0 12px;
  }

  .page-card {
    padding: 26px 20px 28px;
    border-radius: 12px;
  }

  /* Footer */
  .site-footer {
    padding: 28px 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}
