/* ============================================
   Navette Skolae - Styles
   ============================================ */

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

:root {
  --primary: #1e3a5f;
  --primary-dark: #152d4a;
  --primary-light: #2d5f9a;
  --accent: #f0a030;
  --accent-hover: #db9228;
  --accent-light: #fef3e0;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1a202c;
  --text-secondary: #64748b;
  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --border: #e2e8f0;
  --input-bg: #f8fafc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --nav-height: 56px;
  --bottom-nav-height: 68px;
}

html { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Loading ---- */

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-small {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-small {
  display: flex;
  justify-content: center;
  padding: 40px;
}

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

/* ---- Login ---- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5f9a 50%, #1a2f4a 100%);
  padding: 20px;
}

.login-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

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

.login-header {
  background: var(--primary);
  color: white;
  padding: 36px 28px 28px;
  text-align: center;
}

.login-icon {
  margin-bottom: 12px;
  opacity: 0.85;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-header p {
  font-size: 14px;
  opacity: 0.75;
  font-weight: 400;
}

.login-form {
  padding: 28px;
}

/* ---- Header ---- */

.header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--nav-height);
  max-width: 960px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.header-link {
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.header-link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.header-link.active {
  color: white;
  background: rgba(255,255,255,0.15);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: background 0.2s;
}

.header-user:hover {
  background: rgba(255,255,255,0.2);
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

/* ---- Bottom Nav (mobile) ---- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--bottom-nav-height);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  border-radius: var(--radius-sm);
}

.nav-item:hover { text-decoration: none; }

.nav-item.active {
  color: var(--primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

/* ---- Content ---- */

.content {
  padding: 20px 16px calc(var(--bottom-nav-height) + 16px);
  max-width: 640px;
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-height));
}

/* ---- Page ---- */

.page { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.section { margin-bottom: 24px; }

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Welcome Card ---- */

.welcome-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 28px 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.welcome-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-card p {
  opacity: 0.8;
  margin-bottom: 18px;
  font-size: 15px;
}

/* ---- Info Banner ---- */

.info-banner {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--accent-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
}

.info-banner-icon {
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-banner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.info-banner p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- Cards ---- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}

/* ---- Forms ---- */

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.optional {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea { resize: vertical; min-height: 80px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
  background: white;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

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

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 22px;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-block { width: 100%; }

.btn-sm { padding: 9px 18px; font-size: 14px; }

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

/* ---- Autocomplete ---- */

.autocomplete {
  position: relative;
}

.ac-input {
  width: 100%;
  cursor: text;
}

.ac-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 2px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.ac-dropdown.open {
  display: block;
}

.ac-option {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.ac-option:hover,
.ac-option.selected {
  background: var(--bg);
  color: var(--primary);
}

.ac-option.selected {
  font-weight: 600;
}

.ac-empty {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- Date Chips ---- */

.date-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.date-chips::-webkit-scrollbar { display: none; }

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  min-width: 72px;
  flex-shrink: 0;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text);
}

.date-chip:hover {
  border-color: var(--primary-light);
  background: #f0f4ff;
}

.date-chip.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.chip-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.chip-month {
  font-size: 11px;
  opacity: 0.7;
}

/* ---- Ride Cards ---- */

.ride-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  border-left: 4px solid var(--primary-light);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.ride-card:hover {
  box-shadow: var(--shadow-md);
}

.ride-card.expanded {
  flex-wrap: wrap;
}

.ride-card.expanded .ride-details {
  flex-basis: 100%;
  order: 3;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.ride-card.cancelled {
  opacity: 0.55;
  border-left-color: var(--danger);
}

.ride-card.past {
  opacity: 0.65;
  border-left-color: var(--text-secondary);
}

.ride-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  padding: 6px 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.ride-day {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.ride-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.ride-month {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.ride-details {
  flex: 1;
  min-width: 0;
}

.ride-location {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ride-card.expanded .ride-location {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.ride-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ride-meta svg { flex-shrink: 0; }

.ride-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Status Badges ---- */

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pending { background: var(--accent-light); color: var(--warning); }
.status-past { background: var(--bg); color: var(--text-secondary); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }

.btn-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
}

.btn-cancel:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.ride-actions {
  display: flex;
  gap: 4px;
}

.btn-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
}

.btn-edit:hover {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.08);
}

/* ---- FAQ ---- */

.faq-list { margin-bottom: 20px; }

.faq-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  gap: 12px;
}

.faq-question:hover { background: var(--bg); }

.faq-question svg {
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

.faq-answer a { color: var(--primary-light); font-weight: 500; }

/* ---- Empty State ---- */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  color: var(--border);
  margin-bottom: 12px;
}

.empty-state p {
  margin-bottom: 16px;
  font-size: 15px;
}

/* ---- Toast ---- */

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  font-size: 14px;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

/* ---- Admin ---- */

.admin-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: white;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.admin-date-group {
  margin-bottom: 24px;
}

.admin-date-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 58, 95, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
}

.itinerary-dropdown {
  position: relative;
  margin-left: auto;
}

.btn-itinerary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 58, 95, 0.08);
  border: none;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-itinerary:hover {
  background: rgba(30, 58, 95, 0.16);
}

.itinerary-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 160px;
  overflow: hidden;
}

.itinerary-menu.open {
  display: block;
}

.itinerary-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.itinerary-option:hover {
  background: rgba(30, 58, 95, 0.06);
}

.itinerary-option + .itinerary-option {
  border-top: 1px solid var(--border);
}

.ride-user-name {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 2px;
}

.header-link-admin {
  color: var(--accent) !important;
}

.nav-item-admin {
  color: var(--accent) !important;
}

.nav-item-admin.active {
  color: var(--accent) !important;
}

.nav-item-admin.active::before {
  background: var(--accent);
}

/* ---- Ride Memos (admin) ---- */

.ride-memo {
  margin-top: 6px;
}

.btn-add-memo {
  background: none;
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-add-memo:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.memo-display {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 6px 8px;
}

.memo-badge {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.memo-badge svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

.memo-badge span {
  word-break: break-word;
}

.memo-inline-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.btn-memo-edit,
.btn-memo-delete {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 4px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.btn-memo-edit:hover {
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
}

.btn-memo-delete:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

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

.memo-textarea {
  width: 100%;
  padding: 6px 8px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
  background: var(--card);
  color: var(--text);
}

.memo-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.memo-form-actions {
  display: flex;
  gap: 6px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

/* ---- Admin edit form ---- */

.admin-edit-form {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-edit-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 50px;
}

.admin-edit-row select,
.admin-edit-row input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  background: var(--input-bg);
  color: var(--text);
}

.admin-edit-row select:focus,
.admin-edit-row input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.admin-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ---- Utilities ---- */

.text-muted { color: var(--text-secondary); font-size: 14px; }
.text-error { color: var(--danger); font-size: 14px; }

/* ---- Desktop ---- */

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .header-nav { display: flex; }

  .content {
    padding-bottom: 40px;
    max-width: 640px;
  }

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

@media (max-width: 400px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
