/* ── conference_detail.css ── */

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── loading ── */
#loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: var(--gray-100, #f5f7fa);
  gap: 14px;
  font-size: 13px;
  color: #888;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #dde5f0;
  border-top-color: var(--navy-mid, #003580);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── hero ── */
.conf-hero {
  background: linear-gradient(135deg, var(--navy-deep, #052952) 0%, var(--navy-mid, #003580) 100%);
  padding: 32px 8%;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.conf-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.07), transparent 70%);
  pointer-events: none;
}

.conf-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.18));
  display: none;
}

.conf-hero h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 12px 0 10px;
}

.conf-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.conf-meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── layout ── */
.conf-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  padding: 32px 8%;
  background: var(--gray-100, #f5f7fa);
}

@media (max-width: 768px) {
  .conf-layout {
    grid-template-columns: 1fr;
  }
}

/* ── cards ── */
.c-card {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,0.06));
  border: 1px solid rgba(0, 33, 71, 0.07);
  padding: 22px;
  margin-bottom: 18px;
}

.c-card:last-child {
  margin-bottom: 0;
}

.c-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy, #002147);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold, #c9a84c);
  display: inline-block;
}

.desc-text {
  font-size: 13px;
  line-height: 2;
  color: #555;
  text-align: justify;
}

/* ── table ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: #f5f7fa;
  padding: 9px 12px;
  text-align: right;
  border: 1px solid #dee2e6;
  font-weight: 600;
  color: #444;
}

td {
  padding: 9px 12px;
  border: 1px solid #eee;
  color: #333;
}

tr:hover td {
  background: #fafbff;
}

.empty {
  text-align: center;
  padding: 24px;
  color: #888;
  font-size: 13px;
}

/* ── fee box ── */
.fee-box {
  background: #f8faff;
  border: 1px solid #d0dcf5;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
}

.fee-row + .fee-row {
  border-top: 1px solid #e8edf8;
}

.fee-lbl {
  color: #6c757d;
}

.fee-val {
  font-weight: 700;
  color: var(--navy-mid, #003580);
}

.fee-val.free {
  color: #1e8449;
}

/* ── registration status ── */
.reg-status {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  line-height: 1.6;
}

.reg-status.show {
  display: block;
}

.reg-complete {
  background: #eafaf1;
  border: 1px solid #a9dfbf;
  color: #1e8449;
}

.reg-pending {
  background: #fef9e7;
  border: 1px solid #f9e79f;
  color: #7d6608;
}

.reg-note {
  background: #f0f4ff;
  border: 1px solid #c7d7f5;
  color: var(--navy-mid, #003580);
}

.reg-code {
  font-size: 11px;
  margin-top: 4px;
}

/* ── buttons ── */
.btn-reg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 18px;
  background: var(--navy-mid, #003580);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.btn-reg:hover:not(:disabled) {
  background: var(--navy, #002147);
}

.btn-reg:disabled {
  background: #9aabb8;
  cursor: not-allowed;
}

/* ── alert ── */
.c-alert {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

.c-alert.show {
  display: block;
}

.c-alert-ok {
  background: #eafaf1;
  border: 1px solid #a9dfbf;
  color: #1e8449;
}

.c-alert-err {
  background: #fdedec;
  border: 1px solid #f1948a;
  color: #c0392b;
}

/* ── guide list ── */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.guide-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--navy-mid, #003580);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}

.guide-item:hover {
  background: #e8eef7;
}

.empty-guide {
  color: #888;
  font-size: 13px;
  padding: 8px 0;
}

/* ── modal overlay ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 420px;
  max-width: 95%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #002147);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal-body {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

.modal-price {
  background: #f0f4ff;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  text-align: center;
}

.modal-price-lbl {
  font-size: 11px;
  color: #888;
}

.modal-price-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-mid, #003580);
  margin-top: 4px;
}

.modal-price-val.free {
  color: #1e8449;
}

.modal-footer {
  display: flex;
  gap: 10px;
}

.modal-footer button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm {
  background: var(--navy-mid, #003580);
  color: #fff;
  border: none;
  transition: background 0.2s;
}

.btn-confirm:hover:not(:disabled) {
  background: var(--navy, #002147);
}

.btn-confirm:disabled {
  background: #9aabb8;
  cursor: not-allowed;
}

.btn-cancel-m {
  background: none;
  border: 1px solid #dee2e6;
  color: #888;
}

.btn-cancel-m:hover {
  background: #f5f5f5;
}
