:root {
  --green:        #3a8c2f;
  --green-dark:   #2d6e25;
  --green-light:  #eef6ec;
  --green-mid:    #d4eacd;
  --border:       #d8d8d8;
  --border-focus: #3a8c2f;
  --text:         #222222;
  --muted:        #555555;
  --bg:           #ffffff;
  --bg-page:      #f5f5f5;
  --radius:       4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* FORM WRAPPER */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.title-underline {
  width: 40px;
  height: 3px;
  background: var(--green);
  border-radius: 999px;
  margin-bottom: 28px;
}

/* PRIVACY NOTICE */
.privacy-notice {
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius);
  padding: 13px 38px 13px 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
  position: relative;
}

.privacy-notice a { color: var(--green); font-weight: 600; text-decoration: none; }
.privacy-notice a:hover { text-decoration: underline; }
.privacy-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 16px; color: #888; cursor: pointer; line-height: 1; }

/* AUTOSAVE */
.autosave-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 28px;
}

.autosave-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* FIELDS */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 32px;
}

.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }

label { font-size: 14px; font-weight: 700; color: var(--text); }

input, select, textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(58,140,47,0.12);
}

select {
  appearance: none;
  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='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #aaa; }

/* FISH */
.fish-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0 24px; }

.fish-section-header { margin-bottom: 20px; }
.fish-section-header h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.fish-section-header p { font-size: 13px; color: var(--muted); }

.fish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.fish-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  transition: border-color 0.18s, background 0.18s;
}

.fish-card:hover { border-color: #aaa; }

.fish-card.has-catch {
  border-color: var(--green);
  background: var(--green-light);
}

.fish-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.fish-card.has-catch .fish-name { color: var(--green-dark); border-color: var(--green-mid); }

.fish-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fish-fields label { font-size: 12px; font-weight: 600; color: var(--muted); }
.fish-fields input { padding: 7px 10px; font-size: 13px; text-align: center; }

/* ANTI-SPAM */
.antispam-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.antispam-row label { font-weight: 700; font-size: 14px; white-space: nowrap; }
.antispam-row input { width: 80px; flex-shrink: 0; }

/* SUBMIT */
.form-footer { display: flex; align-items: center; gap: 18px; padding-top: 8px; }

.btn-submit {
  appearance: none;
  border: none;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 30px;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-submit:hover { background: var(--green-dark); }

/* SUCCESS */
.success-box {
  display: none;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--green-dark);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

.success-box.visible { display: block; }
.success-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.success-box p { font-size: 14px; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .fish-grid { grid-template-columns: 1fr 1fr; }
  .fields-grid { grid-template-columns: 1fr; }
  main { padding: 24px 16px 48px; }
}

@media (max-width: 420px) {
  .fish-grid { grid-template-columns: 1fr; }
}