/* ============================================
   FerkoMedia Workshop Registration
   Kompletné CSS
   ============================================ */

/* Wrapper */
.fmRegWrap {
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px;
}

.fmRegForm {
  background: #fff;
  border-radius: 16px;
  padding: 35px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Skry duplicitný titulok */
.fmRegForm > h1.fmTitle,
.fmRegForm > .fmTitle {
  display: none;
}

/* ===== Riadky formulára ===== */
.fmRow {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.fmRow > label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 700;
  color: #047857;
}

.fmRow label.fmSpan2 {
  flex: 2;
}

.fmRow input,
.fmRow select {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  background: #f9fafb;
  transition: all 0.2s ease;
  color: #1f2937;
  width: 100%;
  box-sizing: border-box;
}

.fmRow input:focus,
.fmRow select:focus {
  outline: none;
  border-color: #047857;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
  background: #fff;
}

.fmRow input::placeholder {
  color: #9ca3af;
}

.fmRow select {
  cursor: pointer;
}

/* ===== Message row ===== */
.fmMsgRow {
  min-height: 28px;
  margin: 12px 0 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

.fmMsgRow .ok { color: #059669; }
.fmMsgRow .err, .fmMsgRow .bad { color: #dc2626; }
.fmMsgRow .muted, .fmMsgRow .warn { color: #d97706; }

.fmDomainInfo {
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 600;
}
.fmDomainInfo.is-ok { color: #059669; }
.fmDomainInfo.is-bad { color: #dc2626; }
.fmDomainInfo.is-warn { color: #d97706; }

/* ===== Kalendár wrapper ===== */
.fmCalWrap {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.fmCalLeft {
  flex: 1;
  min-width: 380px;
}

.fmCalRight {
  flex: 0 0 300px;
}

/* Calendar header */
.fmCalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.fmCalMonth {
  font-weight: 700;
  font-size: 1.25rem;
  color: #dc2626;
}

.fmCalNav {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fmCalNav:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Days of week header */
.fmCalDow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.fmCalDow span {
  display: block;
}

/* Calendar grid */
.fmCalGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.fmDay {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f9fafb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fmDay:not(:disabled):not(.is-none):not(.is-pad):hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Voľné */
.fmDay.is-free,
.fmDay.fm-free,
.fmDay.fmFree {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
  border-color: #a7f3d0;
}

.fmDay.is-free:hover,
.fmDay.fm-free:hover,
.fmDay.fmFree:hover {
  background: #a7f3d0;
}

/* Posledné miesta */
.fmDay.is-last,
.fmDay.fm-last,
.fmDay.fmLast {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  border-color: #fde68a;
}

.fmDay.is-last:hover,
.fmDay.fm-last:hover,
.fmDay.fmLast:hover {
  background: #fde68a;
}

/* Plné */
.fmDay.is-full,
.fmDay.fm-full,
.fmDay.fmFull {
  background: #fee2e2;
  color: #991b1b;
  cursor: not-allowed;
  border-color: #fecaca;
}

/* Prázdne/padding */
.fmDay.is-none,
.fmDay.is-pad,
.fmDay.fmBlank,
.fmDay:disabled {
  background: transparent;
  color: #d1d5db;
  cursor: default;
  border: none;
}

/* Vybraný */
.fmDay.is-active,
.fmDay.is-sel,
.fmDay.isActive {
  background: #047857 !important;
  color: #fff !important;
  font-weight: 700;
  border-color: #047857 !important;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
}

/* Legend */
.fmLegend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #6b7280;
}

.fmLegend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fmLeg,
.fmLegend i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.fmLeg.fmFree,
.fmFree.fmLeg {
  background: #d1fae5;
  border: 2px solid #059669;
}

.fmLeg.fmLast,
.fmLast.fmLeg {
  background: #fef3c7;
  border: 2px solid #d97706;
}

.fmLeg.fmFull,
.fmFull.fmLeg {
  background: #fee2e2;
  border: 2px solid #dc2626;
}

/* Right side - times box */
.fmCalBox {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
}

.fmCalBoxTitle {
  font-weight: 700;
  margin-bottom: 16px;
  color: #374151;
  font-size: 1.05rem;
}

.fmTimes,
[data-cal-times] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fmTime,
.fmTimeBtn {
  padding: 16px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: #fff;
}

.fmTime:hover,
.fmTimeBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.fmTime.is-full,
.fmTimeBtn.is-full,
.fmTime:disabled,
.fmTimeBtn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.fmTime.is-active,
.fmTime.is-sel,
.fmTime.isActive,
.fmTimeBtn.is-active,
.fmTimeBtn.is-sel,
.fmTimeBtn.isActive {
  background: linear-gradient(135deg, #047857, #059669) !important;
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
}

.fmPick,
[data-cal-pick] {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #e5e7eb;
  font-weight: 700;
  color: #047857;
  font-size: 1rem;
}

.fmTimesEmpty {
  color: #9ca3af;
  font-style: italic;
  padding: 16px 0;
  text-align: center;
}

/* Calendar error */
.fmCalErr {
  grid-column: 1 / -1;
  padding: 20px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  border: 1px solid #fecaca;
}

/* ===== CHECKBOXY - ZAROVNANÉ NAĽAVO ===== */
.fmChecks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0;
}

.fmCheck {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.fmCheck input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #047857;
  cursor: pointer;
  flex-shrink: 0;
}

.fmCheck span {
  color: #dc2626;
  font-size: 1rem;
  font-weight: 600;
}

.fmCheck a {
  color: #047857;
  text-decoration: underline;
  font-weight: 700;
}

.fmCheck a:hover {
  color: #065f46;
}

/* ===== Submit button ===== */
.fmSubmit {
  display: block;
  width: 100%;
  padding: 20px 30px;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: none;
  letter-spacing: 0.5px;
}

.fmSubmit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.fmSubmit:active {
  transform: translateY(-1px);
}

/* ===== Result message ===== */
.fmFormResult {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.fmFormResult:empty {
  display: none;
}

.fmFormResult.is-ok {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #059669;
}

.fmFormResult.is-err {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #dc2626;
}

.fmFormResult.is-warn {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #d97706;
}

.fmFormResult.is-info {
  background: #e0f2fe;
  color: #0369a1;
  border: 2px solid #0ea5e9;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .fmCalWrap {
    flex-direction: column;
  }
  
  .fmCalLeft {
    min-width: 100%;
  }
  
  .fmCalRight {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .fmRegWrap {
    padding: 10px;
  }
  
  .fmRegForm {
    padding: 20px;
  }
  
  .fmRow {
    flex-direction: column;
    gap: 16px;
  }
  
  .fmCalWrap {
    padding: 16px;
  }
  
  .fmCalGrid {
    gap: 4px;
  }
  
  .fmDay {
    font-size: 0.9rem;
  }
  
  .fmSubmit {
    padding: 16px 24px;
    font-size: 1.1rem;
  }
}
