/* ==========================================================================
   SANFUN CORPORATE PORTAL - IMPECCABLE DESIGN SYSTEM (LIGHT & VIBRANT ORANGE)
   ========================================================================== */

/* Google Fonts are preconnected and loaded directly in HTML <head> for zero render-blocking */
/* @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap'); */

/* --------------------------------------------------------------------------
   CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Clean Crisp White & Vibrant Orange */
  --bg-dark: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --accent-orange: #ff6200;
  --accent-orange-deep: #e05600;
  --accent-orange-light: #fff0e6;
  --accent-emerald: #10b981;
  --accent-danger: #f43f5e;

  --border-subtle: #e2e8f0;
  --border-glow: rgba(255, 98, 0, 0.35);
  --border-focus: #ff6200;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 12px 30px -5px rgba(255, 98, 0, 0.18);

  /* Typography */
  --font-heading: 'Outfit', 'Prompt', -apple-system, sans-serif;
  --font-body: 'Prompt', -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Container */
  --container-max-width: 1200px;
}

/* --------------------------------------------------------------------------
   BROWSER SURFACES & RESETS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  caret-color: var(--accent-orange);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Text Selection */
::selection {
  background-color: var(--accent-orange);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Custom Focus Ring */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION BAR
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  background-color: #ffffff71;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 98, 0, 0.15));
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.brand-logo-text-img {
  height: 38px;
  width: auto;
  justify-content: center;
  object-fit: contain;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-logo:hover .brand-logo-text-img {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 36px;
  }

  .brand-logo-text-img {
    height: 28px;
    max-width: 155px;
  }
}

@media (max-width: 380px) {
  .brand-logo-text-img {
    height: 24px;
    max-width: 120px;
  }
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-social-btn:hover {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border-color: rgba(255, 98, 0, 0.3);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-drawer-social,
.mobile-drawer-settings {
  display: none;
}

/* --------------------------------------------------------------------------
   BUTTONS & CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 98, 0, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 98, 0, 0.45);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.267) 0%, rgba(255, 255, 255, 0.671) 40%, rgb(255, 255, 255) 90%, rgb(255, 255, 255) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-ambient {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 98, 0, 0.15) 0%, rgba(255, 133, 51, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: var(--accent-orange-light);
  border: 1px solid rgba(255, 98, 0, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-logo-img {
  width: 100%;
  max-width: clamp(240px, 35vw, 360px);
  height: auto;
  margin: 0 auto 1.5rem auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(255, 98, 0, 0.22));
  transition: transform var(--transition-normal);
}

.hero-logo-img:hover {
  transform: scale(1.03);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-main);
  max-width: 68ch;
  margin: 0 auto 2.25rem auto;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   COMING SOON BADGE & ANIMATED PULSE DOT
   -------------------------------------------------------------------------- */
.coming-soon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2.25rem;
  background: linear-gradient(135deg, var(--accent-orange), #ff7a26);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(255, 98, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.coming-soon-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(255, 98, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Pulsing Status Dot */
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.coming-soon-subtext {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   DYNAMIC HERO CTA ACTION BUTTONS (REGISTER / EXAM / ANNOUNCE)
   -------------------------------------------------------------------------- */
.hero-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hero-btn-action {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 24px;
  padding: 1.2rem 2.85rem;
  color: #ffffff;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25);
}

.hero-btn-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Register Button: Signature Sanfun Fiery Orange */
.btn-hero-register {
  background: linear-gradient(135deg, #ff6200 0%, #ea580c 60%, #c2410c 100%);
  box-shadow: 0 15px 35px -5px rgba(255, 98, 0, 0.45), 0 0 25px rgba(255, 98, 0, 0.25);
}

.btn-hero-register:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px -5px rgba(255, 98, 0, 0.6), 0 0 35px rgba(255, 98, 0, 0.4);
}

/* Exam Button: Electric Ocean / Sky Blue */
.btn-hero-exam {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #075985 100%);
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.45), 0 0 25px rgba(2, 132, 199, 0.25);
}

.btn-hero-exam:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px -5px rgba(2, 132, 199, 0.6), 0 0 35px rgba(2, 132, 199, 0.4);
}

/* Announce Button: Royal Indigo / Sapphire */
.btn-hero-announce {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 60%, #1e1b4b 100%);
  box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.45), 0 0 25px rgba(79, 70, 229, 0.25);
}

.btn-hero-announce:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px -5px rgba(79, 70, 229, 0.6), 0 0 35px rgba(79, 70, 229, 0.4);
}

.hero-btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
}

.hero-btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
}

.hero-btn-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hero-btn-title svg {
  transition: transform 0.25s ease;
}

.hero-btn-action:hover .hero-btn-title svg {
  transform: translateX(4px);
}

.hero-btn-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin: 0;
}

/* --------------------------------------------------------------------------
   ABOUT CAMP SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: center;
}

.about-hashtag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.15rem;
  max-width: 65ch;
}

.about-highlight-box {
  background: var(--accent-orange-light);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
}

.about-highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-orange-deep);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   STATS SECTION
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-orange);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   FEATURES / SERVICES SECTION
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-orange-light);
  border: 1px solid rgba(255, 98, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   FAQ SECTION (ACCORDION)
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-search-box {
  margin-bottom: 2rem;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-search-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.15);
}

.faq-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: 0 4px 15px rgba(255, 98, 0, 0.08);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  padding-right: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-orange);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-normal);
}

.faq-answer {
  overflow: hidden;
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.faq-item.active .faq-body {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer {
  opacity: 1;
  padding-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION & FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-title {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.975rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  font-size: 0.825rem;
  color: var(--accent-danger);
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-control {
  border-color: var(--accent-danger);
}

.form-group.has-error .form-error {
  display: block;
}

/* Toast Alerts */
.toast-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.toast-alert.success {
  display: flex;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

.toast-alert.error {
  display: flex;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #b91c1c;
}

/* --------------------------------------------------------------------------
   FOOTER (SOLID DARK SLATE GROUNDING)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #f8fafc;
  border-top: 1px solid #1e293b;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Minimal Bar Layout (register.php, sanfun-pdpa.php) */
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 98, 0, 0.25));
  transition: transform var(--transition-fast);
}

.footer-logo:hover {
  transform: scale(1.06);
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 350px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.footer-content .footer-links {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link.active {
  color: var(--accent-orange);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copyright-text {
  flex: 1 1 500px;
  line-height: 1.6;
}

.footer-credit-link {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.footer-credit-link:hover {
  color: var(--accent-orange-deep);
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--accent-orange-light);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}


/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {

  html,
  body {
    overflow-x: hidden;
  }

  /* Hide hotline button on phone size */
  .reg-hotline,
  li.reg-hotline,
  li:has(.reg-hotline) {
    display: none !important;
  }

  /* Prevent iOS Safari auto-zoom on form inputs */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Container padding for mobile portrait */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Header & Navigation */
  .site-header {
    height: 68px;
  }

  .nav-container {
    height: 68px;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-logo-text-img {
    height: 26px;
  }

  /* Hide individual social icons from top bar on mobile to keep header clean */
  .nav-actions .nav-social-btn,
  .nav-actions .hotline-nav-btn,
  .nav-actions #headerHotlineBtn,
  .nav-actions .btn,
  .hotline-nav-btn,
  #headerHotlineBtn,
  .reg-hotline,
  li.reg-hotline,
  li:has(.reg-hotline) {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
  }

  /* Slide-down Mobile Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
    gap: 0.4rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .nav-link:hover,
  .nav-link.active {
    background: #fff7ed;
    color: var(--accent-orange);
  }

  .nav-link::after {
    display: none;
  }

  /* Effect Settings inside mobile drawer */
  .mobile-drawer-settings {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }

  .drawer-settings-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
  }

  .drawer-settings-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
  }

  .drawer-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
  }

  .drawer-settings-row:not(:last-child) {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    padding-bottom: 0.5rem;
    margin-bottom: 0.3rem;
  }

  .drawer-settings-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
  }

  /* Settings Dropdown positioning on mobile */
  .settings-dropdown {
    right: -42px;
    width: min(280px, calc(100vw - 2rem));
  }

  /* Social links inside mobile drawer */
  .mobile-drawer-social {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }

  .mobile-drawer-social .mobile-social-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    border-radius: var(--radius-full);
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
  }

  .mobile-drawer-social .mobile-social-link:hover {
    background: #fff7ed;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
  }

  /* Hero Section */
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-logo-img {
    max-width: min(280px, 80vw);
    height: auto;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto 0 auto;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    height: 50px;
    font-size: 1.05rem;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.25rem 0.85rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Timeline & Schedule */
  .timeline-container,
  .schedule-container {
    padding: 0 0.5rem;
  }

  .timeline-wrapper {
    padding-left: 1.75rem;
  }

  .timeline-line {
    left: 15px;
  }

  .timeline-step-number {
    left: 3px;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .timeline-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .timeline-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .timeline-date-badge {
    font-size: 0.82rem;
  }

  .timeline-card-title {
    font-size: 1.15rem;
  }

  /* Contact & Form Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
  }

  .contact-channel-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-content .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   VERTICAL INTERACTIVE TIMELINE / SCHEDULE STYLES
   -------------------------------------------------------------------------- */
.schedule-container {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.schedule-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.schedule-timeline {
  position: relative;
  padding: 1rem 0 2rem 0;
}

/* Central or Left Spine */
.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-orange) 0%, rgba(255, 98, 0, 0.45) 75%, rgba(255, 98, 0, 0.1) 100%);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Node Circle */
.timeline-node {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-orange);
  box-shadow: 0 0 0 6px rgba(255, 98, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(255, 98, 0, 0.22), 0 6px 18px rgba(255, 98, 0, 0.25);
  background: var(--accent-orange);
}

.timeline-step-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--transition-fast);
}

.timeline-step-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1.1;
  transition: color var(--transition-fast);
}

.timeline-item:hover .timeline-step-label,
.timeline-item:hover .timeline-step-num {
  color: #ffffff;
}

/* Card Content */
.timeline-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.timeline-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: monospace, var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(255, 98, 0, 0.08);
  border: 1px solid rgba(255, 98, 0, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.timeline-channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.timeline-channel-online {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.timeline-channel-onsite {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.timeline-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.timeline-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-onsite-location {
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.timeline-onsite-location strong {
  color: #0F172A;
}

.schedule-footer-action {
  text-align: center;
  margin-top: 3.5rem;
}

.schedule-back-btn-row,
.schedule-closing-row {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.schedule-closing-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.03em;
  margin: 0;
  padding: 0.5rem 1.5rem;
  background: var(--accent-orange-light);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .schedule-timeline::before {
    left: 20px;
  }

  .timeline-node {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-width: 2.5px;
    box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.12);
  }

  .timeline-step-label {
    display: none;
  }

  .timeline-step-num {
    font-size: 1rem;
  }

  .timeline-item {
    gap: 1rem;
  }

  .timeline-card {
    padding: 1.25rem 1.35rem;
  }

  .timeline-card-title {
    font-size: 1.1rem;
  }

  .timeline-date-tag {
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   PORTFOLIO CAROUSEL SECTION
   -------------------------------------------------------------------------- */
.portfolio-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portfolio-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-arrow-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 98, 0, 0.3);
}

.portfolio-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.portfolio-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  padding: 0.75rem 0.5rem 1.75rem 0.5rem !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portfolio-track.active-drag {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

.portfolio-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.portfolio-card {
  flex: 0 0 340px !important;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  scroll-snap-align: start !important;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.portfolio-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 370 / 450;
  /* ขนาดตามไฟล์ภาพ 370x450 px */
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}


.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 98, 0, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.portfolio-play-btn svg {
  margin-left: 3px;
}

.portfolio-card:hover .portfolio-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent-orange);
}

.portfolio-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.portfolio-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 0.02em;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.portfolio-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   RECAP BANNER SECTION
   -------------------------------------------------------------------------- */
.recap-banner-section {
  padding: 3.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.recap-banner-card {
  display: inline-block;
  padding: 2rem 3.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.recap-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(255, 98, 0, 0.15);
  border-color: rgba(255, 98, 0, 0.3);
}

.recap-banner-img {
  width: 100%;
  max-width: 840px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.05));
}

@media (max-width: 768px) {
  .recap-banner-card {
    padding: 1.25rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   PAGE LOADER ANIMATION (SANFUN23 ZOOM OUT -> ZOOM IN & FADE)
   -------------------------------------------------------------------------- */
html.loader-disabled body.is-loading,
body.is-loading {
  overflow: auto !important;
}

.page-loader {
  display: none !important;
}

html.loader-enabled .page-loader {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  overflow: hidden;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.loader-logo {
  display: block;
  width: clamp(200px, 35vw, 360px);
  height: auto;
  object-fit: contain;
  animation: loaderZoomOutIn 0.35s cubic-bezier(0.25, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  filter: drop-shadow(0 15px 35px rgba(255, 98, 0, 0.25));
}

@keyframes loaderZoomOutIn {
  0% {
    opacity: 1;
    transform: scale(1.0);
  }

  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* Loader Toggle Button & Global Toast */
.loader-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.loader-toggle-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-orange-light);
}

/* --------------------------------------------------------------------------
   SETTINGS GEAR & DROPDOWN MENU
   -------------------------------------------------------------------------- */
.settings-wrapper {
  position: relative;
  display: inline-block;
}

.settings-gear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-gear-btn:hover,
.settings-gear-btn.active {
  background: var(--accent-orange-light);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: rotate(45deg);
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 270px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all var(--transition-fast);
}

.settings-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0;
}

/* Switch Toggle (iOS style) */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.switch-slider {
  background-color: var(--accent-orange);
}

input:checked+.switch-slider:before {
  transform: translateX(22px);
}

/* Global Toast */
.global-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-main);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  z-index: 1000000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   FLYING BROOMSTICK ANIMATION (FAST + MOTION BLUR)
   -------------------------------------------------------------------------- */
.flying-broom {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: clamp(160px, 24vw, 260px);
  height: auto;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
}

.flying-broom img {
  width: 100%;
  height: auto;
  display: block;
}

.flying-broom.fly-right {
  left: -320px;
  animation: flyAcrossRight linear forwards;
}

.flying-broom.fly-left {
  right: -320px;
  animation: flyAcrossLeft linear forwards;
}

@keyframes flyAcrossRight {
  0% {
    opacity: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transform: translateX(0) translateY(0) rotate(-4deg);
  }

  12% {
    opacity: 1;
    filter: drop-shadow(0 15px 25px rgba(255, 98, 0, 0.25));
    transform: translateX(12vw) translateY(-10px) rotate(2deg);
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 20px 30px rgba(255, 98, 0, 0.3));
    transform: translateX(65vw) translateY(12px) rotate(-3deg);
  }

  88% {
    opacity: 1;
    filter: drop-shadow(0 15px 25px rgba(255, 98, 0, 0.25));
    transform: translateX(115vw) translateY(-5px) rotate(2deg);
  }

  100% {
    opacity: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transform: translateX(135vw) translateY(0) rotate(0deg);
  }
}

@keyframes flyAcrossLeft {
  0% {
    opacity: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transform: translateX(0) translateY(0) rotate(4deg);
  }

  12% {
    opacity: 1;
    filter: drop-shadow(0 15px 25px rgba(255, 98, 0, 0.25));
    transform: translateX(-12vw) translateY(10px) rotate(-2deg);
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 20px 30px rgba(255, 98, 0, 0.3));
    transform: translateX(-65vw) translateY(-12px) rotate(3deg);
  }

  88% {
    opacity: 1;
    filter: drop-shadow(0 15px 25px rgba(255, 98, 0, 0.25));
    transform: translateX(-115vw) translateY(5px) rotate(-2deg);
  }

  100% {
    opacity: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transform: translateX(-135vw) translateY(0) rotate(0deg);
  }
}

/* --------------------------------------------------------------------------
   SCHEDULE PAGE STYLES (schedule.php)
   -------------------------------------------------------------------------- */
.schedule-page-hero {
  padding: 130px 0 50px 0;
  background: linear-gradient(180deg, rgba(255, 98, 0, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
  text-align: center;
  position: relative;
}

.schedule-page-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.schedule-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   HOTLINE / CONTACT PAGE STYLES (contact.php)
   -------------------------------------------------------------------------- */
.hotline-hero-section {
  padding: 120px 0 50px 0;
  background: linear-gradient(180deg, rgba(255, 98, 0, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  text-align: center;
  position: relative;
}

.hotline-hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hotline-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 98, 0, 0.1);
  color: var(--accent-orange);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 98, 0, 0.2);
}

.hotline-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.25;
}

.hotline-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hotline-search-box {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hotline-search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.staff-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.staff-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 4px 20px rgba(255, 98, 0, 0.15);
}

.staff-section {
  padding: 30px 0 100px 0;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.staff-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 98, 0, 0.3);
  box-shadow: 0 12px 30px rgba(255, 98, 0, 0.12);
}

.staff-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.staff-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-orange);
  box-shadow: 0 6px 16px rgba(255, 98, 0, 0.2);
}

.staff-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all var(--transition-normal);
}

.staff-card:hover .staff-avatar-placeholder {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(255, 98, 0, 0.05);
}

.placeholder-upload-tag {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.85;
}

.staff-role-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(255, 98, 0, 0.3);
}

.staff-card-content {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-nickname {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.staff-fullname {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.staff-action-box {
  width: 100%;
}

.staff-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(255, 98, 0, 0.25);
}

.staff-call-btn:hover {
  background: #e05600;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 98, 0, 0.35);
  color: #ffffff;
}

.staff-call-btn.is-placeholder {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.staff-call-btn.is-placeholder:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   REGISTRATION SYSTEM - STYLES (IMPECCABLE CRAFT FLOOR)
   -------------------------------------------------------------------------- */

.reg-page-wrapper {
  padding-top: 100px;
  padding-bottom: 90px;
  background-color: var(--bg-surface);
  min-height: 100vh;
}

/* Quick Nav Sticky Bar */
.reg-sticky-nav {
  position: sticky;
  top: 75px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.reg-nav-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.25rem;
}

.reg-nav-scroll::-webkit-scrollbar {
  display: none;
}

.reg-nav-pill {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.95rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.reg-nav-pill:hover,
.reg-nav-pill.is-active {
  color: var(--accent-orange-deep);
  background: var(--accent-orange-light);
  border-color: rgba(255, 98, 0, 0.3);
}

/* Form Section Card */
.reg-section-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.reg-section-card:hover {
  box-shadow: var(--shadow-md);
}

.reg-section-header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reg-section-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reg-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-orange-light);
  color: var(--accent-orange-deep);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
}

.reg-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.reg-section-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Field Grid Layout */
.reg-field-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem 1rem;
}

.reg-field {
  display: flex;
  flex-direction: column;
}

.reg-field.col-12 {
  grid-column: span 12;
}

.reg-field.col-8 {
  grid-column: span 8;
}

.reg-field.col-6 {
  grid-column: span 6;
}

.reg-field.col-4 {
  grid-column: span 4;
}

.reg-field.col-3 {
  grid-column: span 3;
}

.reg-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-label .required-star {
  color: var(--accent-danger);
  margin-left: 0.2rem;
}

.reg-label .label-optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-orange);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: var(--accent-danger);
  background-color: #fff1f2;
}

.field-error-msg {
  font-size: 0.8rem;
  color: var(--accent-danger);
  margin-top: 0.35rem;
  display: none;
}

.field-error-msg.show {
  display: block;
}

/* Thai ID Validation Badge */
.id-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.id-status-badge.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.id-status-badge.badge-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.id-status-badge.badge-danger {
  background-color: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* Checkbox Items */
.reg-consent-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.reg-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  cursor: pointer;
}

.reg-check-item:last-child {
  margin-bottom: 0;
}

.reg-check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  cursor: pointer;
  margin-top: 0.2rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: grid;
  place-content: center;
}

.reg-check-item input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform var(--transition-fast);
  background-color: #ffffff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.reg-check-item input[type="checkbox"]:checked {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.reg-check-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.reg-check-item input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.2);
}

.reg-check-label {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  cursor: pointer;
}

.reg-check-label a {
  color: var(--accent-orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.reg-notice-box {
  background: var(--accent-orange-light);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: #7c2d12;
  line-height: 1.65;
}

/* Submit Section */
.reg-submit-wrapper {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.btn-reg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 3.2rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-deep) 100%);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 98, 0, 0.35);
  transition: all var(--transition-normal);
}

.btn-reg-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 98, 0, 0.45);
}

.btn-reg-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-reg-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Success Modal Overlay */
.reg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.reg-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.reg-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 2.75rem 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.92);
  transition: transform var(--transition-normal);
}

.reg-modal-overlay.is-visible .reg-modal-card {
  transform: scale(1);
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.sanfun-code-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px dashed var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.sanfun-code-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.sanfun-code-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange-deep);
  background: #ffffff;
  border: 1px solid rgba(255, 98, 0, 0.35);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  background: var(--accent-orange);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   IPAD & TABLET OPTIMIZATIONS (768px - 1024px Portrait & Landscape)
   -------------------------------------------------------------------------- */

/* Prevent iOS Safari automatic zoom on inputs */
@media (max-width: 1024px) {
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch Device Friendly Feedback & Momentum Scrolling */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  button,
  .btn,
  .btn-primary,
  .reg-nav-pill,
  .btn-copy-code,
  .radio-option-card,
  .check-option-card {
    touch-action: manipulation;
  }

  button:active,
  .btn:active,
  .btn-primary:active {
    transform: scale(0.98);
  }
}

/* iPad Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-container {
    padding: 10px 18px !important;
    gap: 0.5rem !important;
  }

  .brand-logo {
    gap: 0.45rem !important;
  }

  .brand-logo-img {
    height: 36px !important;
  }

  .brand-logo-text-img {
    height: 26px !important;
    max-width: 130px !important;
  }

  .nav-links {
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
  }

  .nav-links li {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .nav-link {
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    padding: 0.2rem 0 !important;
    display: inline-block !important;
  }

  .nav-actions {
    gap: 0.35rem !important;
  }

  .nav-social-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .container {
    max-width: 940px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .reg-section-card {
    padding: 2.25rem 2rem;
    border-radius: 20px;
  }

  .reg-grid {
    gap: 1.25rem;
  }

  .reg-field.col-3 {
    grid-column: span 6;
  }
  .reg-field.col-4 {
    grid-column: span 6;
  }
  .reg-field.col-6 {
    grid-column: span 6;
  }
  .reg-field.col-8 {
    grid-column: span 12;
  }

  .reg-input,
  .reg-select {
    min-height: 48px;
  }
}

/* Medium Laptops & Large Tablets (1200px - 1350px) */
@media (min-width: 1200px) and (max-width: 1350px) {
  .nav-links {
    gap: 1.15rem !important;
  }
  .nav-link {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
}

/* iPad Portrait (768px - 991px) - Clean 2-Column Balanced Form Grid */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .reg-page-wrapper {
    padding-top: 90px;
    padding-bottom: 4rem;
  }

  .reg-section-card {
    padding: 2rem 1.65rem;
    border-radius: 18px;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  }

  .reg-section-header {
    margin-bottom: 1.5rem;
  }

  .reg-section-title {
    font-size: 1.35rem;
  }

  .reg-sticky-nav {
    top: 72px;
    padding: 0.65rem 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .reg-nav-scroll {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .reg-nav-pill {
    font-size: 0.88rem;
    padding: 0.45rem 1rem;
    min-height: 40px;
  }

  .reg-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.15rem;
  }

  /* Balanced 2-Column on iPad Portrait */
  .reg-field.col-3,
  .reg-field.col-4,
  .reg-field.col-6 {
    grid-column: span 6 !important;
  }

  .reg-field.col-8,
  .reg-field.col-12 {
    grid-column: span 12 !important;
  }

  .reg-input,
  .reg-select,
  .reg-textarea {
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
  }

  .btn-reg-submit {
    height: 52px;
    font-size: 1.05rem;
    padding: 0 2rem;
    border-radius: 14px;
  }

  .reg-modal-card {
    width: 80% !important;
    max-width: 640px !important;
    max-height: 85dvh;
    padding: 2.25rem 2rem;
    border-radius: 22px;
  }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767px) {
  .reg-page-wrapper {
    padding-top: 80px;
    padding-bottom: 3rem;
  }

  .reg-section-card {
    padding: 1.35rem 1rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
  }

  .reg-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .reg-section-title {
    font-size: 1.2rem;
  }

  .reg-sticky-nav {
    top: 68px;
    padding: 0.5rem 0;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  }

  .reg-nav-scroll {
    padding: 0 0.5rem;
    gap: 0.4rem;
  }

  .reg-nav-pill {
    font-size: 0.82rem;
    padding: 0.38rem 0.85rem;
  }

  .reg-field {
    grid-column: span 12 !important;
  }

  .btn-reg-submit {
    width: 100%;
    height: 52px;
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  .reg-modal-card {
    width: 92% !important;
    max-width: 92% !important;
    max-height: 88dvh;
    overflow-y: auto;
    padding: 1.75rem 1.15rem;
    border-radius: 20px;
  }

  .sanfun-code-number {
    font-size: 1.6rem;
  }
}