/*
 * NorrFlytt – Formulärstilar
 * Lägg i Divi > Theme Options > Custom CSS, eller enqueue via functions.php
 * Alla klasser är prefixade med .noff- för att undvika konflikter med Divi.
 */

.noff-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  font-family: inherit;
}

/* Fältlayout */
.noff-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.noff-field {
  display: flex;
  flex-direction: column;
}

.noff-half  { width: calc(50% - 8px); }
.noff-full  { width: 100%; }

@media (max-width: 600px) {
  .noff-half { width: 100%; }
}

/* Labels */
.noff-field label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #333;
  line-height: 1.4;
}

.noff-field label small {
  font-weight: 400;
  color: #666;
}

.noff-req {
  color: #c0392b;
}

/* Inputs */
.noff-form input[type="text"],
.noff-form input[type="email"],
.noff-form input[type="tel"],
.noff-form textarea,
.noff-form select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.noff-form input:focus,
.noff-form textarea:focus {
  outline: none;
  border-color: var(--noff-accent, #1a6b8a);
  box-shadow: 0 0 0 3px rgba(26,107,138,.12);
}

.noff-form textarea {
  resize: vertical;
  min-height: 90px;
}

/* Checkboxar */
.noff-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 4px 0;
}

.noff-cb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 400 !important;
  font-size: 0.92rem;
  cursor: pointer;
  color: #333;
}

.noff-cb input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--noff-accent, #1a6b8a);
  flex-shrink: 0;
}

/* Knapp */
.noff-submit {
  display: inline-block;
  background: var(--noff-accent, #1a6b8a);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.noff-submit:hover {
  background: var(--noff-accent-dark, #145570);
}

.noff-submit:active {
  transform: scale(0.98);
}

/* Meddelanden */
.noff-success {
  background: #d4edda;
  border: 1px solid #a3cfaa;
  color: #155724;
  padding: 18px 22px;
  border-radius: 7px;
  margin-bottom: 16px;
}

.noff-errors {
  background: #fde8e8;
  border: 1px solid #e57373;
  color: #7f1d1d;
  padding: 14px 18px;
  border-radius: 7px;
  margin-bottom: 16px;
}

.noff-errors p,
.noff-success p {
  margin: 0 0 4px;
}

.noff-notice {
  background: #fff8e1;
  border: 1px solid #f0c040;
  color: #5f4700;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* Radio-knappar (används i t.ex. magasinering) */
.noff-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 4px 0;
}

.noff-radios .noff-cb input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--noff-accent, #1a6b8a);
  flex-shrink: 0;
}

/* ── Oktoberkampanj-varianter ───────────────────────────── */

/* Accentfärg för kampanjsidan – kan åsidosättas med :root-override */
.noff-oktober {
  --noff-accent:      #e05c00;  /* orange kampanjfärg */
  --noff-accent-dark: #b84900;
}

.noff-submit-oktober {
  width: 100%;
  padding: 15px 24px;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 7px;
}

.noff-submit-oktober:hover {
  background: var(--noff-accent-dark, #b84900);
}
