:root {
  --phdui-gold:#e4ab0a;
  --phdui-bg:#090b14;
  --phdui-card:#111625;
  --phdui-card-2:#0d1120;
  --phdui-border:#2c3448;
  --phdui-text:#f5f7fb;
  --phdui-muted:#aeb8cc;
}

/* Keep the shortcode inside the Elementor container and center it normally.
 * Do not force left/transform because that shifts the layout when the widget
 * sits inside an Elementor column or while editing in Elementor. */
.elementor-widget-shortcode:has(.phdui-root),
.elementor-shortcode:has(.phdui-root),
.elementor-widget-container:has(> .phdui-root) {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}

.phdui-root {
  width:100% !important;
  max-width:1120px !important;
  margin:42px auto 64px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  box-sizing:border-box !important;
  color:var(--phdui-text) !important;
  font-family:"Kanit","Sarabun",Arial,sans-serif !important;
}

/* Elementor editor and frontend: prevent inherited floats/absolute alignment */
.elementor .phdui-root,
.elementor-edit-area .phdui-root,
.elementor-editor-active .phdui-root {
  float:none !important;
  inset:auto !important;
  translate:none !important;
}

.phdui-root * { box-sizing:border-box !important; }
.phdui-narrow { max-width:900px !important; }

.phdui-hero {
  width:100% !important;
  padding:40px 28px !important;
  margin:0 0 24px !important;
  text-align:center !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:20px !important;
  background:radial-gradient(circle at 50% 0,rgba(228,171,10,.18),transparent 48%),linear-gradient(145deg,#11131d,#0c0f19) !important;
  box-shadow:0 18px 50px rgba(0,0,0,.25) !important;
}
.phdui-icon { font-size:2.35rem !important; line-height:1 !important; margin-bottom:10px !important; }
.phdui-hero h1,
.phdui-root .phdui-hero h1 {
  margin:0 0 8px !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:clamp(1.75rem,4vw,2.25rem) !important;
  line-height:1.3 !important;
  font-weight:700 !important;
  text-align:center !important;
}
.phdui-hero p,
.phdui-root .phdui-hero p {
  max-width:740px !important;
  margin:0 auto !important;
  color:var(--phdui-muted) !important;
  -webkit-text-fill-color:var(--phdui-muted) !important;
  font-size:.98rem !important;
  line-height:1.8 !important;
  text-align:center !important;
}

.phdui-card {
  width:100% !important;
  padding:30px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:18px !important;
  background:var(--phdui-card) !important;
  box-shadow:0 14px 42px rgba(0,0,0,.2) !important;
}

.phdui-empty {
  min-height:250px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  border:1px dashed #36405a !important;
  border-radius:15px !important;
  background:var(--phdui-card-2) !important;
  padding:40px 22px !important;
}
.phdui-empty-icon { font-size:2.2rem !important; margin-bottom:10px !important; }
.phdui-empty h2,
.phdui-root .phdui-empty h2 {
  margin:0 0 8px !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:1.25rem !important;
  text-align:center !important;
}
.phdui-empty p,
.phdui-root .phdui-empty p {
  margin:0 !important;
  color:var(--phdui-muted) !important;
  -webkit-text-fill-color:var(--phdui-muted) !important;
  text-align:center !important;
}

.phdui-faq-group + .phdui-faq-group { margin-top:28px !important; }
.phdui-faq-group > h2,
.phdui-root .phdui-faq-group > h2 {
  margin:0 0 13px !important;
  color:var(--phdui-gold) !important;
  -webkit-text-fill-color:var(--phdui-gold) !important;
  font-size:1.12rem !important;
}
.phdui-accordion {
  overflow:hidden !important;
  margin-bottom:10px !important;
  border:1px solid var(--phdui-border) !important;
  border-radius:12px !important;
  background:#121827 !important;
}
.phdui-accordion-button {
  width:100% !important;
  min-height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  padding:15px 18px !important;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font:600 .98rem/1.55 "Kanit","Sarabun",sans-serif !important;
  text-align:left !important;
  cursor:pointer !important;
}
.phdui-chevron { color:var(--phdui-gold) !important; font-size:1.35rem !important; transition:transform .2s ease !important; }
.phdui-accordion-button[aria-expanded="true"] .phdui-chevron { transform:rotate(180deg) !important; }
.phdui-accordion-content {
  display:none !important;
  padding:0 18px 18px !important;
  border-top:1px solid var(--phdui-border) !important;
  color:#d8deea !important;
  -webkit-text-fill-color:#d8deea !important;
  line-height:1.85 !important;
}
.phdui-accordion.is-open .phdui-accordion-content { display:block !important; }
.phdui-accordion-content p,
.phdui-accordion-content li { color:#d8deea !important; -webkit-text-fill-color:#d8deea !important; }

.phdui-cta {
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  margin-top:20px !important;
  padding:24px 26px !important;
  border:1px solid rgba(228,171,10,.28) !important;
  border-radius:16px !important;
  background:linear-gradient(90deg,rgba(228,171,10,.12),rgba(17,22,37,.96)) !important;
}
.phdui-cta h2,
.phdui-root .phdui-cta h2 { margin:0 0 4px !important; color:#fff !important; -webkit-text-fill-color:#fff !important; font-size:1.12rem !important; }
.phdui-cta p,
.phdui-root .phdui-cta p { margin:0 !important; color:var(--phdui-muted) !important; -webkit-text-fill-color:var(--phdui-muted) !important; }
.phdui-button,
.phdui-root .phdui-button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  padding:11px 20px !important;
  border:0 !important;
  border-radius:10px !important;
  background:var(--phdui-gold) !important;
  color:#171100 !important;
  -webkit-text-fill-color:#171100 !important;
  font-weight:700 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}

.phdui-form-card { padding:30px !important; }
.phdui-form { width:100% !important; max-width:none !important; margin:0 !important; }
.phdui-grid-2 { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:16px !important; }
.phdui-field { margin-bottom:18px !important; }
.phdui-field label {
  display:block !important;
  margin:0 0 8px !important;
  color:#f4f6fb !important;
  -webkit-text-fill-color:#f4f6fb !important;
  font-size:.9rem !important;
  font-weight:500 !important;
}
.phdui-field label b { color:#ff665d !important; }
.phdui-root input.phd-input,
.phdui-root select.phd-input,
.phdui-root textarea.phd-input {
  width:100% !important;
  min-height:48px !important;
  margin:0 !important;
  padding:12px 14px !important;
  border:1px solid #343d55 !important;
  border-radius:9px !important;
  background:#181f32 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow:none !important;
  font:400 .94rem/1.5 "Kanit","Sarabun",sans-serif !important;
}
.phdui-root textarea.phd-input { min-height:165px !important; resize:vertical !important; }
.phdui-root .phd-input::placeholder { color:#91a0ba !important; -webkit-text-fill-color:#91a0ba !important; opacity:1 !important; }
.phdui-root select.phd-input option { background:#181f32 !important; color:#fff !important; }
.phdui-root .phdui-submit,
.phdui-root .phdui-search-button {
  width:100% !important;
  min-height:48px !important;
  border:0 !important;
  border-radius:9px !important;
  background:var(--phdui-gold) !important;
  color:#171100 !important;
  -webkit-text-fill-color:#171100 !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
.phdui-root .phdui-search-button { width:auto !important; min-width:150px !important; }
.phdui-track-result { margin-top:20px !important; color:#fff !important; }
.phdui-success { text-align:center !important; }
.phdui-success h2 { color:#fff !important; }
.phdui-success p { color:var(--phdui-muted) !important; }

/* Hide duplicate theme title and social sharing only on pages containing the override */
body.phdui-page .entry-header,
body.phdui-page article.page > header.entry-header,
body.phdui-page .ast-single-entry-banner,
body.phdui-page .entry-title,
body.phdui-page .seed-social,
body.phdui-page .seed-social-buttons,
body.phdui-page .ss-social-sharing,
body.phdui-page .heateor_sss_sharing_container {
  display:none !important;
}

@media (max-width:767px) {
  .phdui-root { width:100% !important; max-width:calc(100vw - 24px) !important; margin:26px auto 42px !important; left:auto !important; transform:none !important; }
  .phdui-hero { padding:30px 18px !important; }
  .phdui-card { padding:20px !important; }
  .phdui-grid-2 { grid-template-columns:1fr !important; gap:0 !important; }
  .phdui-cta { flex-direction:column !important; align-items:stretch !important; text-align:center !important; }
  .phdui-button { width:100% !important; }
  .phdui-root .phdui-search-button { width:100% !important; }
}
