/* Long-Term RV Guest Application + Admin Styles */

:root {
  --fm-green: #2d5016;
  --fm-green-light: #4a7c23;
  --fm-green-bg: #f0f5eb;
}

/* ============================================================
   PUBLIC APPLICATION FLOW
   ============================================================ */

.lt-apply-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #f8faf5 0%, #fff 100%);
  min-height: 80vh;
}

/* Progress Stepper */
.lt-progress-stepper {
  margin-bottom: 40px;
}

.lt-progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.lt-progress-fill {
  height: 100%;
  background: var(--fm-green);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.lt-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  flex: 1;
}

.lt-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: #e0e0e0;
  color: #888;
  margin-bottom: 6px;
  transition: all 0.2s;
}

.lt-step.completed .lt-step-dot {
  background: var(--fm-green);
  color: #fff;
}

.lt-step.active .lt-step-dot {
  background: var(--fm-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.15);
}

.lt-step-label {
  font-size: 11px;
  color: #888;
  text-align: center;
  white-space: nowrap;
}

.lt-step.active .lt-step-label,
.lt-step.completed .lt-step-label {
  color: var(--fm-green);
  font-weight: 600;
}

/* Form Card */
.lt-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.lt-form-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.lt-form-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fm-green-bg);
}

.lt-form-card h3:first-of-type {
  margin-top: 24px;
}

.lt-form-card .subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 24px;
}

/* Form Navigation */
.lt-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.lt-form-nav .btn-back {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lt-form-nav .btn-back:hover {
  color: var(--fm-green);
}

.lt-form-nav .btn-continue {
  background: var(--fm-green);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.lt-form-nav .btn-continue:hover {
  background: var(--fm-green-light);
}

/* Intro Page */
.lt-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.lt-intro-card {
  background: var(--fm-green-bg);
  border-radius: 12px;
  padding: 24px;
}

.lt-intro-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fm-green);
  margin-bottom: 12px;
}

.lt-intro-card ol,
.lt-intro-card ul {
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.lt-info-notice {
  background: #e8f4fd;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.lt-info-notice i {
  font-size: 20px;
  color: #3b82f6;
}

/* Document Upload */
.lt-doc-checklist {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.lt-doc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #888;
}

.lt-doc-check.uploaded {
  color: var(--fm-green);
  font-weight: 600;
}

.lt-doc-check i {
  font-size: 16px;
}

/* Rules */
.lt-rules-box {
  max-height: 500px;
  overflow-y: auto;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.lt-rules-box ol {
  padding-left: 24px;
}

.lt-rules-box li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 14px;
  color: #444;
}

.lt-acknowledge-box {
  background: var(--fm-green-bg);
  border: 2px solid var(--fm-green);
  border-radius: 12px;
  padding: 20px;
}

/* Agreement */
.lt-agreement-box {
  max-height: 480px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.lt-agreement-box h2 { font-size: 20px; }
.lt-agreement-box h3 { font-size: 16px; border: none; margin-top: 20px; padding: 0; }
.lt-agreement-box ul { padding-left: 20px; }
.lt-agreement-box li { margin-bottom: 4px; }

.lt-signature-section {
  background: var(--fm-green-bg);
  border-radius: 12px;
  padding: 24px;
}

.lt-signature-section label {
  font-weight: 600;
  font-size: 14px;
}

.lt-signature-input {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 24px;
  padding: 12px 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

/* Review Page */
.lt-review-section {
  margin-bottom: 24px;
}

.lt-review-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fm-green);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lt-review-section h4 a {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.lt-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.lt-review-item {
  padding: 4px 0;
}

.lt-review-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lt-review-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Confirmation */
.lt-confirmation {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0;
}

.lt-confirmation .success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--fm-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}

.lt-confirmation h2 {
  margin-bottom: 12px;
}

.lt-ref-number {
  background: var(--fm-green-bg);
  border: 2px solid var(--fm-green);
  border-radius: 12px;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--fm-green);
  letter-spacing: 1px;
  margin: 24px 0;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.lt-next-steps {
  text-align: left;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.lt-next-steps h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.lt-next-steps ol {
  padding-left: 20px;
  font-size: 14px;
  line-height: 2;
  color: #555;
}

/* Success/Error Banners */
.lt-success-banner {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.lt-error-banner {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ============================================================
   ADMIN LONG-TERM PANEL
   ============================================================ */

/* Risk Badge */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-badge.risk-low {
  background: #d4edda;
  color: #155724;
}

.risk-badge.risk-medium {
  background: #fff3cd;
  color: #856404;
}

.risk-badge.risk-high {
  background: #f8d7da;
  color: #721c24;
}

/* Risk Factors */
.risk-factor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.risk-factor-label { color: #555; }
.risk-factor-score { font-weight: 700; }

/* Status badges (application) */
.app-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.app-status-draft { background: #e2e3e5; color: #383d41; }
.app-status-submitted { background: #cce5ff; color: #004085; }
.app-status-under_review { background: #fff3cd; color: #856404; }
.app-status-info_requested { background: #fce4ec; color: #880e4f; }
.app-status-approved { background: #d4edda; color: #155724; }
.app-status-declined { background: #f8d7da; color: #721c24; }
.app-status-withdrawn { background: #e2e3e5; color: #383d41; }

/* Stay status */
.stay-status-active { background: #d4edda; color: #155724; }
.stay-status-terminated { background: #f8d7da; color: #721c24; }
.stay-status-completed { background: #e2e3e5; color: #383d41; }

/* Term status */
.term-status-active { background: #cce5ff; color: #004085; }
.term-status-renewed { background: #d4edda; color: #155724; }
.term-status-terminated { background: #f8d7da; color: #721c24; }
.term-status-completed { background: #e2e3e5; color: #383d41; }

/* Note type badges */
.note-type { font-size: 12px; font-weight: 600; }
.note-type-note { color: #6c757d; }
.note-type-warning { color: #856404; }
.note-type-incident { color: #721c24; }
.note-type-violation { color: #721c24; }

/* Admin dashboard stat cards override */
.lt-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* Renewal warning */
.renewal-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Audit log */
.audit-entry {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.audit-entry:last-child { border-bottom: none; }
.audit-action { font-weight: 600; color: #333; }
.audit-actor { color: #888; }
.audit-time { color: #aaa; font-size: 12px; }

/* Document viewer */
.doc-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 18px;
}

/* ============================================================
   BEM FORM CARD STRUCTURE (Steps 1-10)
   ============================================================ */

.lt-form-card__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--fm-green);
}

.lt-form-card__title {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.lt-form-card__subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 0;
}

.lt-form-card__body {
  padding-top: 8px;
}

/* Form Sections (BEM) */
.lt-form-section__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fm-green);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fm-green-bg);
  display: flex;
  align-items: center;
}

.lt-form-section__description {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Buttons */
.lt-btn-primary {
  background: var(--fm-green);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.lt-btn-primary:hover,
.lt-btn-primary:focus {
  background: var(--fm-green-light);
  color: #fff;
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.25);
}

.lt-btn-secondary {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lt-btn-secondary:hover,
.lt-btn-secondary:focus {
  color: var(--fm-green);
  border-color: var(--fm-green);
}

.lt-btn-outline {
  background: transparent;
  color: var(--fm-green);
  border: 2px dashed var(--fm-green);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lt-btn-outline:hover {
  background: var(--fm-green-bg);
  color: var(--fm-green);
}

/* Form Actions */
.lt-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

/* Info Cards (intro page) */
.lt-info-card {
  background: var(--fm-green-bg);
  border-radius: 12px;
  padding: 28px;
  height: 100%;
  border: 1px solid rgba(45, 80, 22, 0.1);
}

.lt-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--fm-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.lt-info-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fm-green);
  margin-bottom: 8px;
}

.lt-info-card__text {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.lt-info-card__list {
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}

/* Notice Banners */
.lt-notice {
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.lt-notice--info {
  background: #e8f4fd;
  border-left: 4px solid #3b82f6;
  color: #1e3a5f;
}

.lt-notice--subtle {
  background: #f8f9fa;
  border-left: 4px solid #ccc;
  color: #555;
}

.lt-notice__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lt-notice--info .lt-notice__icon { color: #3b82f6; }
.lt-notice--subtle .lt-notice__icon { color: #888; }

/* Badge */
.lt-badge-primary {
  display: inline-block;
  background: var(--fm-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Confirmation Page */
.lt-confirmation-card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-width: 640px;
  margin: 0 auto;
}

.lt-confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--fm-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto;
}

.lt-confirmation-heading {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-top: 24px;
  margin-bottom: 12px;
}

.lt-confirmation-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 0;
}

.lt-reference-box {
  background: var(--fm-green-bg);
  border: 2px solid var(--fm-green);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lt-reference-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.lt-reference-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--fm-green);
  letter-spacing: 2px;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.lt-reference-note {
  font-size: 13px;
  color: #888;
}

/* Next Steps List (confirmation) */
.lt-next-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lt-next-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.lt-next-steps-list li:last-child { border-bottom: none; }

.lt-next-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fm-green-bg);
  color: var(--fm-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.lt-next-steps-list li p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Review Page */
.lt-review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fm-green-bg);
  margin-bottom: 12px;
}

.lt-review-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}

/* Document & Agreement Pages */
.lt-doc-requirements {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #eee;
}

.lt-doc-list li {
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 0;
}

.lt-empty-docs {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 40px 20px;
}

.lt-signature-box {
  background: var(--fm-green-bg);
  border: 2px solid rgba(45, 80, 22, 0.2);
  border-radius: 12px;
}

/* Rules list with numbered highlights */
.lt-rules-list li {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 14px;
  color: #444;
  padding-left: 4px;
}

.lt-rules-list li strong {
  color: var(--fm-green);
  display: block;
  margin-bottom: 4px;
}

/* Confirmation actions */
.lt-confirmation-actions {
  margin-top: 32px;
}

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

@media (max-width: 768px) {
  .lt-apply-section { padding: 30px 0 40px; }
  .lt-form-card { padding: 24px 16px; border-radius: 12px; }
  .lt-form-card__title { font-size: 22px; }
  .lt-form-card__header { margin-bottom: 16px; padding-bottom: 16px; }
  .lt-intro-grid { grid-template-columns: 1fr; }
  .lt-review-grid { grid-template-columns: 1fr; }
  .lt-steps { gap: 2px; }
  .lt-step-label { font-size: 9px; }
  .lt-step-dot { width: 26px; height: 26px; font-size: 10px; }
  .lt-doc-checklist { flex-direction: column; }
  .lt-confirmation-card { padding: 40px 20px; }
  .lt-confirmation-heading { font-size: 24px; }
  .lt-reference-number { font-size: 22px; }
  .lt-form-actions { flex-direction: column-reverse; gap: 12px; }
  .lt-form-actions .lt-btn-primary,
  .lt-form-actions .lt-btn-secondary { width: 100%; text-align: center; }
  .lt-review-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .lt-step-label { display: none; }
}
