/* Forest City Rentals — main stylesheet */

:root {
  --navy: #1a2e4a;
  --navy-light: #243b5c;
  --red: #b01c2e;
  --red-hover: #8e1624;
  --dark: #1a2e4a;
  --gray: #6a6a6a;
  --light-gray: #f0f0f0;
  --light-bg: #fafafa;
  --border: #e0e0e0;
  --white: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--light-bg);
}

/* Header */
.site-header {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .logo {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 0;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 16px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.site-header nav a:hover { color: var(--white); }
.site-header nav a.active { border-bottom-color: var(--white); color: var(--white); }

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 24px 80px;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }

/* Info bar */
.info-bar {
  background: var(--navy-light);
  color: var(--white);
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 0.9rem;
}

.info-bar span::before { content: '✓ '; }

/* Section */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
}

/* Trailer grid */
.trailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.trailer-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.trailer-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

.trailer-card-body { padding: 20px; }

.trailer-card .tag {
  display: inline-block;
  background: var(--light-gray);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trailer-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.trailer-card .description {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.trailer-card .features {
  list-style: none;
  margin-bottom: 16px;
}

.trailer-card .features li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}

.trailer-card .features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.pricing {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.price-tag {
  flex: 1;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.price-tag .amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
}

.price-tag .label {
  font-size: 0.75rem;
  color: var(--gray);
}

.btn-book {
  display: block;
  width: 100%;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-book:hover { background: var(--red-hover); }

/* Agreement page */
.agreement-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.agreement-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.agreement-page .subtitle {
  color: var(--gray);
  margin-bottom: 32px;
}

.form-section {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.form-section h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.full { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

label .required { color: #c0392b; margin-left: 3px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--navy);
}

/* Checkbox */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dark);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Signature pad */
.signature-section {
  margin-top: 20px;
}

.signature-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#signatureCanvas {
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: block;
  width: 100%;
  height: 140px;
  cursor: crosshair;
  touch-action: none;
  background: #fdfcfb;
}

#signatureCanvas.signed { border-color: var(--navy); border-style: solid; }

.clear-sig {
  font-size: 0.8rem;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* Submit button */
.btn-submit {
  display: block;
  width: 100%;
  background: var(--red);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-submit.loading::after { content: '…'; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* Alert */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success { background: #e8f0fe; color: var(--navy); }
.alert-error { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .info-bar { flex-direction: column; gap: 8px; }
  .hero h1 { font-size: 2rem; }
  .trailer-grid { grid-template-columns: 1fr; }
}