<style>
.appointment-module {
  max-width: 900px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  padding: 40px 20px;
}

.appointment-grid {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
}

.appointment-card {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.appointment-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.card-inner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 35px 30px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.appointment-card input:checked + .card-inner {
  border: 2px solid #1a1a1a;
  background-color: #fdfafb;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  padding: 34px 29px; 
}

.appointment-card:hover .card-inner {
  border-color: #d1d5db;
}
.appointment-card input:checked:hover + .card-inner {
  border-color: #000000;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
}

.custom-radio {
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: block;
  position: relative;
  transition: all 0.2s ease;
}

.appointment-card input:checked + .card-inner .custom-radio {
  border-color: #de3b4b;
}

.appointment-card input:checked + .card-inner .custom-radio::after {
  content: '';
  width: 12px;
  height: 12px;
  background: #de3b4b;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.date-big {
  font-size: 64px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: -2px;
  color: #1a1a1a;
}

.date-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date-month {
  font-size: 16px;
  font-weight: bold;
  color: #4b5563;
  margin-bottom: 2px;
}

.date-time {
  font-size: 15px;
  color: #6b7280;
}

.appointment-footer {
  text-align: center;
}

.info-line {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.check-icon {
  color: #6fcede;
  font-weight: bold;
  font-size: 16px;
}

.btn-submit-appointment {
  border: none;
  padding: 16px 45px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-submit-appointment:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

@media (max-width: 767px) {
  .appointment-grid {
    flex-direction: column;
    gap: 15px;
  }
  .card-inner {
    padding: 25px 20px;
  }
  .appointment-card input:checked + .card-inner {
    padding: 24px 19px;
  }
  .date-big {
    font-size: 56px;
  }
  .btn-submit-appointment {
    width: 100%;
    box-sizing: border-box;
  }
}

/* =========================================
   POP-UP MODAL STYLING
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  color: #000;
}

.modal-progress-wrap {
  margin-bottom: 30px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  width: 50%;
  height: 100%;
  background-color: #1a1a1a;
  border-radius: 10px;
}

.modal-title {
  font-size: 26px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.modal-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.selected-date-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 25px;
}

.selected-date-box strong {
  color: #1a1a1a;
}

.btn-modal-submit {
  width: 100%;
  border: none;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-bottom: 20px;
}

.btn-modal-submit:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.modal-footer-disclaimer {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
  text-align: center;
}

.modal-footer-disclaimer a {
  color: #6b7280;
  text-decoration: underline;
}

/* HIER SIND DIE ANPASSUNGEN FÜR DIE MOBILANSICHT */
@media (max-width: 600px) {
  .modal-content {
    padding: 45px 20px 30px 20px; /* Mehr Platz oben für X und Balken */
  }
  .modal-title {
    font-size: 22px;
  }
  .modal-close {
    display: block; /* Aktiviert das X auf Mobile */
    top: 15px;
    right: 20px;
    font-size: 26px;
  }
  .modal-progress-wrap {
    margin-right: 25px; /* Macht den Balken schmaler, um Platz für das X zu schaffen */
  }
}
</style>