/* Complementa florida/css/styles.css per als formularis d'inscripcions. */
.inscripcions-page .header .nav {
  margin-left: 0;
}

.inscripcions-page .page-header {
  padding-bottom: 1.75rem;
}

.inscripcions-page .page-interior__title {
  font-size: clamp(3rem, 8vw, 6rem);
}

.inscripcions-page .section {
  min-height: calc(100vh - 16rem);
}

.inscripcions-shell {
  display: grid;
  gap: 1.5rem;
}

.inscripcions-shell--wide {
  gap: 1.25rem;
}

.detall-agenda,
.form-panel,
.message-panel,
.backoffice-panel {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.detall-agenda {
  display: grid;
  gap: 1rem;
}

.detall-agenda h2,
.form-panel legend,
.backoffice-panel legend {
  color: var(--primary);
  font-family: 'Elahac', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.detall-agenda .subtitol {
  color: var(--accent);
  font-weight: 700;
}

.detall-agenda dl {
  display: grid;
  gap: 0.65rem 1rem;
  grid-template-columns: minmax(7rem, auto) 1fr;
  margin-top: 0.5rem;
}

.detall-agenda dt {
  color: var(--primary);
  font-weight: 700;
}

.detall-agenda dd {
  color: var(--foreground);
  margin: 0;
}

/* L'adreca de l'equipament es mostra sota el nom del lloc, com a la fitxa d'esdeveniment. */
.detall-agenda dd .card__address-detail {
  color: rgba(26, 26, 46, 0.75);
}

/* Mateix tractament dels enllacos que .card .card__description a de styles.css. */
.detall-agenda dd a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-panel,
.backoffice-panel {
  border: 0;
  margin: 0;
}

.form-panel + .form-panel,
.backoffice-panel + .backoffice-panel {
  margin-top: 1.25rem;
}

.form-panel legend,
.backoffice-panel legend {
  margin-bottom: 1rem;
  padding: 0;
}

.form-intro {
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.camp {
  margin-bottom: 1.1rem;
}

.camp label,
.acceptance label {
  color: var(--primary);
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.camp input,
.camp select {
  background: rgba(111, 50, 148, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  min-height: 3rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  width: 100%;
}

.camp input:focus,
.camp select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 19, 133, 0.1);
  outline: none;
}

.camp input[readonly] {
  background: rgba(113, 113, 130, 0.1);
  color: #4b5563;
}

.camp--inline {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(10rem, 1.3fr);
}

.linia .field-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.linia input {
  width: 100%;
}

.camps {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.backoffice-fields {
  align-items: start;
  max-width: 64rem;
}

.backoffice-fields .camp {
  margin-bottom: 0;
}

.backoffice-fields--two {
  grid-template-columns: repeat(2, minmax(14rem, 1fr));
}

.backoffice-fields--single {
  grid-template-columns: minmax(14rem, 32rem);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.actions-row--compact {
  margin-top: 0.75rem;
}

.inscripcions-page input[type='submit'],
.inscripcions-page .asp-button {
  align-items: center;
  background: var(--gradient);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(230, 19, 133, 0.3);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.inscripcions-page input[type='submit']:hover,
.inscripcions-page .asp-button:hover {
  box-shadow: 0 6px 24px rgba(230, 19, 133, 0.4);
  transform: translateY(-1px);
}

.inscripcions-page .asp-button--compact {
  min-height: 2.55rem;
  min-width: 11rem;
  padding: 0.6rem 1.15rem;
  width: auto;
}

.acceptance {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}

.acceptance input[type='checkbox'] {
  accent-color: var(--accent);
  flex: 0 0 auto;
  height: 1.2rem;
  margin-top: 0.2rem;
  width: 1.2rem;
}

.acceptance label {
  margin: 0;
}

.acceptance a {
  text-decoration: underline;
}

.error,
.validation-summary-errors {
  color: #b0004d;
  font-weight: 700;
}

.ok {
  color: var(--primary);
  font-weight: 700;
}

.validation-summary-errors {
  background: rgba(230, 19, 133, 0.08);
  border: 1px solid rgba(230, 19, 133, 0.25);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}

.validation-summary-errors ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.message-panel {
  border-color: rgba(111, 50, 148, 0.25);
  color: var(--primary);
  font-weight: 700;
}

.message-panel--ok {
  background: rgba(111, 50, 148, 0.08);
}

.resum {
  color: #4b5563;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  width: 100%;
}

.taula {
  background: #fff;
  border-collapse: collapse;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  min-width: 980px;
  overflow: hidden;
  width: 100%;
}

.taula th,
.taula td {
  border-bottom: 1px solid rgba(111, 50, 148, 0.12);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.taula th {
  background: rgba(111, 50, 148, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.taula a {
  color: var(--accent);
  font-weight: 700;
}

.activity-management-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.activity-management-card {
  background: #fff;
  border: var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem;
}

.activity-management-card__header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

.activity-management-card__code {
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 700;
}

.activity-management-card h2 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.activity-management-card .subtitol {
  color: var(--accent);
  font-weight: 700;
}

.activity-management-card .data,
.activity-management-card__summary {
  color: #4b5563;
}

.activity-management-card__summary {
  font-size: 0.95rem;
}

.activity-management-card__summary p + p {
  margin-top: 0.5rem;
}

.mobile-nav .mobile-nav__link--active,
.nav .nav__link--active {
  color: var(--accent);
}

@media (max-width: 767px) {
  .detall-agenda,
  .form-panel,
  .message-panel,
  .backoffice-panel {
    border-radius: var(--radius-lg);
    padding: 1.1rem;
  }

  .detall-agenda dl,
  .camp--inline,
  .linia .field-row,
  .backoffice-fields--two,
  .backoffice-fields--single {
    grid-template-columns: 1fr;
  }

  .inscripcions-page input[type='submit'],
  .inscripcions-page .asp-button {
    width: 100%;
  }
}

/* EPR 20260930: ------------------------------------------------------------------------------
   Tria de l'horari (primer pas d'Inscripcio.aspx): targetes agrupades per dia i, si el web.config
   ho activa, un calendari en un popup (a sota de tot en mobil).
   --------------------------------------------------------------------------------------------- */
.tria-horari__capcalera {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.tria-horari__ajuda {
  color: #4b5563;
  margin: 0;
}

.tria-horari__error {
  display: block;
  margin-bottom: 1rem;
}

.boto-calendari {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
}

.boto-calendari:hover,
.boto-calendari:focus-visible {
  background: rgba(111, 50, 148, 0.08);
}

.boto-calendari[hidden] {
  display: none;
}

.franges + .franges {
  margin-top: 1.1rem;
}

.franges__dia {
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.franges__llista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.franja {
  position: relative;
}

.franja input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.franja label,
.franja-cal {
  background: #fff;
  border: 1.5px solid rgba(111, 50, 148, 0.35);
  border-radius: 0.8rem;
  color: var(--foreground);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 0.1rem;
  min-width: 9.5rem;
  padding: 0.55rem 0.85rem;
  text-align: left;
}

.franja label:hover,
.franja-cal:hover:not(:disabled) {
  border-color: var(--primary);
}

.franja__hores {
  font-weight: 700;
}

.franja__dies {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.franja__places {
  color: #5b5b6b;
  font-size: 0.85rem;
}

.franja--poques .franja__places,
.franja-cal--poques .franja__places {
  color: var(--accent);
  font-weight: 700;
}

.franja input:checked + label,
.franja-cal[aria-pressed="true"] {
  background: rgba(111, 50, 148, 0.1);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.franja input:focus-visible + label,
.franja-cal:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.franja input:disabled + label,
.franja-cal:disabled {
  background: #f4f3f7;
  border-color: #d4d1dc;
  border-style: dashed;
  cursor: not-allowed;
}

.franja input:disabled + label .franja__hores,
.franja-cal:disabled .franja__hores {
  color: #9a97a6;
  text-decoration: line-through;
}


.horari-triat {
  align-items: center;
  background: rgba(111, 50, 148, 0.07);
  border-radius: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
}

.horari-triat strong {
  color: var(--primary);
}

.horari-triat a {
  color: var(--accent);
  font-weight: 700;
}

.popup-calendari {
  align-items: center;
  background: rgba(20, 16, 28, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 1000;
}

.popup-calendari[hidden] {
  display: none;
}

.popup-calendari__panell {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  width: min(100%, 30rem);
}

.popup-calendari__capcalera {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.popup-calendari__capcalera h2 {
  color: var(--primary);
  font-family: 'Elahac', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.popup-calendari__tancar {
  background: none;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.popup-calendari__ajuda {
  color: #4b5563;
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
}

.popup-calendari .franges {
  margin-top: 1rem;
}

body.popup-obert {
  overflow: hidden;
}

.mes {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
}

.mes__capcalera {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mes__titol {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.mes__nav {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.1rem;
  height: 2.25rem;
  width: 2.25rem;
}

.mes__nav:disabled {
  cursor: default;
  opacity: 0.3;
}

.mes__graella {
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(7, 1fr);
}

.mes__dia-setmana {
  color: #6b6b7b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0;
  text-align: center;
  text-transform: uppercase;
}

.dia {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 0;
  border-radius: 0.75rem;
  color: #b7b3c2;
  display: flex;
  flex-direction: column;
  font: inherit;
  justify-content: center;
  max-height: 3.4rem;
  padding: 0;
}

.dia--buit {
  visibility: hidden;
}

.dia--places {
  background: rgba(111, 50, 148, 0.08);
  color: var(--foreground);
  cursor: pointer;
  font-weight: 700;
}

.dia--places:hover {
  background: rgba(111, 50, 148, 0.16);
}

.dia--ple {
  background: #f2f1f5;
  color: #9a97a6;
  cursor: pointer;
  text-decoration: line-through;
}

.dia--triat {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.dia--seleccionat {
  background: var(--gradient);
  color: #fff;
}

.dia:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.dia__punts {
  display: flex;
  gap: 3px;
  height: 5px;
  margin-top: 3px;
}

.dia__punts span,
.llegenda-calendari i {
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  height: 5px;
  width: 5px;
}

.dia__punts span.poques,
.llegenda-calendari i.poques {
  background: var(--accent);
}

.dia__punts span.ple,
.llegenda-calendari i.ple {
  background: #c9c6d3;
}

.dia--seleccionat .dia__punts span {
  background: #fff;
}

.llegenda-calendari {
  color: #6b6b7b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 0.3rem 1rem;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.llegenda-calendari li {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.llegenda-calendari i {
  height: 7px;
  width: 7px;
}

@media (max-width: 30rem) {
  /* en mobil la llista pot ser llarga: el boto de continuar es queda a la vista */
  .pas-horari__accions {
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 40%);
    bottom: 0;
    margin-top: 0;
    padding: 1.25rem 0 0.75rem;
    position: sticky;
    z-index: 5;
  }

  .franja,
  .franja label,
  .franja-cal {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  /* en mobil el calendari surt de baix, com un full */
  .popup-calendari {
    align-items: flex-end;
    padding: 0;
  }

  .popup-calendari__panell {
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 92vh;
    width: 100%;
  }
}
