.broadcast-form {
  --form-radius: 1.25rem;
  --input-radius: 0.5rem;
  --accent-blue: #1e40af;
  --accent-blue-light: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
  --card-shadow:
    0 1px 3px rgba(30, 64, 175, 0.04),
    0 4px 12px rgba(30, 64, 175, 0.08),
    0 16px 40px rgba(30, 64, 175, 0.12);
}

.broadcast-form__container {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
}

.broadcast-form__header {
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.broadcast-form__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0;
  letter-spacing: -0.02em;
}

.broadcast-form__subtitle {
  color: #64748b;
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.broadcast-form__card {
  background: white;
  border-radius: var(--form-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.broadcast-form__section {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.broadcast-form__section:last-child {
  border-bottom: none;
}

.broadcast-form__section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.broadcast-form__section-number {
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.broadcast-form__section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

/* Channel selector */
.broadcast-form__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.broadcast-form__channel {
  position: relative;
}

.broadcast-form__channel input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.broadcast-form__channel-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--input-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.broadcast-form__channel-label:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.broadcast-form__channel input:checked + .broadcast-form__channel-label {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.broadcast-form__channel-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.625rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.broadcast-form__channel input:checked + .broadcast-form__channel-label .broadcast-form__channel-icon {
  background: var(--accent-gradient);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.broadcast-form__channel-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.broadcast-form__channel input:checked + .broadcast-form__channel-label .broadcast-form__channel-icon svg {
  color: white;
}

.broadcast-form__channel-text {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #475569;
  transition: color 0.2s ease;
}

.broadcast-form__channel input:checked + .broadcast-form__channel-label .broadcast-form__channel-text {
  color: var(--accent-blue);
}

/* Select dropdown */
.broadcast-form__select-wrapper {
  position: relative;
}

.broadcast-form__select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  pointer-events: none;
}

.broadcast-form__select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1e3a5f;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--input-radius);
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.broadcast-form__select:hover {
  border-color: #cbd5e1;
}

.broadcast-form__select:focus {
  outline: none;
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: white;
}

/* Rich text area */
.broadcast-form__message-area {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--input-radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.broadcast-form__message-area:focus-within {
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: white;
}

.broadcast-form__message-area trix-editor {
  min-height: 10rem;
  padding: 1rem;
  border: none;
  background: transparent;
}

.broadcast-form__message-area trix-toolbar {
  border-bottom: 1px solid #e2e8f0;
  background: white;
  padding: 0.5rem;
}

/* Submit section */
.broadcast-form__submit-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem;
}

.broadcast-form__recipient-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: var(--input-radius);
  border: 1px solid #e2e8f0;
}

.broadcast-form__recipient-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
}

.broadcast-form__recipient-text {
  font-size: 0.875rem;
  color: #475569;
}

.broadcast-form__recipient-count {
  font-weight: 700;
  color: var(--accent-blue);
}

.broadcast-form__submit {
  flex: 2;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: white;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--input-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.broadcast-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.35);
}

.broadcast-form__submit:active {
  transform: translateY(0);
}

.broadcast-form__actions {
  display: flex;
  gap: 0.75rem;
}

.broadcast-form__cancel {
  flex: 1;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #475569;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--input-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.broadcast-form__cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Responsive */
@media (max-width: 640px) {
  .broadcast-form__channels {
    grid-template-columns: 1fr;
  }

  .broadcast-form__title {
    font-size: 1.625rem;
  }

  .broadcast-form__actions {
    flex-direction: column-reverse;
  }

  .broadcast-form__submit,
  .broadcast-form__cancel {
    flex: none;
    width: 100%;
  }
}
