/* ========== WEBINAR EMAIL MODAL RESPONSIVE STYLES ========== */

/* Desktop (1200px and above) */
#webinarEmailModal.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2050 !important;
}

#webinarEmailModal.modal.show .modal-dialog {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100vh - 1rem) !important;
  margin: 0.5rem auto !important;
  width: 100%;
  max-width: 550px;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.modal-body {
  background: #ffffff;
  padding: 0 !important;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
  width: 100%;
  box-sizing: border-box;
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  width: 30px;
  height: 30px;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.btn-close:hover {
  opacity: 1;
}

.btn-close i {
  color: #6b7280;
}

/* Modal header compact section */
.modal-header-compact {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.success-badge-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #f0f9ff;
  border: 2px solid #e0f2fe;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.badge-day {
  font-size: 14px;
  font-weight: 700;
  color: #3a4fe8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-title-compact {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  padding-top: 0.5rem;
}

/* Webinar info compact */
.webinar-info-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  color: #374151;
}

.info-item i {
  color: #3a4fe8;
  width: 18px;
  text-align: center;
}

.link-access {
  color: #3a4fe8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link-access:hover {
  color: #2d3fb8;
  text-decoration: underline;
}

/* Divider */
.divider-compact {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

/* Speaker section */
.speaker-section-compact {
  margin-top: 1.5rem;
}

.speaker-label-compact {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  margin-top: 0;
}

.speaker-card-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.speaker-photo-compact {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.speaker-photo-placeholder-compact {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
}

.speaker-info-compact {
  flex: 1;
  min-width: 0;
}

.speaker-name-compact {
  font-weight: 700;
  color: #111827;
  font-size: 15px;
  margin: 0;
}

.speaker-position-compact {
  color: #6b7280;
  font-size: 13px;
  margin: 0.25rem 0 0 0;
}

/* ========== MODAL RESPONSIVE STYLES ========== */

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
  #webinarEmailModal.modal.show .modal-dialog {
    max-width: 90vw;
    margin: 1rem auto !important;
  }

  .modal-body {
    padding: 1.5rem !important;
    max-height: calc(100vh - 60px);
  }

  .btn-close {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
  }

  .modal-header-compact {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .success-badge-compact {
    width: 70px;
    height: 70px;
  }

  .badge-day {
    font-size: 13px;
  }

  .modal-title-compact {
    font-size: 20px;
  }

  .info-item {
    font-size: 13px;
  }

  .speaker-label-compact {
    font-size: 11px;
    margin-bottom: 0.75rem;
  }

  .speaker-card-compact {
    gap: 0.75rem;
  }

  .speaker-photo-compact,
  .speaker-photo-placeholder-compact {
    width: 48px;
    height: 48px;
  }

  .speaker-name-compact {
    font-size: 14px;
  }

  .speaker-position-compact {
    font-size: 12px;
  }
}

/* Mobile (640px to 767px) */
@media (max-width: 767px) {
  #webinarEmailModal.modal.show .modal-dialog {
    max-width: 95vw;
    margin: 0.5rem auto !important;
  }

  .modal-body {
    padding: 1.25rem !important;
    max-height: calc(100vh - 50px);
  }

  .btn-close {
    font-size: 1rem;
    width: 24px;
    height: 24px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .modal-header-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .success-badge-compact {
    width: 60px;
    height: 60px;
  }

  .badge-day {
    font-size: 12px;
  }

  .modal-title-compact {
    font-size: 18px;
  }

  .webinar-info-compact {
    gap: 0.625rem;
    margin-bottom: 1.25rem;
  }

  .info-item {
    font-size: 12px;
  }

  .divider-compact {
    margin: 1rem 0;
  }

  .speaker-label-compact {
    font-size: 10px;
    margin-bottom: 0.625rem;
  }

  .speaker-card-compact {
    gap: 0.625rem;
  }

  .speaker-photo-compact,
  .speaker-photo-placeholder-compact {
    width: 44px;
    height: 44px;
  }

  .speaker-name-compact {
    font-size: 13px;
  }

  .speaker-position-compact {
    font-size: 11px;
  }
}

/* Small Mobile (480px to 639px) */
@media (max-width: 639px) {
  #webinarEmailModal.modal.show .modal-dialog {
    max-width: 100vw;
    margin: 0 !important;
  }

  .modal-body {
    padding: 1rem !important;
    max-height: calc(100vh - 40px);
    border-radius: 0;
  }

  .btn-close {
    font-size: 0.875rem;
    width: 20px;
    height: 20px;
    top: 0.5rem;
    right: 0.5rem;
  }

  .modal-header-compact {
    gap: 0.625rem;
    margin-bottom: 0.875rem;
  }

  .success-badge-compact {
    width: 56px;
    height: 56px;
    border-radius: 0.375rem;
  }

  .badge-day {
    font-size: 11px;
  }

  .modal-title-compact {
    font-size: 16px;
  }

  .webinar-info-compact {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .info-item {
    font-size: 11px;
  }

  .divider-compact {
    margin: 0.875rem 0;
  }

  .speaker-label-compact {
    font-size: 9px;
    margin-bottom: 0.5rem;
  }

  .speaker-card-compact {
    gap: 0.5rem;
  }

  .speaker-photo-compact,
  .speaker-photo-placeholder-compact {
    width: 40px;
    height: 40px;
  }

  .speaker-name-compact {
    font-size: 12px;
  }

  .speaker-position-compact {
    font-size: 10px;
  }
}

/* Extra Small Mobile (below 480px) */
@media (max-width: 479px) {
  #webinarEmailModal.modal.show .modal-dialog {
    max-width: 100vw;
  }

  .modal-body {
    padding: 0.75rem !important;
    max-height: calc(100vh - 30px);
  }

  .btn-close {
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    top: 0.375rem;
    right: 0.375rem;
  }

  .modal-header-compact {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .success-badge-compact {
    width: 50px;
    height: 50px;
  }

  .badge-day {
    font-size: 10px;
  }

  .modal-title-compact {
    font-size: 14px;
  }

  .webinar-info-compact {
    gap: 0.375rem;
    margin-bottom: 0.75rem;
  }

  .info-item {
    font-size: 10px;
  }

  .divider-compact {
    margin: 0.75rem 0;
  }

  .speaker-label-compact {
    font-size: 8px;
    margin-bottom: 0.375rem;
  }

  .speaker-card-compact {
    gap: 0.375rem;
  }

  .speaker-photo-compact,
  .speaker-photo-placeholder-compact {
    width: 36px;
    height: 36px;
  }

  .speaker-name-compact {
    font-size: 11px;
  }

  .speaker-position-compact {
    font-size: 9px;
  }
}
