/* Shared theme overrides — CAN reference style (loaded after each page's own <style>) */

/* Pill-shaped buttons everywhere (same shape as the hero "ขอใบเสนอราคา" button) */
.nav-cta,
.btn, .btn-primary, .btn-outline, .btn-ghost, .btn-navy, .btn-amber,
.prod-detail-btn, .prod-trial-btn,
.try-card-btn, .try-link, .contact-card-link, .split-card-link, .footer-parent-link,
.lang-btn, .lang-bar button, .lang-links button, .lang-links a,
.screen-tab, .ctab-btn, .ctag-more, .tab-btn,
#login-btn, #logout-btn,
button[type="submit"], input[type="submit"], input[type="button"] {
  border-radius: 999px !important;
}

/* Pill-shaped form fields; multi-line textareas get a large radius instead */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
select {
  border-radius: 999px !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
select { padding-left: 18px; padding-right: 18px; }
textarea { border-radius: 20px !important; padding-left: 18px; padding-right: 18px; }

/* Home product cards: "ทดลองใช้" = filled yellow, like the "ส่งข้อมูล" submit button */
.prod-trial-btn {
  background: var(--amber, #FFCF16) !important;
  border-color: var(--amber, #FFCF16) !important;
  color: var(--navy, #171B25) !important;
}
.prod-trial-btn:hover { background: var(--amber-dark, #EBBE00) !important; border-color: var(--amber-dark, #EBBE00) !important; }

/* Select: custom chevron so the arrow sits inside the pill instead of against the edge */
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23171B25'%3E%3Cpath d='M12 13.17 16.95 8.22l1.41 1.42L12 16 5.64 9.64l1.41-1.42z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 18px !important;
}

/* Hero CTA buttons: one size on every page */
.hero-actions > a, .hero-ctas > a, .hero .cta-row > .btn {
  display: inline-flex !important; align-items: center !important; justify-content: center; gap: 8px;
  height: 50px !important; padding: 0 28px !important; box-sizing: border-box;
  font-size: 15px !important; font-weight: 700 !important; line-height: 1 !important; border-radius: 999px !important; white-space: nowrap;
}
.hero-actions > a > span, .hero-ctas > a > span { line-height: 1; }
@media (max-width: 480px) { .hero-actions > a, .hero-ctas > a, .hero .cta-row > .btn { height: 48px !important; padding: 0 22px !important; font-size: 14.5px !important; } }

/* Unified hero title size on every inner page (product / about / news / careers / legal) */
h1.ph-title{font-size:clamp(2rem,4vw,2.8rem)!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.01em!important;}
