    :root {
      --primary: #003399;
      --primary-hover: #002266;
      --text-main: #111827;
      --text-sub: #374151;
      --text-muted: #6b7280;
      --bg-page: #Ffffff;
      --border-color: #e5e7eb;
      --badge-open-bg: #10b981;
      --badge-open-text: #ffffff;
      --badge-seminar-border: #0284c7;
      --badge-seminar-text: #0284c7;
      
      
        /* Typography */
      --fs-caption: 0.75rem;
      --t0-sm: 0.875rem;
      --t1-body: 1rem;
      --t2-h3: 1.15rem;
      --t3-h2: 1.5rem;
      --t4-display: 2.5rem;
    }

        * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

     body {
      font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-page);
      color: var(--text-main);
      line-height: 1.6;
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 24px;
    }

      /* Navbar */
    .navbar {
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
      padding: 12px 0;
    }
    .navbar .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      display: inline-block;
      width: 180px;
      max-width: 100%;
      line-height: 0;
    }
    
    .nav-lang {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-sub);
      text-decoration: none;
      transition: color 0.2s;
    }
    .nav-lang:hover {
      color: var(--primary);
    }

    /* Language Dropdown */
    .lang-dropdown {
      position: relative;
      display: inline-block;
    }

    .lang-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text-sub);
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .lang-btn:hover {
      border-color: #cbd5e1;
      color: var(--primary);
    }

    .lang-icon {
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    .arrow-icon {
      font-size: 0.75rem;
      color: var(--text-muted);
      transition: transform 0.2s ease;
    }

    .lang-dropdown.open .arrow-icon {
      transform: rotate(180deg);
    }

    .lang-menu {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      min-width: 140px;
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
      list-style: none;
      padding: 6px;
      z-index: 100;
    }

    .lang-dropdown.open .lang-menu {
      display: block;
    }

    .lang-item {
      display: block;
      width: 100%;
      text-align: left;
      padding: 8px 12px;
      border: none;
      background: none;
      font-size: 0.875rem;
      color: var(--text-sub);
      font-family: inherit;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .lang-item:hover {
      background: #f1f5f9;
      color: var(--primary);
    }

    .lang-item.active {
      font-weight: 600;
      color: var(--primary);
      background: #e0f2fe;
    }

    /*index*/

    /* Hero Section - Full Width Edge-to-Edge */
    .hero-fullwidth {
      position: relative;
      width: 100%;
      height: 440px;
      overflow: hidden;
      margin-bottom: 48px;
      background-color: #e2e8f0;
    }

    .hero-bg-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center bottom;
      z-index: 1;
    }

    .hero-container {
      position: relative;
      height: 100%;
      display: flex;
      align-items: center;
      z-index: 2;
    }

    .hero-card {
      background: #ffffff;
      padding: 36px 40px;
      border-radius: 0px;
      max-width: 540px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .hero-title {
      font-size: 2.2rem;
      font-weight: 700;
      line-height: 1.3;
      color: #003399;
      margin-bottom: 14px;
    }

    .hero-desc {
      font-size: 1.125rem;
      color: var(--text-sub);
      line-height: 1.6;
    }

    /* Filter Tabs */
    .filters {
      display: flex;
      gap: 12px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .filter-btn {
      padding: 8px 22px;
      border-radius: 9999px;
      border: 1px solid #1f2937;
      background: #ffffff;
      color: var(--text-sub);
      font-size: 1rem;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .filter-btn:hover {
      border-color: #cbd5e1;
    }
    .filter-btn.active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
    }

    /* Horizontal Event List Style (สไตล์รายการเรียงตรงแถวเดี่ยว) */
    .event-list {
      display: flex;
      flex-direction: column;
      margin-bottom: 80px;
      background: #ffffff;
      border-radius: 16px;
      /*border: 1px solid var(--border-color);*/
      overflow: hidden;
    }

    .event-item {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 28px;
      padding: 24px;
      border-bottom: 1px solid var(--border-color);
      text-decoration: none;
      color: inherit;
      background: #ffffff;
      transition: background-color 0.2s ease;
      align-items: center;
    }

    .event-item:last-child {
      border-bottom: none;
    }

    .event-item:hover {
      background-color: #f8fafc;
    }

    .event-img-wrap {
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 10px;
      overflow: hidden;
      background-color: #f1f5f9;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .event-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }

    .event-item:hover .event-img {
      transform: scale(1.02);
    }

    .event-info {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .event-title-index {
      font-size: var(--t2-h3);
      font-weight: 700;
      color: #0b192c;
      line-height: 1.4;
    }

    .event-item:hover .event-title-index {
      color: var(--primary);
    }

    .event-desc {
      font-size: var(--t0-sm);
      color: var(--text-sub);
      line-height: 1.6;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* Badges & Meta Tags */
    .event-tags {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin: 2px 0;
    }

    .tag-status {
      font-size: 0.75rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 4px;
      background: #10b981;
      color: #ffffff;
    }

    .tag-type {
      font-size: 0.75rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 4px;
      border: 1px solid #0284c7;
      color: #0284c7;
      background: #ffffff;
    }

    .event-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 0.85rem;
      color: var(--text-muted);
      padding-top: 6px;
    }

   .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-row i {
  font-size: 0.875rem;
  width: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.meta-row .fa-location-dot {
  align-self: flex-start;
  margin-top: 3px;
}

    /*------------------------------Page 1-----------------------------------/

    /*detail*/

    /* Back Button Wrapper */
    .back-nav-wrapper {
      width: 100%;
      max-width: 100%;
      margin: 0 0 16px 0;
      display: flex;
      justify-content: flex-start;
    }

    .btn-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text-sub);
      font-size: 0.95rem;
      font-weight: 500;
      text-decoration: none;
      padding: 6px 12px 6px 0;
      transition: all 0.2s ease;
    }

    .btn-back i {
      font-size: 0.85rem;
      transition: transform 0.2s ease;
    }

    .btn-back:hover {
      color: var(--primary);
    }

    .btn-back:hover i {
      transform: translateX(-4px);
    }

    /* Detail Page Layout */
    .event-detail-wrapper {
      padding: 32px 20px 60px;
    }

    /* Title (T4 - Bold) */
    .event-title {
      font-size: clamp(1.4rem, 4vw, 2rem);
      font-weight: 700;
      line-height: 1.35;
      color: #0b192c;
      text-align: center;
      margin: 0 auto 28px;
      max-width: 850px;
      word-break: break-word;
    }

    /* Media Banner 16:9 */
    .event-media-wrap {
      width: 90%;
      max-width: 820px;
      aspect-ratio: 16 / 9;
      margin: 0 auto 36px;
      background: #e2e8f0;
      border-radius: 8px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .event-media-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Content Grid */
    .event-content-grid {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 36px;
      align-items: start;
      max-width: 960px;
      margin: 0 auto;
    }

    /* Left Content */
    .section-block {
      margin-bottom: 36px;
    }
    .section-title {
      font-size: var(--t2-h3);
      font-weight: 700;
      color: #0b192c;
      margin-bottom: 16px;
    }
    .text-content {
      font-size: var(--t1-body);
      color: var(--text-sub);
      line-height: 1.75;
    }
    .text-content p {
      margin-bottom: 14px;
    }
    .event-points {
      list-style: none;
      padding-left: 4px;
      margin: 12px 0 16px;
    }
    .event-points li {
      margin-bottom: 6px;
    }
    .notice-text {
      font-size: var(--t0-sm);
      color: var(--text-muted);
      line-height: 1.65;
      margin-top: 18px;
    }

    .transport-list {
      list-style: disc;
      padding-left: 20px;
      color: var(--text-sub);
      font-size: var(--t1-body);
    }

    /* Right Sidebar Card */
    .event-sidebar-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 32px 24px;
      box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
      position: sticky;
      top: 24px;
    }

    /* Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-container {
      background: #ffffff;
      border-radius: 20px;
      max-width: 540px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      position: relative;
      transform: scale(0.95);
      transition: transform 0.25s ease;
    }

    .modal-overlay.active .modal-container {
      transform: scale(1);
    }

    .modal-header {
      padding: 24px 28px 16px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .modal-title-wrap h3 {
      font-size: 1.25rem;
      font-weight: 700;
      color: #0b192c;
      margin-bottom: 4px;
    }

    .modal-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .modal-close-btn {
      background: none;
      border: none;
      font-size: 1.25rem;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      transition: color 0.15s, background-color 0.15s;
    }

    .modal-close-btn:hover {
      color: #0b192c;
      background: #f1f5f9;
    }

    .modal-body {
      padding: 24px 28px;
    }

    /* Form Styles */
    .form-group-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }

    .form-group {
      margin-bottom: 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-label {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text-main);
    }

    .form-label .required {
      color: #ef4444;
    }

    .form-input, .form-select {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      font-family: inherit;
      font-size: 0.95rem;
      color: var(--text-main);
      background-color: #ffffff;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-input:focus, .form-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
    }

    .checkbox-group {
      margin: 20px 0 24px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .checkbox-group input[type="checkbox"] {
      margin-top: 4px;
      width: 17px;
      height: 17px;
      accent-color: var(--primary);
      cursor: pointer;
    }

    .checkbox-label {
      font-size: 0.85rem;
      color: var(--text-sub);
      line-height: 1.5;
      cursor: pointer;
    }

    .pdpa-link {
      color: var(--primary);
      text-decoration: underline;
      font-weight: 500;
    }

    .pdpa-link:hover {
      color: var(--primary-hover);
    }

    .btn-submit-form {
      display: block;
      width: 100%;
      padding: 12px 0;
      background: var(--primary);
      color: #ffffff;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      text-align: center;
      transition: background-color 0.2s ease;
    }

    .btn-submit-form:hover {
      background: var(--primary-hover);
    }

  /* Animation สำเร็จแบบ Smooth Fade-in & Slide-up */
  .success-view {
    display: none;
    text-align: center;
    padding: 20px 0 10px;
    animation: modalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


    /* เอฟเฟกต์ Pop เด้งดึ๋งนุ่มๆ ของวงกลมเครื่องหมายถูก */
  .success-icon-wrap {
    width: 72px;
    height: 72px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
    animation: iconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  }

    @keyframes iconPop {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    70% {
      transform: scale(1.15);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

    .success-title {
      font-size: 1.4rem;
      font-weight: 700;
      color: #0b192c;
      margin-bottom: 8px;
    }

    .success-desc {
      font-size: 0.95rem;
      color: var(--text-sub);
      margin-bottom: 24px;
      line-height: 1.6;
    }

    .btn-calendar-modal {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 12px 0;
      background: #ffffff;
      color: #1f2937;
      border: 1.5px solid var(--border-color);
      border-radius: 10px;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
      margin-bottom: 12px;
    }

    .btn-calendar-modal:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .btn-close-success {
      display: block;
      width: 100%;
      padding: 11px 0;
      background: none;
      border: none;
      font-size: 0.9rem;
      color: var(--text-muted);
      font-family: inherit;
      cursor: pointer;
      transition: color 0.15s;
    }

    .btn-close-success:hover {
      color: var(--text-main);
      text-decoration: underline;
    }

    /* Sticky Bottom Registration Bar */
    .sticky-bottom-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: 1px solid var(--border-color);
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
      padding: 14px 0;
      z-index: 1000;
    }
    .sticky-bar-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
    }
    .sticky-event-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .sticky-event-name {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 600px;
    }
    .sticky-event-meta {
      font-size: 0.85rem;
      color: var(--text-muted);
      display: flex;
      gap: 16px;
    }
    .sticky-event-meta span {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .btn-sticky-register {
      display: inline-block;
      padding: 12px 36px;
      background: var(--primary);
      color: #ffffff;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      white-space: nowrap;
      transition: background-color 0.2s ease, transform 0.1s ease;
      box-shadow: 0 4px 6px rgba(0, 51, 153, 0.25);
    }
    .btn-sticky-register:hover {
      background: var(--primary-hover);
    }
    .btn-sticky-register:active {
      transform: scale(0.98);
    }

    /* Footer */
    .footer {
      background: var(--primary);
      border-top: 1px solid var(--border-color);
      padding: 36px 0 32px;
      font-size: 0.85rem;
      color: #ffffff;
  
    }
    .footer-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 24px;
      border-bottom: 1px solid #f1f5f9;
      flex-wrap: wrap;
      gap: 16px;
    }
    .footer-links {
      display: flex;
      gap: 24px;
      list-style: none;
    }
    .footer-links a {
      color: var(--text-sub);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-links a:hover {
      color: var(--primary);
    }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 20px;
      font-size: 0.78rem;
      flex-wrap: wrap;
      gap: 12px;
    }

    /* เมื่อหน้าใดมีแถบ Sticky Bottom Bar ให้เพิ่ม Padding ด้านล่างของ Footer โดยอัตโนมัติ */
    body:has(.sticky-bottom-bar) .footer {
    padding-bottom: 110px; /* เว้นพื้นที่ด้านล่างเผื่อให้พ้นความสูงของแถบ Sticky */
    }

    /* Responsive */
    @media (max-width: 860px) {
      /*resposive index*/

        .event-item {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      .event-img-wrap {
        max-width: 100%;
      }
      .hero-fullwidth {
        height: auto;
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
      }
      .hero-bg-img {
        position: static;
        height: 220px;
        display: none;
      }
      .hero-container {
        padding: 0;
        width: 100%;
      }
      .hero-card {
        max-width: 100%;
        border-radius: 0;
        padding: 24px;
        box-shadow: none;
      }
      .hero-title {
        font-size: 1.65rem;
      }

      .filters {
        margin-bottom: 8px;
      }

      /*responsive detail*/
      
        .event-detail-wrapper {
        padding: 24px 16px 48px;
      }
      .event-content-grid {
        grid-template-columns: 1fr;
        gap: 28px;
      }
      .event-sidebar-card {
        position: static;
        order: -1;
      }
      .sticky-event-name {
        max-width: 320px;
      }
    }

    @media (max-width: 600px) {
      body {
        padding-bottom: 80px;
      }
      .sticky-event-info {
        display: none;
      }
      .btn-sticky-register {
        width: 100%;
      }
      .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
      }
      .modal-container {
        border-radius: 16px;
      }
      .modal-header, .modal-body {
        padding: 20px;
      }
    }

  /* เลือกได้หลายช่องทาง */
  .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 7px 10px;

  border: 1px solid #ddd;
  border-radius: 6px;

  background: #fff;

  font-size: 14px;
  line-height: 1.3;

  cursor: pointer;
}

.checkbox-item:hover {
  background: #f8f8f8;
}

.checkbox-item input[type="checkbox"] {
  width: 15px;
  height: 15px;

  flex-shrink: 0;
  margin: 0;

  cursor: pointer;
}

.checkbox-item span {
  cursor: pointer;
}

#sourceOtherBox {
  margin-top: 8px !important;
}

#sourceOtherDetail {
  height: 38px;
  padding: 7px 10px;
  font-size: 14px;
}

.error-message {
  margin-top: 6px;
  font-size: 13px;
  color: #dc2626;
}

.empty-events {
      padding: 50px 20px;
      text-align: center;
      color: #64748b;
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
    }

    .database-error {
      margin: 20px 0;
      padding: 14px 16px;
      border-radius: 10px;
      background: #fee2e2;
      color: #991b1b;
    }

    /* สีสถานะกิจกรรม */
    .tag-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.2;
      white-space: nowrap;
    }

    .tag-status::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex: 0 0 auto;
    }

    .tag-status.status-open {
      background: #dcfce7;
      color: #166534;
      border: 1px solid #bbf7d0;
    }

    .tag-status.status-open::before {
      background: #22c55e;
    }

    .tag-status.status-waiting {
      background: #fef3c7;
      color: #92400e;
      border: 1px solid #fde68a;
    }

    .tag-status.status-waiting::before {
      background: #f59e0b;
    }

    .tag-status.status-closed {
      background: #fee2e2;
      color: #991b1b;
      border: 1px solid #fecaca;
    }

    .tag-status.status-closed::before {
      background: #ef4444;
    }

    .tag-status.status-ended {
      background: #e5e7eb;
      color: #4b5563;
      border: 1px solid #d1d5db;
    }

    .tag-status.status-ended::before {
      background: #6b7280;
    }
    body {
            background: #f7f7f7;
        }

        .registration-page-wrapper {
            padding-top: 32px;
            padding-bottom: 64px;
        }

        .registration-page-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 320px;
            gap: 28px;
            align-items: start;
        }

        .registration-card,
        .registration-event-card {
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        }

        .registration-card {
            padding: 32px;
        }

        .registration-event-card {
            padding: 24px;
            position: sticky;
            top: 100px;
        }

        .registration-heading {
            margin: 0 0 6px;
            font-size: 1.65rem;
        }

        .registration-subtitle {
            margin: 0 0 28px;
            color: #666;
        }

        .registration-event-name {
            margin: 0 0 20px;
            font-size: 1.15rem;
            line-height: 1.5;
        }

        .registration-event-meta {
            display: grid;
            gap: 14px;
        }

        .registration-event-meta-row {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            line-height: 1.5;
        }

        .registration-event-meta-row i {
            width: 20px;
            margin-top: 3px;
        }

        .registration-error {
            display: none;
            margin-top: 8px;
            color: #b91c1c;
            font-size: 13px;
        }

        .registration-status-message {
            padding: 16px;
            border-radius: 12px;
            background: #fff4e5;
            color: #8a4b00;
            margin-bottom: 24px;
        }

        .success-view {
            display: none;
            text-align: center;
            padding: 24px 0 8px;
        }

        .success-icon-wrap {
            margin-left: auto;
            margin-right: auto;
        }

        .btn-back-detail {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 22px;
            text-decoration: none;
        }

        .btn-close-success {
            margin-top: 12px;
        }

        @media (max-width: 900px) {
            .registration-page-grid {
                grid-template-columns: 1fr;
            }

            .registration-event-card {
                position: static;
                order: -1;
            }
        }

        @media (max-width: 640px) {
            .registration-page-wrapper {
                padding-top: 20px;
            }

            .registration-card {
                padding: 20px;
            }
        }

    