/* ============================================================
   Root Variables (Ljus Tema)
   ============================================================ */
:root {
  --bg: #ffffff;
  --card: #f8f9fa;
  --muted: #6c757d;
  --text: #333333;
  --accent: #0a4861;
  --accent-light: #3b7d9f;
  --border: #dee2e6;
  --ring: #cce5f0;
  --error: #dc3545;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   Base Styles
   ============================================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  line-height: 1.5;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  width: 100%;
  max-width: 880px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}

.form-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   Branding & Headings
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand img {
  height: 80px;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  font-family: "Lalezar", cursive;
  color: var(--accent);
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* När skärmen är 480px eller smalare */
@media (max-width: 480px) {
  .heading {
    flex-direction: column; /* Staplar på höjden */
    align-items: flex-start; /* Vänsterjustera innehållet */
    gap: 4px; /* Mindre mellanrum för mobilen */
    margin-bottom: 30px;
  }
}

.heading h1 {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 400;
  font-family: "Lalezar", cursive;
  color: var(--accent);
  text-transform: uppercase;
}

.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   Footer Layout
   ============================================================ */
.site-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 16px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   Form Layout
   ============================================================ */
form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  form {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

/* ============================================================
   Labels & Inputs
   ============================================================ */
label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ============================================================
   Dropdown Styles
   ============================================================ */
.select-wrap {
  position: relative;
}

.select-wrap:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  padding-right: 34px;
}

/* ============================================================
   Buttons
   ============================================================ */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 6px;
}

.confirm {
  justify-content: center;
}

.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .2s, transform .06s ease, box-shadow .2s;
}

.btn:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: #f1f1f1;
}

/* ============================================================
   Errors
   ============================================================ */
.error {
  color: var(--error);
  font-size: 13px;
  display: none;
}