/* -----------------------------------------
   Formular
----------------------------------------- */
.pligtdag-form {
  background: #fdfdfd;
  border: 2px solid #d0d0d0;
  border-radius: 12px;
  padding: 30px;
  max-width: 900px;
  width: 80%;
  margin: 30px auto;
  font-size: 18px;
  line-height: 1.5;
}

.pligtdag-form h3 {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
  color: #333;
}

.pligtdag-form label {
  display: block;
  background: #fff;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-size: 18px;
}

.pligtdag-form label:hover {
  background: #eef7ee;
  transform: scale(1.01);
}

.pligtdag-form input[type="checkbox"] {
  margin-right: 12px;
  transform: scale(1.3);
}

.pligtdag-counter {
  margin-top: 14px;
  font-weight: bold;
  font-size: 18px;
}

.pligtdag-counter.ok {
  color: #2d7a2d;
}

.pligtdag-counter.error {
  color: #c9302c;
}

.pligtdag-notice {
  margin: 15px 0 20px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 18px;
}

.pligtdag-notice.success {
  background: #e6f7e6;
  border-color: #a8d5a8;
}

.pligtdag-notice.error {
  background: #fdeaea;
  border-color: #f2a6a6;
}

/* -----------------------------------------
   Mine dage + Byt-knap
----------------------------------------- */
.pligtdag-dag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 14px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 18px;
}

.pligtdag-byt {
  background: #0073aa;
  color: #fff;
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
}

.pligtdag-byt:hover {
  background: #005f8d;
}

/* -----------------------------------------
   Modal
----------------------------------------- */
.pligtdag-modal {
  display: none;
}
.pligtdag-modal.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.pligtdag-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.pligtdag-modal__dialog {
  position: relative;
  background: #fff;
  max-width: 700px;
  width: 90%;
  max-height: 75%;
  margin: 5% auto;
  padding: 30px 20px 60px;
  border-radius: 12px;
  z-index: 10000;
  font-size: 18px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Luk-knap */
.pligtdag-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ddd;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.pligtdag-modal__close:hover {
  background: #bbb;
}

.pligtdag-modal__section {
  margin-bottom: 25px;
}

.pligtdag-card,
.pligtdag-option {
  background: #f7f7f7;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  font-size: 18px;
  text-align: left;
}

.pligtdag-option {
  display: block;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.pligtdag-option:hover {
  background: #eef7ee;
  transform: scale(1.01);
}

.pligtdag-option.is-selected {
  border-color: #2d7a2d;
  background: #e6f7e6;
}

.pligtdag-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pligtdag-btn {
  background: #2d7a2d;
  color: #fff;
  font-size: 18px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.pligtdag-btn[disabled] {
  background: #aaa;
  cursor: not-allowed;
}

.pligtdag-btn-secondary {
  background: #ddd;
  color: #333;
}

/* -----------------------------------------
   Responsiv tilpasning
----------------------------------------- */
@media (max-width: 768px) {
  .pligtdag-modal__dialog {
    width: 95%;
    max-height: 70%;
    margin: 10% auto;
    font-size: 16px;
    padding: 20px 15px 50px;
  }

  .pligtdag-btn {
    font-size: 16px;
    padding: 10px 16px;
  }

  .pligtdag-modal__close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
