:root {
  /* Dark-mode theme vars (assumes these get inherited) */
  --aoe-bg-light: rgba(20,20,20,0.9);
  --aoe-border:    rgba(255,255,255,0.1);
  --aoe-accent:    #ec8639;
  --aoe-accent-hover: #b7602a;
  --aoe-text:      #eee;
}

/* ========================================================================== 
   Share Buttons 
   ========================================================================== */
.wcdsb-share-buttons {
  display: inline-flex;
  gap: 0.5rem;
  background: var(--aoe-bg-light);
  padding: 0.4rem;
  border: 1px solid var(--aoe-border);
  border-radius: 0.5rem;
}

.wcdsb-share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--aoe-accent);
  color: #fff;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wcdsb-share-buttons a:hover {
  background: var(--aoe-accent-hover);
}

/* Visually hide but keep accessible */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================================== 
   Modal Overlay & Positioning 
   ========================================================================== */
.wcdsb-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10000;
}

.wcdsb-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* ========================================================================== 
   Modal Content 
   ========================================================================== */
.wcdsb-modal-content {
  position: relative;
  background: var(--aoe-bg-light);
  border: 1px solid var(--aoe-border);
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  color: var(--aoe-text);
}

/* Close “×” button */
.wcdsb-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--aoe-text);
  cursor: pointer;
  transition: color 0.2s ease;
}
.wcdsb-close:hover {
  color: var(--aoe-accent-hover);
}

/* Modal title */
.wcdsb-modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--aoe-accent);
  border-bottom: 1px solid var(--aoe-border);
  padding-bottom: 0.5rem;
}

/* ========================================================================== 
   Form Labels & Fields 
   ========================================================================== */
#wcdsb-email-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

#wcdsb-email-form input,
#wcdsb-email-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: var(--aoe-bg-light);
  border: 1px solid var(--aoe-border);
  border-radius: 0.375rem;
  color: var(--aoe-text);
  font-size: 1rem;
  line-height: 1.4;
}

#wcdsb-email-form textarea {
  resize: vertical;
}

/* ========================================================================== 
   Submit Button 
   ========================================================================== */
#wcdsb-email-form button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: var(--aoe-accent);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#wcdsb-email-form button[type="submit"]:hover {
  background: var(--aoe-accent-hover);
}

/* ========================================================================== 
   Feedback Message 
   ========================================================================== */
.wcdsb-feedback {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--aoe-text);
}
