/* ════════════════════════════════════════════════════════════════════════════
   IPSC INSIGHT - GDPR CONSENT STYLES
   ════════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════════
   GDPR CHECKBOX (in registration form)
   ════════════════════════════════════════════════════════════════════════════ */

.gdpr-checkbox-container {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.gdpr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.gdpr-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.gdpr-checkbox-text {
  font-size: 14px;
  line-height: 1.5;
  color: #495057;
}

.gdpr-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.gdpr-link:hover {
  border-bottom-color: #007bff;
}

/* ════════════════════════════════════════════════════════════════════════════
   GDPR MODAL
   ════════════════════════════════════════════════════════════════════════════ */

.gdpr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gdprFadeIn 0.2s ease-out;
}

@keyframes gdprFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gdpr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.gdpr-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: gdprSlideUp 0.3s ease-out;
}

@keyframes gdprSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.gdpr-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.gdpr-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #212529;
}

.gdpr-close-btn {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.gdpr-close-btn:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.gdpr-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.gdpr-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   GDPR CONTENT STYLING
   ════════════════════════════════════════════════════════════════════════════ */

.gdpr-content {
  color: #212529;
  line-height: 1.6;
}

.gdpr-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #212529;
}

.gdpr-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: #495057;
}

.gdpr-content p {
  margin: 12px 0;
  font-size: 15px;
  color: #495057;
}

.gdpr-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.gdpr-content li {
  margin: 8px 0;
  font-size: 15px;
  color: #495057;
}

.gdpr-content strong {
  font-weight: 600;
  color: #212529;
}

.gdpr-intro {
  background: #e7f3ff;
  border-left: 4px solid #007bff;
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 15px;
  color: #004085;
}

.gdpr-consent-box {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.gdpr-consent-box p {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: #856404;
}

.gdpr-consent-box ul {
  margin: 0;
}

.gdpr-consent-box li {
  color: #856404;
}

.gdpr-version {
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}

/* ════════════════════════════════════════════════════════════════════════════
   MODAL BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */

.gdpr-btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.gdpr-btn-decline {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.gdpr-btn-decline:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.gdpr-btn-accept {
  background: #28a745;
  color: white;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.gdpr-btn-accept:hover {
  background: #218838;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
  transform: translateY(-1px);
}

.gdpr-btn-accept:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .gdpr-modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .gdpr-modal-header {
    padding: 20px 16px 12px;
  }

  .gdpr-modal-header h2 {
    font-size: 20px;
  }

  .gdpr-modal-body {
    padding: 16px;
  }

  .gdpr-modal-footer {
    padding: 12px 16px;
    flex-direction: column-reverse;
  }

  .gdpr-btn {
    width: 100%;
    padding: 12px;
  }

  .gdpr-content h2 {
    font-size: 20px;
  }

  .gdpr-content h3 {
    font-size: 16px;
  }

  .gdpr-content p,
  .gdpr-content li {
    font-size: 14px;
  }

  .gdpr-checkbox-text {
    font-size: 13px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLLBAR STYLING (for modal body)
   ════════════════════════════════════════════════════════════════════════════ */

.gdpr-modal-body::-webkit-scrollbar {
  width: 8px;
}

.gdpr-modal-body::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.gdpr-modal-body::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}

.gdpr-modal-body::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}
