/* ==========================================================
   WAWASEE WOODEN BOAT REGISTRY — styles.css
   Structure:
     1. Design tokens
     2. Reset & base
     3. Typography
     4. Header & hero
     5. Layout
     6. Search & filters
     7. Gallery header & view toggle
     8. Carousel (photo view)
     9. Fleet table (directory view)
    10. Owner collection page
    11. Submit & contact sections
    12. Utilities

   Breakpoints (mobile-first):
     Base              = mobile  (<600px)
     @min-width 600px  = tablet  (600px–1023px)
     @min-width 1024px = desktop (1024px+)
   ========================================================== */


/* ----------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------- */

:root {
  --navy:        #17324d;
  --navy-dark:   #10243a;
  --cream:       #f7f3eb;
  --paper:       #ffffff;
  --text:        #222222;
  --muted:       #68707a;
  --line:        #ded8cc;
  --soft-border: rgba(120, 140, 160, 0.42);

  --radius-sm:   4px;
  --radius-pill: 999px;

  --type-xs:   11px;
  --type-sm:   13px;
  --type-base: 15px;
  --type-md:   17px;
  --type-lg:   24px;
  --type-xl:   32px;
  --type-2xl:  42px;

  --space-xs:  8px;
  --space-sm:  14px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  60px;
}


/* ----------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--type-base);
  line-height: 1.5;
  background: var(--cream);
  color: var(--text);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}


/* ----------------------------------------------------------
   3. Typography helpers
   ---------------------------------------------------------- */

.eyebrow,
.section-kicker,
.owner-kicker,
.detail-label,
.hover-label,
.boat-tabs-label {
  font-size: var(--type-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-divider {
  opacity: 0.38;
  font-weight: 300;
}

.hidden {
  display: none !important;
}


/* ----------------------------------------------------------
   4. Header & hero
   ---------------------------------------------------------- */

header {
  color: #fff;
}

.hero-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-image: url("cover-page.webp");
  background-size: cover;
  background-position: 50% 50%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,  rgba(16,36,58,0.03), rgba(16,36,58,0.62)),
    linear-gradient(to right,   rgba(16,36,58,0.45), rgba(16,36,58,0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 18px 36px;
}

.hero-content .eyebrow {
  color: rgba(255,255,255,0.88);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

h1 {
  font-size: clamp(28px, 7vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.subhead {
  margin-top: 12px;
  font-size: var(--type-base);
  line-height: 1.5;
  opacity: 0.94;
  max-width: 760px;
}

@media (min-width: 600px) {
  .hero-banner   { min-height: 420px; }
  .hero-content  { padding: 28px 28px 48px; }
  .subhead       { font-size: var(--type-md); }
}

@media (min-width: 1024px) {
  .hero-banner  { min-height: 520px; }
  .hero-content { padding: 34px 28px 58px; }
}


/* ----------------------------------------------------------
   5. Layout
   ---------------------------------------------------------- */

.header-inner,
main {
  max-width: 1180px;
  margin: 0 auto;
}

main {
  padding: 20px 16px 48px;
}

@media (min-width: 600px) {
  main { padding: 26px 22px 56px; }
}

@media (min-width: 1024px) {
  main { padding: 30px 22px 60px; }
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}


/* ----------------------------------------------------------
   6. Search & filters
   ---------------------------------------------------------- */

.registry-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 16px;
}

.registry-intro h2 {
  color: var(--navy);
  font-size: clamp(17px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.registry-search-wrap {
  width: 100%;
}

.registry-search {
  width: 100%;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-pill);
  padding: 13px 18px;
  font-size: var(--type-base);
  background: var(--paper);
  color: var(--text);
}

.registry-search:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .registry-intro {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    align-items: end;
    gap: 24px;
    margin: 12px 0 18px;
  }

  .registry-search {
    padding: 15px 18px;
    font-size: 16px;
  }
}

/* Filter chips */

.quick-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
  margin: 0 0 24px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--soft-border);
  background: var(--paper);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-size: var(--type-base);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

@media (min-width: 600px) {
  .quick-filters { margin-bottom: 28px; }
}

@media (min-width: 1024px) {
  .quick-filters { margin-bottom: 30px; }
}


/* ----------------------------------------------------------
   7. Gallery header & view toggle
   ---------------------------------------------------------- */

.gallery-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
}

.gallery-header h2 {
  color: var(--navy);
  font-size: clamp(17px, 4vw, 30px);
}

.gallery-header-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-header p {
  color: var(--muted);
  font-size: var(--type-sm);
}

@media (min-width: 600px) {
  .gallery-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .gallery-header-right {
    justify-content: flex-end;
  }

  .gallery-header p {
    font-size: var(--type-base);
  }
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-pill);
  background: var(--paper);
}

.view-toggle-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: var(--type-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.view-toggle-button.active {
  background: var(--navy);
  color: #fff;
}

@media (min-width: 600px) {
  .view-toggle-button { padding: 8px 14px; font-size: var(--type-base); }
}


/* ----------------------------------------------------------
   8. Carousel (photo view)
   ---------------------------------------------------------- */

.boat-carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.boat-carousel {
  grid-column: 1;
  display: block;
  height: 380px;
}

.registry-carousel-arrow {
  display: none; /* hidden on mobile */
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(23,50,77,0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s, background 0.2s, transform 0.2s;
}

.carousel-dot:hover {
  background: rgba(23,50,77,0.58);
  transform: scale(1.15);
}

.carousel-dot.active {
  background: var(--navy);
  transform: scale(1.35);
}

@media (min-width: 600px) {
  .boat-carousel        { height: 460px; }
  .carousel-dots        { margin-top: 16px; }
}

@media (min-width: 1024px) {
  .boat-carousel-shell {
    grid-template-columns: 50px minmax(0,1fr) 50px;
  }

  .boat-carousel {
    grid-column: 2;
    height: 560px;
  }

  .carousel-dots {
    grid-column: 2;
    margin-top: 18px;
  }

  .registry-carousel-arrow {
    display: flex;
    position: relative;
    z-index: 20;
    width: 50px;
    height: 50px;
    border: 1px solid var(--soft-border);
    border-radius: 50%;
    background: rgba(255,255,255,0.82);
    color: var(--navy);
    font-size: 28px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s, background 0.18s, opacity 0.18s;
  }

  .registry-carousel-arrow.left {
    grid-column: 1;
    justify-self: end;
    margin-right: -25px;
  }

  .registry-carousel-arrow.right {
    grid-column: 3;
    justify-self: start;
    margin-left: -25px;
  }

  .registry-carousel-arrow:hover {
    background: #fff;
    transform: scale(1.06);
  }

  .registry-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }
}

/* Boat cards */

.boat-card,
.carousel-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #d8d2c6;
  text-decoration: none;
  color: #fff;
  width: 100%;
  height: 100%;
}

.boat-card img,
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.boat-card-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8,18,30,0.66) 0%,
    rgba(8,18,30,0.28) 38%,
    rgba(8,18,30,0.04) 74%,
    rgba(8,18,30,0.00) 100%
  );
}

.boat-card-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.boat-card-title h3 {
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.boat-card-title p {
  margin-top: 6px;
  opacity: 0.92;
  font-size: var(--type-base);
}

/* Hover overlay — desktop only */

.boat-card-hover {
  display: none;
}

@media (min-width: 1024px) {
  .boat-card-hover {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 24px;
    background: linear-gradient(
      to top,
      rgba(8,18,30,0.88) 0%,
      rgba(8,18,30,0.62) 42%,
      rgba(8,18,30,0.20) 72%,
      rgba(8,18,30,0.02) 100%
    );
    opacity: 0;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.25s ease;
  }

  .boat-card:hover img        { transform: scale(1.035); }
  .boat-card:hover .boat-card-hover  { opacity: 1; }
  .boat-card:hover .boat-card-title  { opacity: 0; transform: translateY(12px); }
}

.hover-value {
  margin-bottom: 8px;
  font-size: var(--type-lg);
  font-weight: 800;
}

.hover-meta {
  margin-bottom: 12px;
  font-size: var(--type-sm);
  opacity: 0.9;
}

.hover-provenance {
  line-height: 1.45;
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--type-base);
}

.view-boat {
  margin-top: 14px;
  font-weight: 800;
  color: #fff;
}

/* Help text */

.carousel-help {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--type-sm);
  text-align: center;
}

@media (min-width: 1024px) {
  .carousel-help { font-size: var(--type-base); }
}


/* ----------------------------------------------------------
   9. Fleet table (directory view)
   ---------------------------------------------------------- */

.boat-table-shell {
  margin-top: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  -webkit-overflow-scrolling: touch;
}

.boat-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: var(--type-sm);
}

.boat-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fbfaf7;
  color: var(--navy);
  text-align: left;
  border-bottom: 2px solid var(--line);
  padding: 12px 14px;
  font-size: var(--type-xs);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.boat-table tbody td {
  border-bottom: 1px solid #eee9df;
  padding: 12px 14px;
  vertical-align: top;
  color: var(--text);
}

.boat-table tbody tr {
  cursor: pointer;
}

.boat-table tbody tr:hover,
.boat-table tbody tr:focus {
  background: #faf7f1;
  outline: none;
}

.boat-table td strong {
  color: var(--navy);
}

.boat-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.boat-table th.sortable:hover {
  background: #f4efe7;
}

.sort-indicator {
  display: inline-block;
  min-width: 14px;
  margin-left: 4px;
  font-size: var(--type-xs);
}

.empty-table {
  color: var(--muted);
  text-align: center;
  padding: 30px 16px !important;
}

@media (min-width: 1024px) {
  .boat-table           { font-size: var(--type-base); }
  .boat-table thead th  { padding: 14px 16px; font-size: var(--type-sm); }
  .boat-table tbody td  { padding: 14px 16px; }
}


/* ----------------------------------------------------------
   10. Owner collection page
   ---------------------------------------------------------- */

.directory-card,
.profile-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Profile header */

.profile-header,
.owner-profile-header,
.boat-profile-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 22px 20px;
}

.profile-name,
.owner-profile-header .profile-name,
.boat-profile-header .profile-name {
  color: #fff;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.owner-kicker {
  color: rgba(255,255,255,0.74);
  margin-bottom: 6px;
}

.owner-meta-line {
  margin-top: 10px;
  color: rgba(255,255,255,0.74);
  font-size: var(--type-sm);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-meta .pill,
.owner-profile-header .pill,
.boat-profile-header .pill {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

@media (min-width: 600px) {
  .profile-header,
  .owner-profile-header,
  .boat-profile-header {
    padding: 26px 28px;
  }
}

@media (min-width: 1024px) {
  .profile-header,
  .owner-profile-header,
  .boat-profile-header {
    padding: 28px 32px;
  }

  .owner-meta-line { font-size: var(--type-base); }
}

/* Boat tabs */

.boat-tabs-wrap {
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--line);
}

.boat-tabs-label {
  margin-bottom: 10px;
}

.boat-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.boat-tabs::-webkit-scrollbar { display: none; }

.boat-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--type-base);
  color: var(--navy);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.boat-tab:hover,
.boat-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

@media (min-width: 600px) {
  .boat-tabs-wrap { padding: 16px 20px 0; }
}

/* Boat feature panel */

.boat-feature {
  display: flex;
  flex-direction: column;
}

.boat-photo-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #d8d2c6;
  overflow: hidden;
}

.boat-photo-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.carousel-arrow {
  display: none; /* mobile: swipe only */
}

.photo-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(16,36,58,0.82);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: var(--type-xs);
  letter-spacing: 0.03em;
}

.boat-info {
  padding: 22px 18px;
  background: #fbfaf7;
  border-top: 1px solid var(--line);
}

.boat-name {
  color: var(--navy);
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.boat-subtitle {
  color: rgba(70,80,90,0.82);
  font-size: var(--type-base);
  line-height: 1.4;
  letter-spacing: 0.015em;
  margin-bottom: 22px;
}

.details-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-row {
  border-top: 1px solid #eee9df;
  padding-top: 12px;
}

.detail-label {
  margin-bottom: 5px;
}

.detail-value {
  font-size: var(--type-base);
  line-height: 1.4;
}

.provenance-box {
  overflow-y: visible; /* mobile: full height */
  line-height: 1.55;
  color: #3d4146;
}

.story {
  background: #faf7f1;
  border: 1px solid #eee4d4;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #3d4146;
  line-height: 1.55;
}

@media (min-width: 600px) {
  .carousel-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s, background 0.18s;
  }

  .carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
  }

  .carousel-arrow.left  { left: 14px; }
  .carousel-arrow.right { right: 14px; }

  .boat-info { padding: 28px 26px; }
}

@media (min-width: 1024px) {
  .boat-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.85fr);
  }

  .boat-info {
    padding: 34px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .provenance-box {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-arrow {
    width: 54px;
    height: 54px;
    font-size: 34px;
  }

  .carousel-arrow.left  { left: 18px; }
  .carousel-arrow.right { right: 18px; }

  .photo-count {
    left: 18px;
    bottom: 18px;
    font-size: var(--type-sm);
    padding: 8px 12px;
  }
}


/* ----------------------------------------------------------
   11. Submit & contact sections
   ---------------------------------------------------------- */

.submit-boat-section,
.contact-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--soft-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.submit-boat-content h2,
.contact-content h2 {
  color: var(--navy);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.submit-boat-content p,
.contact-content p {
  color: var(--muted);
  font-size: var(--type-base);
  line-height: 1.6;
  max-width: 760px;
}

.download-form-button,
.contact-button {
  display: inline-block;
  align-self: flex-start;
  padding: 13px 22px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--navy);
  font-size: var(--type-base);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.download-form-button:hover,
.contact-button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (min-width: 1024px) {
  .submit-boat-section,
  .contact-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
  }

  .download-form-button,
  .contact-button {
    flex-shrink: 0;
    align-self: auto;
    padding: 14px 22px;
  }
}


/* ----------------------------------------------------------
   13. Submission modal
   ---------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16, 36, 58, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal {
  background: var(--paper);
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 720px;
  margin: auto;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
}

.modal-title {
  color: #fff;
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: -0.02em;
}

.modal-close {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.28);
}

.modal-form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px 16px;
}

.form-section legend {
  color: var(--navy);
  font-weight: 700;
  font-size: var(--type-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.form-row.three-col {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .form-row          { grid-template-columns: 1fr 1fr; }
  .form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
  .modal-form        { padding: 28px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: var(--type-sm);
  font-weight: 700;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: var(--type-base);
  font-family: inherit;
  color: var(--text);
  background: var(--paper);
  transition: border-color 0.18s, outline 0.18s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.input-error {
  border-color: #c0392b !important;
  outline-color: #c0392b !important;
}

.req {
  color: #c0392b;
}

.form-hint {
  font-size: var(--type-sm);
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* File upload */

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--soft-border);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  font-size: var(--type-base);
  transition: border-color 0.18s, background 0.18s;
}

.file-upload-label:hover {
  border-color: var(--navy);
  background: #f7f4ef;
  color: var(--navy);
}

.file-upload-label input[type="file"] {
  display: none;
}

.file-upload-icon {
  font-size: 28px;
}

.file-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-item {
  font-size: var(--type-sm);
  color: var(--navy);
  background: #f0ede8;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.file-size {
  color: var(--muted);
  margin-left: 6px;
}

/* Form actions */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-note {
  font-size: var(--type-sm);
  color: var(--muted);
}

.submit-button {
  padding: 13px 28px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--type-base);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, opacity 0.18s;
}

.submit-button:hover {
  background: var(--navy-dark);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Status message */

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--type-base);
  line-height: 1.5;
}

.form-status.success {
  background: #eaf6ee;
  color: #1e6e3a;
  border: 1px solid #b6dfc4;
}

.form-status.error {
  background: #fdf0ee;
  color: #a93226;
  border: 1px solid #f0b8b0;
}


.pill {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 7px 11px;
  color: #4a4f55;
  font-size: var(--type-sm);
}

.empty-carousel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}