/* CoolTechAir Premium Public Theme */
:root {
  --pub-navy: #07182e;
  --pub-navy2: #0e223b;
  --pub-blue: #087fce;
  --pub-cyan: #14b8d4;
  --pub-green: #16a36a;
  --pub-amber: #e9a319;
  --pub-ink: #0f1f34;
  --pub-muted: #64748b;
  --pub-line: #e2e8f0;
  --pub-soft: #f8fafc;
  --pub-white: #ffffff;
  
  /* Glowing / Soft shadows */
  --pub-shadow-sm: 0 2px 8px rgba(15, 31, 52, 0.04);
  --pub-shadow-md: 0 10px 25px -5px rgba(15, 31, 52, 0.08), 0 8px 16px -6px rgba(15, 31, 52, 0.05);
  --pub-shadow-lg: 0 20px 40px -10px rgba(15, 31, 52, 0.12), 0 12px 24px -8px rgba(15, 31, 52, 0.06);
  --pub-shadow-glow: 0 0 20px rgba(20, 184, 212, 0.15);
  
  --pub-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pub-radius: 12px;
  --pub-radius-sm: 8px;
}

/* Animations */
@keyframes pub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pub-pulse-glow {
  0%, 100% { box-shadow: 0 10px 25px -5px rgba(15, 31, 52, 0.08), 0 0 15px rgba(20, 184, 212, 0.1); }
  50% { box-shadow: 0 10px 25px -5px rgba(15, 31, 52, 0.08), 0 0 25px rgba(20, 184, 212, 0.3); }
}

@keyframes pub-shine {
  100% { left: 125%; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.public-page {
  margin: 0;
  background: var(--pub-soft);
  color: var(--pub-ink);
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body.public-page a {
  text-decoration: none;
  color: inherit;
  transition: var(--pub-transition);
}

body.public-page button,
body.public-page input,
body.public-page select,
body.public-page textarea {
  font: inherit;
}

/* Header & Glassmorphism Nav */
.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 12px 0;
  transition: var(--pub-transition);
}

.public-nav {
  width: min(1380px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: rgba(7, 24, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--pub-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  flex: 0 0 auto;
}

.public-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--pub-radius-sm);
  background: linear-gradient(135deg, var(--pub-cyan), var(--pub-blue));
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 184, 212, 0.3);
}

.public-brand-name {
  font-size: 19px;
  letter-spacing: -0.5px;
}

.public-brand-name span {
  color: var(--pub-cyan);
}

.public-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.public-links a {
  padding: 8px 8px;
  border-radius: var(--pub-radius-sm);
  font-size: 12.5px;
  color: #cbd5e1;
  white-space: nowrap;
  font-weight: 500;
}

.public-links a:hover,
.public-links a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.public-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search Form */
.public-search {
  height: 40px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--pub-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: var(--pub-transition);
}

.public-search:focus-within {
  border-color: var(--pub-cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(20, 184, 212, 0.15);
}

.public-search input {
  width: 155px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  transition: var(--pub-transition);
}

.public-search input:focus {
  width: 180px;
}

.public-search input::placeholder {
  color: #94a3b8;
}

.public-search button {
  width: 40px;
  border: 0;
  background: var(--pub-blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--pub-transition);
}

.public-search button:hover {
  background: #0970b5;
}

/* Login Link & Button */
.public-login {
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pub-radius-sm);
  padding: 0 14px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.public-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.public-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pub-radius-sm);
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  place-items: center;
}

.public-menu:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Main Container */
.public-main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

/* Hero Section */
.public-hero {
  background: linear-gradient(135deg, var(--pub-navy2) 0%, #081628 100%);
  color: #fff;
  border-radius: var(--pub-radius);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  min-height: 220px;
  box-shadow: var(--pub-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.public-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(20, 184, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.public-hero-copy {
  max-width: 680px;
  z-index: 1;
}

.public-eyebrow {
  font-family: 'Kanit', sans-serif;
  color: var(--pub-cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-hero h1 {
  font-family: 'Kanit', sans-serif;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.public-hero p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 14px 0 0;
}

.public-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 1;
}

/* Premium Buttons */
.pub-btn {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: var(--pub-radius-sm);
  background: #fff;
  color: #334155;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pub-transition);
  box-shadow: var(--pub-shadow-sm);
}

.pub-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
}

.pub-btn.primary {
  border-color: var(--pub-blue);
  background: linear-gradient(135deg, var(--pub-blue), #0970b5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 127, 206, 0.25);
}

.pub-btn.primary:hover {
  background: linear-gradient(135deg, #0970b5, #075f9a);
  border-color: #075f9a;
  box-shadow: 0 6px 20px rgba(8, 127, 206, 0.35);
}

.pub-btn.cyan {
  border-color: var(--pub-cyan);
  background: linear-gradient(135deg, var(--pub-cyan), #0e9fba);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 184, 212, 0.25);
}

.pub-btn.cyan:hover {
  background: linear-gradient(135deg, #0e9fba, #0c8297);
  border-color: #0c8297;
  box-shadow: 0 6px 20px rgba(20, 184, 212, 0.35);
}

.pub-btn.dark {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.pub-btn.dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.pub-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Sections */
.pub-section {
  background: #fff;
  border: 1px solid var(--pub-line);
  border-radius: var(--pub-radius);
  overflow: hidden;
  margin-top: 20px;
  box-shadow: var(--pub-shadow-sm);
  transition: var(--pub-transition);
  position: relative;
}

.pub-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pub-cyan) 0%, var(--pub-blue) 100%);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pub-section:hover::before {
  opacity: 1;
}

.pub-section:hover {
  box-shadow: var(--pub-shadow-md);
  border-color: rgba(20, 184, 212, 0.25);
}

.pub-section-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--pub-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
}

.pub-section-head h2 {
  font-family: 'Kanit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pub-navy);
}

.pub-section-head h2 i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
  border-radius: 8px;
  color: var(--pub-blue);
  font-size: 17px;
  flex-shrink: 0;
  border: 1px solid rgba(8,127,206,0.12);
}

.pub-section-head p {
  font-size: 12px;
  color: var(--pub-muted);
  margin: 4px 0 0;
}

.pub-section-body {
  padding: 24px;
}

/* Grid & Cards */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pub-card {
  border: 1px solid var(--pub-line);
  border-radius: var(--pub-radius);
  background: #fff;
  padding: 24px;
  min-width: 0;
  transition: var(--pub-transition);
  position: relative;
  overflow: hidden;
}

/* Gradient top border accent on cards */
.pub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pub-cyan), var(--pub-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pub-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: var(--pub-radius);
  box-shadow: 0 10px 30px rgba(8, 127, 206, 0.1);
  opacity: 0;
  transition: var(--pub-transition);
  pointer-events: none;
}

.pub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 212, 0.35);
  background: linear-gradient(160deg, #fafcff 0%, #ffffff 100%);
}

.pub-card:hover::before {
  opacity: 1;
}

.pub-card:hover::after {
  opacity: 1;
}

.pub-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
  color: var(--pub-blue);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: var(--pub-transition);
  border: 1px solid rgba(8, 127, 206, 0.12);
  box-shadow: 0 2px 8px rgba(8, 127, 206, 0.1);
}

.pub-card:hover .pub-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 14px rgba(8, 127, 206, 0.2);
}

.pub-card:nth-child(3n+2) .pub-card-icon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: var(--pub-green);
  border-color: rgba(22, 163, 106, 0.12);
  box-shadow: 0 2px 8px rgba(22, 163, 106, 0.1);
}

.pub-card:nth-child(3n) .pub-card-icon {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.12);
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.08);
}

.pub-card h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--pub-navy);
}

.pub-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--pub-muted);
  margin: 0;
}

/* Steps and Lists */
.pub-list {
  display: flex;
  flex-direction: column;
}

.pub-list-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pub-line);
  transition: var(--pub-transition);
}

.pub-list-item:hover {
  background: rgba(248, 250, 252, 0.5);
  padding-left: 8px;
}

.pub-list-item:last-child {
  border-bottom: 0;
}

.pub-list-no {
  width: 34px;
  height: 34px;
  border-radius: var(--pub-radius-sm);
  background: #e6f5ff;
  color: var(--pub-blue);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(8, 127, 206, 0.05);
}

.pub-list-item h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--pub-navy);
}

.pub-list-item p {
  font-size: 12.5px;
  color: var(--pub-muted);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Details Accordion */
.pub-faq details {
  border-bottom: 1px solid var(--pub-line);
  padding: 16px 0;
  transition: var(--pub-transition);
}

.pub-faq details:last-child {
  border-bottom: 0;
}

.pub-faq summary {
  font-family: 'Kanit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--pub-navy);
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.pub-faq summary::-webkit-details-marker {
  display: none;
}

.pub-faq summary::after {
  content: '\ea60';
  font-family: 'tabler-icons';
  font-size: 16px;
  color: var(--pub-muted);
  transition: transform 0.25s ease;
}

.pub-faq details[open] summary::after {
  transform: rotate(180deg);
  color: var(--pub-blue);
}

.pub-faq p {
  font-size: 13.5px;
  color: var(--pub-muted);
  line-height: 1.65;
  margin: 12px 0 0;
  padding-left: 4px;
  animation: slide-up 0.25s ease-out;
}

/* Fields & Forms */
.pub-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pub-field label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.pub-input {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: var(--pub-radius-sm);
  background: #fff;
  color: #0f172a;
  padding: 8px 12px;
  outline: 0;
  font-size: 13.5px;
  transition: var(--pub-transition);
}

.pub-input:focus {
  border-color: var(--pub-blue);
  box-shadow: 0 0 0 3px rgba(8, 127, 206, 0.15);
}

textarea.pub-input {
  height: auto;
  min-height: 90px;
  resize: vertical;
}

.pub-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pub-field.full {
  grid-column: 1 / -1;
}

/* Empty States */
.pub-empty {
  text-align: center;
  padding: 48px 16px;
  color: #94a3b8;
}

.pub-empty i {
  font-size: 36px;
  color: #cbd5e1;
}

.pub-empty strong {
  display: block;
  color: #64748b;
  margin: 8px 0 4px;
  font-size: 14px;
}

.pub-empty span {
  font-size: 12px;
}

/* Footer styling */
.public-footer {
  background: var(--pub-navy);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.public-footer-inner {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  min-height: 80px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.public-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.public-footer a {
  color: #94a3b8;
}

.public-footer a:hover {
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 1320px) {
  .public-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    background: var(--pub-navy);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--pub-radius);
    padding: 12px;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 99;
  }
  
  .public-links.open {
    display: grid;
  }
  
  .public-menu {
    display: grid;
  }
  
  .pub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .public-nav {
    width: calc(100% - 24px);
    min-height: 64px;
  }
  
  .public-brand-name {
    font-size: 16px;
  }
  
  .public-search {
    display: none;
  }
  
  .public-login span {
    display: none;
  }
  
  .public-links {
    left: 12px;
    right: 12px;
    top: 74px;
    grid-template-columns: 1fr 1fr;
  }
  
  .public-main {
    width: calc(100% - 24px);
    padding: 20px 0 40px;
  }
  
  .public-hero {
    display: block;
    padding: 28px 24px;
    min-height: auto;
  }
  
  .public-hero h1 {
    font-size: 28px;
  }
  
  .public-hero-actions {
    justify-content: flex-start;
    margin-top: 20px;
  }
  
  .pub-grid {
    grid-template-columns: 1fr;
  }
  
  .pub-section-body {
    padding: 16px;
  }
  
  .pub-form-grid {
    grid-template-columns: 1fr;
  }
  
  .pub-field.full {
    grid-column: auto;
  }
  
  .public-footer-inner {
    width: calc(100% - 24px);
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }
}

@media (max-width: 430px) {
  .public-links {
    grid-template-columns: 1fr;
  }
  
  .public-hero h1 {
    font-size: 24px;
  }
  
  .public-hero-actions .pub-btn {
    width: 100%;
  }
  
  .pub-section-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
}

/* Nav Contrast and Branding Fixes */
body.public-page .public-header .public-brand,
body.public-page .public-header .public-brand-name {
  color: #fff;
}

body.public-page .public-header .public-brand-name span {
  color: var(--pub-cyan);
}

body.public-page .public-header .public-links a {
  color: #94a3b8;
}

body.public-page .public-header .public-links a:hover,
body.public-page .public-header .public-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.public-page .public-header .public-login,
body.public-page .public-header .public-search input {
  color: #fff;
}

body.public-page .public-header .public-search input::placeholder {
  color: #64748b;
}
