:root {
  --primary-color: #2b6cb0;
  --primary-color-dark: #1c4f82;
  --background-color: #f5f7fb;
  --text-color: #1f2933;
  --muted-text: #52606d;
  --surface-color: #ffffff;
  --border-color: #d9e2ec;
  --brand-teal: #63b0a3;
  --brand-orange: #f58220;
  --brand-gray: #6b7280;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.site-header {
  background: #ffffff;
  color: var(--text-color);
  padding: 1.13rem 1.5rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: flex-start;
  text-align: left;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-mark {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 1;
  text-align: left;
}

.logo-line {
  font-weight: 700;
}

.logo-line-primary {
  color: currentColor;
  font-size: 1.9rem;
}

.logo-line-secondary {
  color: #f58220;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}


.brand-logo {
  display: block;
  width: 240px;
  height: auto;
}

.tagline {
  margin: 0.5rem auto 0;
  font-size: 1.1rem;
  max-width: 30rem;
}

.site-nav {
  background: var(--brand-teal);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.2s ease, background 0.2s ease;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--brand-orange);
}

.main-content {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3rem;
}

.content-section {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
}

.content-section:not(.active) {
  display: none;
}

.content-section h1 {
  margin-top: 0;
  font-size: 2rem;
  color: var(--primary-color-dark);
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.rules-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--muted-text);
}

.rules-list li {
  margin-bottom: 0.75rem;
}

.rules-list strong {
  color: var(--primary-color-dark);
}

.booking-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Two-column layout for Vardagsvård booking */
.booking-form.two-col {
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 1.25rem;
  align-items: start;
}

.booking-form.two-col > .col {
  display: grid;
  gap: 1rem;
}

.booking-form.two-col .section-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color-dark);
}

.booking-form.two-col > button[type="submit"] {
  grid-column: 1 / -1;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.days-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}


.form-hint {
  margin-top: 0.25rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font: inherit;
  color: var(--text-color);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Invalid field highlighting */
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #dc2626; /* red-600 */
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}
.form-row.has-error > label {
  color: #b91c1c; /* red-700 */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.25);
}

button[type="submit"] {
  align-self: start;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(43, 108, 176, 0.25);
}

/* Ensure equal size for plan and start date */
.booking-form.two-col .service-col select#vv-plan,
.booking-form.two-col .service-col input#vv-startdate {
  width: 100%;
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2.5rem 1.5rem 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
}

.footer-content h2 {
  margin-top: 0;
  color: #f1f5f9;
  font-size: 1.25rem;
}

address {
  font-style: normal;
  line-height: 1.8;
  color: #cbd5e1;
}

.social-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.social-links a:hover,
.social-links a:focus {
  text-decoration: underline;
}

.footer-note {
  text-align: center;
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.89rem 1rem 0.67rem;
  }

  .logo {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .brand-logo {
    width: 180px;
  }

  .logo-text {
    align-items: center;
    text-align: center;
  }

  .main-content {
    padding: 0 1rem 2rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .site-nav a {
    padding: 0.5rem 1rem;
  }

  .booking-form.two-col {
    grid-template-columns: 1fr;
  }

  .booking-form.two-col > button[type="submit"] {
    grid-column: auto;
  }
}

/* Ensure hidden sections are not displayed */
[hidden]{ display:none !important; }
