/* Manage Email Preferences Styles - Modern Firetalk Theme */

.email-pref-body {
  margin: 0;
  padding: 0;
  font-family: inherit;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.email-pref-hero {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(249, 115, 22, 0.08) 50%, rgba(14, 165, 233, 0.08) 100%), var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 44px 20px 48px;
  text-align: center;
  position: relative;
}

.email-pref-hero-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Preferences Container */
.email-pref-container {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: -24px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.email-pref-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
}

/* Receive All Checkbox */
.receive-all-wrap {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Custom Checkbox Labels */
.pref-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
}

.pref-check {
  display: none;
}

.custom-check-box {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  background-image: var(--flame-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.custom-check-box::after {
  content: "✔";
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.pref-check:not(:checked) + .custom-check-box {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-strong);
  box-shadow: none;
}

.pref-check:not(:checked) + .custom-check-box::after {
  display: none;
}

.pref-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bold-text {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

/* 3 Columns Grid */
.pref-columns-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.pref-col {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pref-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Submit Action Button */
.pref-action-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.btn-submit-prefs {
  padding: 10px 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary-color);
  background-image: var(--flame-gradient);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
}

.btn-submit-prefs:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* Mobile */
@media (max-width: 900px) {
  .email-pref-container {
    padding: 0 14px;
    margin: -16px auto 50px;
  }

  .email-pref-card {
    padding: 20px 16px;
  }

  .pref-columns-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .btn-submit-prefs {
    width: 100%;
    text-align: center;
  }
}
