/* Bossify Academy — Components */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--purple);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.92);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Light backgrounds — outline buttons (e.g. View All Events) */
.btn-outline-purple {
  background: transparent;
  color: var(--purple);
  border: 2px solid rgba(36, 7, 47, 0.22);
}
.btn-outline-purple:hover {
  border-color: var(--gold);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 13px; font-weight: 600; }

.w-100 { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
}
.pill i { color: var(--gold); }

/* Forms */
.form {
  max-width: 860px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(36, 7, 47, 0.88);
}
.req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(36, 7, 47, 0.12);
  background: #fff;
  color: rgba(18, 12, 54, 0.92);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}
.form-messages { margin: 14px 0 12px; }
.form-msg {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
}
.form-msg--loading {
  background: rgba(30,19,84,0.06);
  border: 1px solid rgba(30,19,84,0.12);
  color: rgba(30, 19, 84, 0.85);
}
.form-msg--error {
  background: rgba(176, 28, 28, 0.08);
  border: 1px solid rgba(176, 28, 28, 0.20);
  color: rgba(140, 16, 16, 0.95);
}
.form-msg--success {
  background: var(--cream);
  border: 1px solid rgba(200, 155, 60, 0.45);
  border-left: 4px solid var(--gold);
  color: var(--purple);
  box-shadow: var(--shadow-card);
}
.form-note { margin-top: 10px; font-size: 13px; color: rgba(30, 19, 84, 0.65); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 8, 32, 0.55);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  margin: 7vh auto 0;
  width: min(920px, calc(100vw - 28px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  border: 1px solid rgba(30,19,84,0.10);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(30,19,84,0.06), rgba(255,255,255,0));
}
.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: rgba(30, 19, 84, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.modal__close {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(30,19,84,0.12);
  background: #fff;
  color: rgba(30, 19, 84, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal__close:hover { transform: translateY(-1px); }
.modal__body { padding: 18px; }

/* AJAX form feedback (forms.js toggles .d-block) */
.form--contact .loading:not(.d-block),
.form--contact .error-message:not(.d-block),
.form--contact .sent-message:not(.d-block) {
  display: none;
}
.form--contact .loading,
.form--contact .error-message,
.form--contact .sent-message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.form--contact .loading.d-block {
  background: rgba(36, 7, 47, 0.06);
  color: var(--purple);
  border: 1px solid rgba(36, 7, 47, 0.08);
}
.form--contact .error-message.d-block {
  background: rgba(176, 28, 28, 0.08);
  color: #7a1212;
  border: 1px solid rgba(176, 28, 28, 0.22);
}
.form--contact .sent-message.d-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  color: var(--purple);
  border: 1px solid rgba(200, 155, 60, 0.45);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-card);
}
.form--contact .sent-message.d-block::before {
  content: '';
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%2324072F' d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-mid), var(--purple));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(36, 7, 47, 0.2);
}
