/* ================================================================
   Program Detail Page — Stylesheet
   Dipindahkan dari @push('styles') di program-detail.blade.php
   ================================================================ */

:root {
  --detail-primary: #0067a3;
  --detail-accent: #E31E24;
  --glass-white: rgba(255, 255, 255, 0.82);
}

/* ── Hero ── */
.program-detail-hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 10% 20%, rgba(216, 241, 230, 0.46) 0.1%, rgba(233, 226, 226, 0.28) 90.1%);
  position: relative;
  overflow: hidden;
}
.program-detail-hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 40%; height: 40%;
  background: radial-gradient(circle, rgba(0,103,163,0.05) 0%, transparent 70%);
  z-index: 0;
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pd-tag {
  display: inline-flex;
  padding: 8px 18px;
  background: var(--glass-white);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  color: var(--detail-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pd-h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: #0f1c23;
  margin-bottom: 28px;
  letter-spacing: -1px;
}
.pd-p {
  font-size: 20px;
  color: #576871;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 90%;
}
.pd-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pd-stat-card {
  background: var(--glass-white);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  min-width: 160px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pd-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: var(--detail-primary);
}
.pd-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--detail-primary);
  margin-bottom: 4px;
}
.pd-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: #8da0a9;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Content Section ── */
.pd-content-section {
  padding: 100px 0;
  background: white;
}
.pd-main-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 80px;
}
.pd-section-h3 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 40px;
  color: #0f1c23;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pd-section-h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f1f5f9;
}

/* ── Focus Grid ── */
.pd-dynamic-section {
  margin-bottom: 80px;
}
.pd-section-desc {
  color: #64748b;
  margin: -20px 0 24px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
}
.pd-rich-text {
  color: #334155;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  margin-bottom: 48px;
}
.pd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.pd-content-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  background: white;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}
.pd-content-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--detail-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.pd-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 103, 163, 0.08);
  border-color: rgba(0, 103, 163, 0.15);
}
.pd-content-card:hover::before {
  opacity: 1;
}
.pd-number-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 103, 163, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 103, 163, 0.1);
  transition: all 0.3s;
}
.pd-number-badge span {
  font-size: 18px;
  font-weight: 900;
  color: var(--detail-primary);
  line-height: 1;
}
.pd-content-card:hover .pd-number-badge {
  background: var(--detail-primary);
  box-shadow: 0 8px 20px rgba(0, 103, 163, 0.25);
  transform: scale(1.05);
}
.pd-content-card:hover .pd-number-badge span {
  color: white;
}
.pd-card-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pd-card-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f1c23;
}
.pd-card-desc,
.pd-timeline-desc {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  margin-top: 6px;
}
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
}
.focus-box {
  padding: 32px;
  border-radius: 28px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.3s;
}
.focus-box:hover {
  background: white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.04);
  border-color: var(--detail-primary);
}
.focus-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--detail-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.focus-text {
  font-size: 17px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}

/* ── Benefit List ── */
.pd-benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 80px;
}
.pd-benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  font-weight: 700;
  color: #1e293b;
  transition: all 0.2s;
}
.pd-benefit-item:hover {
  border-color: #10b981;
  background: #f0fdf4;
}
.pd-check {
  width: 24px; height: 24px;
  min-width: 24px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Selection Timeline ── */
.selection-timeline {
  position: relative;
  padding-left: 20px;
  margin-bottom: 80px;
}
.selection-timeline::before {
  content: '';
  position: absolute;
  left: 48px; top: 0; bottom: 0;
  width: 2px;
  background: #f1f5f9;
}
.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.timeline-num {
  width: 56px; height: 56px;
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--detail-primary);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: all 0.3s;
}
.timeline-item:hover .timeline-num {
  background: var(--detail-primary);
  color: white;
  border-color: var(--detail-primary);
  transform: scale(1.1);
}
.timeline-content {
  padding-top: 14px;
  background: white;
  border-radius: 20px;
  flex: 1;
}
.timeline-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f1c23;
}

/* ── FAQ ── */
.pd-faq-item {
  background: #f8fafc;
  border: none;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.pd-faq-item:hover {
  background: white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  transform: translateY(-4px);
}
.pd-faq-q {
  font-size: 19px;
  font-weight: 800;
  color: #0f1c23;
  margin-bottom: 12px;
}

/* ── Batch Section Wrapper (Sticky Sidebar) ── */
.batch-section-wrapper {
  position: sticky;
  top: 100px;
  align-self: start;
}

/* ── Batch Card ── */
.batch-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,103,163,0.08);
}
.batch-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.status-active-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.batch-name {
  font-size: 28px;
  font-weight: 950;
  color: #0f1c23;
  letter-spacing: -0.5px;
}

/* ── Registration / Form Section ── */
.registration-section {
  padding: 120px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}
.registration-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,103,163,0.1), transparent);
}
.form-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0,103,163,0.06);
  border: 1px solid rgba(0,103,163,0.05);
  max-width: 900px;
  margin: 0 auto;
}
.form-header {
  text-align: center;
  margin-bottom: 32px;
}
.form-title {
  font-size: 28px;
  font-weight: 950;
  color: #0f1c23;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.form-subtitle {
  font-size: 16px;
  color: #64748b;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.form-full  { grid-column: span 6; }
.form-half  { grid-column: span 3; }
.form-third { grid-column: span 2; }
.form-section-label {
  grid-column: span 6;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}
.form-section-label .material-icons { color: var(--detail-primary); }
.form-section-label span.section-text {
  font-size: 14px;
  font-weight: 950;
  color: #0f1c23;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--detail-primary);
  margin-bottom: 8px;
}
.premium-input {
  width: 100%;
  background: #f8fafc;
  border: 2px solid #f1f5f9;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: #0f1c23;
  transition: all 0.3s;
  font-size: 14px;
}
.premium-input:focus {
  background: white;
  border-color: var(--detail-primary);
  box-shadow: 0 10px 30px rgba(0,103,163,0.08);
  outline: none;
}
.premium-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230067a3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 18px;
}

/* ── Upload Zone ── */
.upload-zone {
  position: relative;
  padding: 14px 10px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 1024px) {
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
}
.upload-zone .material-symbols-outlined {
  font-size: 24px;
  color: var(--detail-primary);
}
.upload-text {
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-zone:hover {
  border-color: var(--detail-primary);
  background: white;
  box-shadow: 0 20px 50px rgba(0,103,163,0.06);
  transform: translateY(-2px);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}
.upload-icon {
  width: 40px; height: 40px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center; justify-content: center;
  color: var(--detail-primary);
  box-shadow: 0 10px 25px rgba(0,103,163,0.08);
  transition: all 0.3s;
}
.upload-icon .material-symbols-outlined { font-size: 24px; }
.upload-zone:hover .upload-icon {
  background: var(--detail-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}
.upload-text {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  letter-spacing: -0.2px;
}
.upload-zone.file-selected {
  border-style: solid;
  border-color: #10b981;
  background: #f0fdf4;
}
.upload-zone.file-selected .upload-icon {
  background: #10b981;
  color: white;
  box-shadow: 0 10px 25px rgba(16,185,129,0.2);
}
.file-name-display {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  max-width: 90%;
  margin-top: 4px;
}

/* ── Tokutei Ginou Field Cards ── */
.tg-field-card:hover {
  border-color: rgba(0, 103, 163, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0,103,163,0.06);
}
.tg-field-card:hover .tg-field-icon {
  background: rgba(0, 103, 163, 0.1) !important;
  color: var(--detail-primary) !important;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .pd-hero-grid  { grid-template-columns: 1fr; gap: 40px; }
  .pd-h1         { font-size: 36px; }
  .pd-main-grid  { grid-template-columns: 1fr; gap: 40px; }
  .focus-grid    { grid-template-columns: 1fr; }
  .pd-benefit-list { grid-template-columns: 1fr; }
  .form-half, .form-third { grid-column: span 6; }
  .tg-field-card { padding: 12px; }
}

/* -- Dynamic Form Field Components -- */
.dynamic-field-wrapper { display: flex; flex-direction: column; }

.dynamic-radio-group,
.dynamic-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.dynamic-radio-label,
.dynamic-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 2px solid #f1f5f9;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s;
}

.dynamic-radio-label:hover,
.dynamic-checkbox-label:hover {
  border-color: var(--detail-primary);
  background: #f0f9ff;
}

.dynamic-radio-label input,
.dynamic-checkbox-label input {
  accent-color: var(--detail-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dynamic-field-error {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #E31E24;
}

.dynamic-field-hint {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.5;
}

.contents { display: contents; }

/* ── Dynamic Form: Section Header ── */
.df-section-header {
  margin: 24px 0 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0,103,163,0.06) 0%, rgba(0,103,163,0.02) 100%);
  border-left: 4px solid #0067a3;
  border-radius: 0 12px 12px 0;
}

.df-section-header:first-child {
  margin-top: 0;
}

.df-section-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,103,163,0.1);
  color: #0067a3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.df-section-title {
  font-size: 18px;
  font-weight: 900;
  color: #0067a3;
  letter-spacing: -0.3px;
}

.df-section-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  padding-left: 44px;
  line-height: 1.5;
}
