/* Max Forms — shared site styles
   Replicated from maxforms.ca (colors, type, layout) */

@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --red: #c00;
  --red-dark: #a30000;
  --blue: #2f7bc7;
  --blue-dark: #245f9a;
  --dark-bg: #0b0b0d;
  --text-dark: #222;
  --gray-panel: #ececec;
  --font: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text-dark);
}

a { text-decoration: none; color: inherit; }

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-name {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: var(--red);
}

.admin-login-btn {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 2px;
  display: inline-block;
}

/* Hero (home page) */
.hero {
  position: relative;
  min-height: 480px;
  background: #000 url('/assets/hero-bg.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  color: var(--red);
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 60px 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.quick-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-link-btn {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.quick-link-btn:hover { background: var(--blue-dark); }

/* Generic form page */
.form-wrap {
  max-width: 420px;
  margin: 50px auto;
  background: var(--gray-panel);
  border-radius: 4px;
  padding: 30px 35px 40px;
}

.form-wrap.wide { max-width: 620px; }

.form-wrap h1 {
  font-weight: 400;
  color: #555;
  border-bottom: 1px solid #ccc;
  padding-bottom: 14px;
  margin-top: 0;
}

.field { margin-top: 22px; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 15px;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-icon {
  background: #2f7bc7;
  color: #fff;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
}

.input-icon.red { background: var(--red); }

input[type=text], input[type=email], input[type=number], input[type=password], select, textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font);
  border-radius: 0 4px 4px 0;
}

.field textarea { border-radius: 4px; min-height: 90px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.hazard-category { margin-top: 18px; font-weight: 700; }

.hazard-item { margin-top: 2px; }

.hazard-mitigation {
  width: calc(100% - 28px);
  margin: 4px 0 10px 28px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: var(--font);
  box-sizing: border-box;
}

.submit-btn {
  margin-top: 30px;
  background: linear-gradient(#ffcf4d, #f5a623);
  border: none;
  padding: 14px;
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.privacy-note {
  font-size: 12px;
  color: #666;
  margin-top: 18px;
}

.privacy-note a { color: var(--red); text-decoration: underline; }

/* PIN gate pages */
.gate-box {
  max-width: 480px;
  margin: 60px auto;
  background: #fdfdea;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.gate-box h1 {
  padding: 24px 20px;
  margin: 0;
  font-size: 26px;
  color: #555;
  border-bottom: 1px solid #eee;
}

.gate-body { padding: 30px 40px 40px; }

.gate-body label { display: block; font-weight: 700; margin-bottom: 10px; }

.gate-body input[type=password], .gate-body input[type=text] {
  width: 100%;
  padding: 12px;
  margin-bottom: 24px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.gate-body button {
  width: 100%;
  background: linear-gradient(#ffcf4d, #f5a623);
  border: none;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.migration-note {
  max-width: 620px;
  margin: 0 auto 40px;
  background: #fff4e5;
  border: 1px solid #f0c36d;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 13px;
  color: #6b4b00;
}
