/* Modal Overlay */
.hapf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hapf-modal {
  background: #fff;
  border-radius: 0;
  max-width: 700px;
  width: 95%;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.25);
  padding: 32px 24px;
  position: relative;
  animation: slideUp 0.4s;
}
@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hapf-modal h2 {
  font-family: "Montserrat Alternates", Sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.hapf-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2c3e50;
  cursor: pointer;
  transition: color 0.2s;
}
.hapf-modal-close:hover {
  color: #3498db;
}
.hapf-profiles {
  display: flex;
  gap: 24px;
  margin: 32px 0 24px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.hapf-profile-card {
  background: #f4f8fb;
  border: 2px solid #e1eaf4;
  border-radius: 0;
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  text-align: center;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.hapf-profile-card:hover,
.hapf-profile-card.selected {
  border: 2px solid #3498db;
  background: #eaf6fd;
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.08);
}
.hapf-profile-card.selected {
  background: #e1eaf4;
  border-color: #3498db;
}

.hapf-profile-card h3 {
  font-family: "Montserrat Alternates", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.hapf-profile-card p {
  font-family: "Lato", Sans-serif;
}

.hapf-btn-submit {
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.hapf-btn-submit:disabled {
  background: #f4f8fb;
  border: 1px solid #e1eaf4;
  color: #7ec2d8;
  cursor: not-allowed;
}
.hapf-modal-error {
  color: #e74c3c;
  background: #fdecea;
  border-radius: 4px;
  padding: 12px 18px;
  margin-top: 18px;
  font-size: 1rem;
  text-align: center;
}
@media (max-width: 900px) {
  .hapf-modal {
    max-width: 98vw;
  }
  .hapf-profiles {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .hapf-modal {
    padding: 18px 6px;
    max-width: 100vw;
    min-height: 100vh;
    border-radius: 0;
  }
  .hapf-modal-close {
    top: 12px;
    right: 12px;
  }
}

/* Lecture mode box (checkout) */
.hapf-lecture-mode-box {
  background: #fff;
  border: 1px solid #d5d8dc;
  border-radius: 0;
  padding: 28px 24px;
  margin-bottom: 32px;
}
.hapf-lecture-mode-title {
  color: #000;
  font-size: 14px;
  font-weight: 700;

  margin-bottom: 30px;
}
.hapf-lecture-mode-content {
  color: #5d666f;
  font-size: 1.08rem;
  margin-bottom: 12px;
}
.hapf-lecture-mode-meta {
  color: #5b6670;
  font-size: 0.98rem;
  margin-top: 8px;
}
.hapf-lecture-mode-checkbox {
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: #69727d;
  accent-color: #7ec2d8;
  margin-right: 10px;
  transform: scale(1.2);
}
.hapf-lecture-mode-qty {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #7ec2d8;
  border-radius: 4px;
  margin-left: 10px;
  font-size: 1rem;
}
.hapf-lecture-mode-qtywrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.hapf-lecture-mode-total {
  color: #333434;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .hapf-lecture-mode-box {
    padding: 16px 6px;
  }
  .hapf-lecture-mode-title {
    font-size: 1.1rem;
  }
}
