/* Dark Theme for BEY Donations */

/* Import Lexend font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  font-family: monospace;
}

* {
  box-sizing: border-box;
}

/* Remove theme's main padding on donations page */
body .page-content { padding-top: 0 !important; padding-bottom: 0 !important; }
body main { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Main wrapper - dark background */
.bey-wrap {
  min-height: 100vh;
  background: #000000;
  padding: 60px 20px 40px !important;
  max-width: 100%;
  overflow-x: hidden;
}

/* Logo wrapper */
.bey-logo-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 24px !important;
}

.bey-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.15));
  transition: transform 0.3s ease;
}

.bey-logo:hover {
  transform: scale(1.02);
}

/* Card container - dark card */
.bey-card {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  background: #000000;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid #1a1a1a;
  overflow: hidden;
}

/* Typography */
.bey-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #ffffff;
  text-align: start;
  letter-spacing: -0.5px;
}

.bey-sub {
  color: #a0a0a0;
  font-size: 16px;
  margin: 0 0 32px;
  text-align: start;
  line-height: 1.6;
}

/* Form layout */
.bey-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bey-field {
  flex: 1;
  min-width: 240px;
}

.bey-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
}

.bey-field input,
.bey-field select,
.bey-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #1a1a1a;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.bey-field input:focus,
.bey-field select:focus,
.bey-field textarea:focus {
  border-color: white;
  background: #000000;
  /* box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); */
}

/* Amount pills */
.bey-amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bey-pill {
  border: 2px solid #1a1a1a;
  background: #000000;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.bey-pill:hover {
  border-color: #ffffff;
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
}

.bey-pill.active {
  border-color: white;
  /* background: linear-gradient(135deg, #7c3aed, #d946ef); */
  color: #ffffff;
  /* box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); */
}

/* Payment methods */
.bey-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.bey-method {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #1a1a1a;
  padding: 12px 16px;
  border-radius: 12px;
  background: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bey-method:not(.disabled):hover {
  border-color: #ffffff;
  background: #000000;
}

.bey-method.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bey-method input[type="radio"] {
  width: auto;
  margin: 0;
}

.bey-method span {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

/* Submit button */
.bey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  /* box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); */
  transition: all 0.3s ease;
  background: #D89B02;
}

.bey-btn:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4); */
}

.bey-btn:active {
  transform: translateY(0);
}

/* Messages */
.bey-warn {
  background: #1a0a0a;
  border: 2px solid #991b1b;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 16px 0;
  color: #fca5a5;
  font-weight: 500;
}

.bey-ok {
  background: #0a1a0a;
  border: 2px solid #166534;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 16px 0;
  color: #86efac;
  font-weight: 500;
}

.bey-note {
  font-size: 13px;
  color: #a0a0a0;
  margin-top: 12px;
}

/* Checkbox container */
.bey-checkbox-container {
  margin-top: 24px;
  padding: 16px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
}

.bey-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
}

.bey-checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #D89B02;
}

.bey-checkbox-label span {
  flex: 1;
}

.bey-checkbox-label a {
  color: #D89B02;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.bey-checkbox-label a:hover {
  color: #ffffff;
}

/* Actions area */
.bey-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 2px solid #1a1a1a;
}

#bey-submit {
  flex: 1;
  min-width: 200px;
}

/* Legal links */
.bey-legal {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.bey-legal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  background: #000000;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bey-legal a:hover {
  border-color: #ffffff;
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .bey-wrap {
    padding: 40px 16px 32px !important;
  }

  .bey-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .bey-title {
    font-size: 28px;
  }

  .bey-sub {
    font-size: 15px;
  }

  .bey-row {
    flex-direction: column;
  }

  .bey-field {
    min-width: 100%;
  }

  .bey-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bey-legal {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  #bey-submit {
    width: 100%;
  }
}

/* HARD OVERRIDE theme inline padding on <main> for donations pages */
body main[style*="padding"] {
  padding: 0 !important;
}

/* Some themes also pad the inner wrapper */
body .page-content {
  padding: 0 !important;
}
