/* The order site's own additions to the website's look (website.css): what the website does with inline
   styles, Vue or jQuery, and what the order site has that the website doesn't (Orders §7). */

/* What the website colours inline in its CMS texts. */
.story-name {
  color: #0199ff;
}
.program-detail .half.left p,
.content-column,
.content-column p,
.content-column li {
  color: #2b373e;
}

/* The summary beside the form follows the page, as the website's Vue sticky directive does. */
@media (min-width: 1201px) {
  .section-order-form .order-product {
    position: sticky;
    top: 110px;
  }
}

/* Errors: the website's red field (form p.error), with the message under it. */
form .field-error {
  display: block;
  color: #d5444a;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
form p.checkbox .field-error {
  margin-top: 2px;
}
.form-errors {
  border: 1px solid #fab3b3;
  background: #fffbfb;
  border-radius: 15px;
  padding: 15px 25px;
  margin-bottom: 30px;
}
.form-errors p {
  margin-bottom: 0;
  color: #d5444a;
}

/* The invisible bot check: a field people never see or reach, which bots fill in. */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The catalogue's empty state and filter form (the filters work without JavaScript too). */
.empty-state {
  grid-column: 1 / -1;
}
.empty-state p {
  color: #666;
}
.filters-sidebar .filters-apply {
  margin-top: 20px;
}
.js .filters-sidebar .filters-apply {
  display: none;
}

/* The thank-you page (Orders §7, „Už letííí…“). */
.section-thanks {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 100px;
}
.section-thanks .thanks-box {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 0 20px 0 rgba(86, 37, 128, 0.15);
  padding: 50px 40px;
}
.section-thanks p {
  font-size: 18px;
}

/* Facebook, drawn here instead of loading the Font Awesome kit. */
footer .top .social a svg {
  width: 29px;
  height: 29px;
  fill: #d6d6d6;
  transition: fill 400ms;
}
footer .top .social a:hover svg {
  fill: #562580;
}

/* Keyboard focus stays visible (Orders §12). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #fbbf00 !important;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The website positions its desktop e-shop badge with an inline style, which this site's CSP forbids. */
header nav .menu li.desktop-only a.eshop-link {
  position: relative;
  top: 5px;
  left: 20px;
}

/* The website sets this on the heading inline. */
.filters-sidebar h3.filters-grades {
  margin-top: 30px;
}

/* A programme's topic badges link to the catalogue filtered by that topic. */
a.topic-badge {
  text-decoration: none;
}
a.topic-badge:hover {
  text-decoration: underline;
}

/* The website sets this on the section inline. */
.section-order-form {
  text-align: left;
}
/* The form's section sits inside the page's container: on a phone, one gutter is enough. */
@media (max-width: 767px) {
  .container .section-order-form .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* The website's testimonial carousel (slick) sets each card's width; without it, as wide as the website's. */
.section-testimonials .item {
  max-width: 440px;
}
@media (max-width: 767px) {
  .section-testimonials .item {
    width: auto;
    max-width: none;
  }
}

/* --- The order form (Orders §7, pages/order-form.tsx): short labels, compact fields, three steps, and
   adding more before sending. Its own rules over the website's form look, in the website's colours. --- */
.order-form {
  --of-purple: #562580;
  --of-text: #2b373e;
  --of-muted: #6b7280;
  --of-line: #e4e0ea;
  --of-soft: #faf7fd;
  --of-tint: #f2ebf8;
  --of-radius: 12px;
}
.order-form fieldset.of-step {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}
.order-form .of-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: bold;
  color: var(--of-text);
  margin-bottom: 14px;
  padding: 0;
}
.order-form .of-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--of-purple);
  color: #fff;
  font-size: 13px;
}
.order-form p.of-field {
  margin: 0 0 14px;
}
.order-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--of-muted);
  margin-bottom: 6px;
}
form.order-form input[type="text"],
form.order-form input[type="email"],
form.order-form select,
form.order-form textarea,
.order-form .date-trigger {
  height: 46px;
  line-height: normal;
  padding: 0 14px;
  border: 1px solid var(--of-line);
  border-radius: var(--of-radius);
  background-color: #fff;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  color: var(--of-text);
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
form.order-form select {
  padding-right: 36px;
  background-position: right 14px center;
}
form.order-form textarea {
  height: auto;
  min-height: 90px;
  padding: 12px 14px;
  line-height: 1.5;
}
form.order-form input:focus,
form.order-form select:focus,
form.order-form textarea:focus,
.order-form .date-trigger:focus-visible {
  border-color: var(--of-purple);
  box-shadow: 0 0 0 3px rgba(86, 37, 128, 0.14);
}
form.order-form input::placeholder {
  color: #a3a8b0;
}
form.order-form p.error input[type="text"],
form.order-form p.error input[type="email"],
form.order-form p.error select,
form.order-form p.error textarea,
form.order-form p.error .date-trigger {
  border-color: #e88b8f;
  background: #fffbfb;
}
.order-form .of-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.order-form .of-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.order-form .of-grid-zip {
  grid-template-columns: 110px 1fr;
}
@media (max-width: 600px) {
  .order-form .of-grid,
  .order-form .of-grid-3 {
    grid-template-columns: 1fr;
  }
}
.order-form .of-link,
.order-form details > summary {
  border: 0;
  padding: 0;
  background: none;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--of-purple);
  cursor: pointer;
}
.order-form details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.order-form details > summary::-webkit-details-marker {
  display: none;
}
.order-form details > summary::before {
  content: "+";
  font-size: 15px;
  line-height: 1;
}
.order-form details[open] > summary::before {
  content: "−";
}
.order-form details[open] > summary {
  margin-bottom: 10px;
}
.order-form .of-muted {
  color: var(--of-muted);
  font-weight: normal;
}

/* Step 1: the IČO, and the school it found as a card; its fields fold away until they are needed. */
.order-form .of-status {
  display: block;
  font-size: 13px;
  color: var(--of-muted);
  margin-top: 6px;
}
.order-form .of-status[hidden],
.order-form .grade-hint[hidden],
.order-form .school-card[hidden],
.order-form .of-link[hidden] {
  display: none;
}
.js .order-form .school-fields.folded {
  display: none;
}
.order-form .school-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--of-radius);
  background: var(--of-soft);
  border: 1px solid var(--of-line);
}
.order-form .school-card strong {
  display: block;
  color: var(--of-text);
  font-size: 15px;
}
.order-form .school-card-address {
  display: block;
  font-size: 13px;
  color: var(--of-muted);
  margin-top: 2px;
}
.order-form .school-card::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: url("icons/check.svg") center / contain no-repeat;
  order: -1;
}
.order-form .school-card > div {
  flex: 1;
}

/* Step 2: a card per class, with its programme, and the date in a calendar. */
.order-form .class-list {
  display: grid;
  gap: 12px;
}
.order-form .class {
  position: relative;
  padding: 14px 16px 12px;
  border: 1px solid var(--of-line);
  border-radius: 14px;
  background: #fff;
}
.order-form .class.added {
  animation: of-added 900ms ease-out;
}
@keyframes of-added {
  from {
    background: var(--of-tint);
    border-color: var(--of-purple);
  }
}
.order-form .class-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-right: 28px;
}
.order-form .class-programme {
  font-weight: bold;
  color: var(--of-purple);
  font-size: 14px;
}
.order-form .class-price {
  font-size: 13px;
  color: var(--of-muted);
  white-space: nowrap;
}
.order-form button.remove-class {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--of-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.order-form button.remove-class:hover {
  background: var(--of-tint);
  color: var(--of-purple);
}
.order-form .class:only-child button.remove-class {
  display: none;
}
.order-form .class p.of-field {
  margin-bottom: 10px;
}
.order-form .grade-hint {
  display: block;
  color: var(--of-purple);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}
.order-form .class-teacher {
  margin-top: 2px;
}

.order-form .class-date-field {
  position: relative;
}
.js .order-form .class-date {
  display: none;
}
.order-form .date-trigger {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding-left: 40px;
  background: #fff url("icons/calendar.svg") 14px center / 16px 16px no-repeat;
  color: var(--of-purple);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-form .date-trigger.chosen {
  background-color: var(--of-tint);
  border-color: var(--of-purple);
}
.order-form .date-trigger:disabled {
  cursor: default;
  color: var(--of-muted);
  font-weight: normal;
  font-size: 13px;
  background-color: var(--of-soft);
}
.order-form .calendar {
  position: absolute;
  z-index: 50;
  top: calc(100% - 4px);
  right: 0;
  width: 290px;
  max-width: calc(100vw - 32px);
  padding: 14px;
  background: #fff;
  border: 1px solid var(--of-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(43, 26, 64, 0.18);
}
.order-form .calendar[hidden] {
  display: none;
}
.order-form .calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.order-form .calendar-month {
  font-size: 14px;
  color: var(--of-text);
}
.order-form .calendar-nav {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--of-soft);
  color: var(--of-purple);
  font-size: 18px;
  cursor: pointer;
}
.order-form .calendar-nav:disabled {
  visibility: hidden;
}
.order-form .calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  text-align: center;
}
.order-form .calendar-weekday {
  font-size: 11px;
  font-weight: 600;
  color: var(--of-muted);
  padding-bottom: 4px;
}
.order-form .calendar-day {
  height: 38px;
  line-height: 38px;
  border-radius: 10px;
  font-size: 14px;
}
.order-form .calendar-day.off {
  color: #c4c7cc;
}
.order-form button.calendar-day {
  border: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  background: var(--of-tint);
  color: var(--of-purple);
  cursor: pointer;
}
.order-form button.calendar-day:hover {
  background: #e4d6f1;
}
.order-form button.calendar-day.selected {
  background: var(--of-purple);
  color: #fff;
}
.order-form .calendar-clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: var(--of-muted);
  cursor: pointer;
}
.order-form .calendar-clear:hover {
  background: var(--of-soft);
}
@media (max-width: 600px) {
  .order-form .calendar {
    left: 0;
    right: auto;
    width: 100%;
  }
}

/* Step 3: the contact; the note folds away. */
.order-form .of-note {
  margin-top: 2px;
}

/* Before sending: another class, or another programme, into the same order. */
.order-form .of-add {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px dashed #cdbfdc;
  border-radius: 16px;
  background: var(--of-soft);
}
.order-form .of-add-title {
  font-weight: bold;
  font-size: 15px;
  color: var(--of-text);
  margin-bottom: 10px;
}
.order-form .of-add-sub {
  font-size: 13px;
  color: var(--of-muted);
  margin: 14px 0 8px;
}
.order-form .of-plus {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--of-purple);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}
.order-form .of-add-class,
.order-form .of-programme {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--of-line);
  border-radius: var(--of-radius);
  background: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--of-text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.order-form .of-add-class {
  padding: 10px 12px;
}
.order-form .of-add-class:hover,
.order-form .of-programme:hover {
  border-color: var(--of-purple);
  box-shadow: 0 4px 14px rgba(86, 37, 128, 0.1);
}
.order-form .of-programmes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-form .of-programmes li {
  margin: 0;
  padding: 0;
}
.order-form .of-programmes li::before {
  display: none;
}
.order-form .of-programme {
  height: 100%;
  padding: 8px 10px 8px 8px;
}
.order-form .of-programme img {
  flex: none;
  width: 48px;
  height: 33px;
  object-fit: cover;
  border-radius: 6px;
}
.order-form .of-programme-text {
  flex: 1;
  min-width: 0;
  display: grid;
  font-size: 13px;
  line-height: 1.35;
}
.order-form .of-programme-text .of-muted {
  font-size: 12px;
}
.order-form .of-programme .of-plus {
  width: 22px;
  height: 22px;
  font-size: 15px;
  background: var(--of-tint);
  color: var(--of-purple);
}
.order-form .of-programme:hover .of-plus {
  background: var(--of-purple);
  color: #fff;
}
@media (max-width: 600px) {
  .order-form .of-programmes {
    grid-template-columns: 1fr;
  }
}

/* Sending: the consents, then the total beside the button. */
.order-form p.checkbox {
  margin-bottom: 8px;
}
.order-form p.checkbox label {
  font-weight: normal;
  color: var(--of-text);
}
.order-form .of-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--of-line);
}
.order-form .of-send-total {
  margin: 0;
  font-size: 15px;
  color: var(--of-muted);
}
.order-form .of-send-total strong {
  color: var(--of-purple);
  font-size: 20px;
  margin-left: 4px;
}
@media (max-width: 600px) {
  .order-form .of-send-row .button {
    width: 100%;
  }
}

/* The summary beside the form: each programme with its classes, and the total. */
.order-summary .top {
  padding: 26px 30px 10px;
}
.order-summary h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.order-summary .summary-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-summary .summary-lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee9f3;
  font-size: 14px;
}
.order-summary .summary-lines li::before {
  display: none;
}
.order-summary .summary-name {
  font-weight: bold;
  color: #2b373e;
}
.order-summary .summary-count {
  grid-row: 2;
  font-size: 13px;
  color: #6b7280;
}
.order-summary .summary-sum {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-weight: bold;
  color: #2b373e;
  white-space: nowrap;
}
/* The website's gradient block below, white on purple, holds the total and the notes. */
.order-summary .bottom {
  padding: 20px 30px 24px;
}
.order-summary .summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}
.order-summary .summary-total .price {
  font-size: 24px;
}
.order-summary .bottom p {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.85;
}
.order-summary .bottom .summary-next {
  margin-top: 12px;
  opacity: 1;
}
