/*
Theme Name: Ocean Life Enjoy Health Extra 5M
Theme URI: https://www.ocean.co.th/our-products/health-insurance/enjoy-health-extra
Author: Kanjnat Wongsawat (Air) - Ocean Life
Author URI: https://lin.ee/OmRRewZ
Description: Premium WordPress & Elementor Landing Page Theme for Ocean Life Enjoy Health Extra (5 Million Plan). High-CRO lead generation page with hero video, presenter gallery, coverage tables, deductible explainer, FAQ, and a working AJAX lead form with a floating LINE button.
Version: 1.2.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oceanlife-enjoyhealth5m
Tags: landing-page, elementor, health-insurance, thai, lead-generation, mobile-first
*/

/* ---------- Design tokens ---------- */
:root {
  --ocean-blue: #003366;
  --ocean-primary: #0055A5;
  --ocean-cyan: #00A8E8;
  --ocean-orange: #FF9900;
  --line-green: #06C755;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
}

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

/* Prevent layout shift while Tailwind CDN parses classes on first paint */
[data-tw-pending] {
  visibility: hidden;
}

/* ---------- Buttons ---------- */
.ocean-btn-cta {
  background: linear-gradient(135deg, #FF9900 0%, #FF6F00 100%);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.ocean-btn-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 153, 0, 0.4);
}

/* ---------- Simple accordion (FAQ) - no JS required ---------- */
.ocean-faq-item summary {
  cursor: pointer;
  list-style: none;
}
.ocean-faq-item summary::-webkit-details-marker {
  display: none;
}
.ocean-faq-item[open] .ocean-faq-icon {
  transform: rotate(180deg);
}
.ocean-faq-icon {
  transition: transform 0.2s ease-in-out;
}

/* ---------- Lead form feedback states ---------- */
#oceanlife-form-message {
  display: none;
}
#oceanlife-form-message.is-visible {
  display: block;
}

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #003366;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Premium estimator ---------- */
.est-card {
  background: linear-gradient(135deg, #12305f 0%, #1a4585 60%, #2456a5 100%);
}
.est-label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.75rem;
}
.est-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 3px solid transparent;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.est-opt strong { font-weight: 600; font-size: 1.05rem; }
.est-opt small { font-size: 0.78rem; opacity: 0.8; }
.est-opt:hover { background: rgba(255, 255, 255, 0.18); }
.est-opt:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.est-gender.is-active,
.est-ded.is-active {
  background: #fff;
  color: #0f172a;
  border-color: #f5b81c;
}
.est-freq.is-active {
  background: #f5b81c;
  color: #1a2233;
  border-color: #f5b81c;
}
.est-range {
  -webkit-appearance: none;
  appearance: none;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}
.est-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f5b81c;
  border: 3px solid #fff;
  cursor: pointer;
}
.est-range::-moz-range-thumb {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f5b81c;
  border: 3px solid #fff;
  cursor: pointer;
}

/* ---------- Article typography ---------- */
.entry-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: 1.6rem; font-weight: 600; color: #0f172a; line-height: 1.35; margin-top: 2em; }
.entry-content h3 { font-size: 1.3rem; font-weight: 600; color: #0f172a; line-height: 1.4; margin-top: 1.75em; }
.entry-content h4 { font-size: 1.1rem; font-weight: 600; color: #0f172a; margin-top: 1.5em; }
.entry-content a { color: #0055A5; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #003366; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote {
  border-left: 4px solid #00A8E8;
  background: #f0f9ff;
  padding: 1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
  color: #0f172a;
}
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: 0.75rem; }
.entry-content iframe { aspect-ratio: 16 / 9; width: 100%; }
.entry-content figure figcaption { font-size: 0.85rem; color: #64748b; text-align: center; margin-top: 0.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid #e2e8f0; padding: 0.6rem 0.9rem; text-align: left; }
.entry-content th { background: #f1f5f9; font-weight: 600; }
.entry-content .alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.25rem; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Pagination ---------- */
.ocean-pagination ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.ocean-pagination a,
.ocean-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  text-decoration: none;
}
.ocean-pagination a:hover { border-color: #0055A5; color: #0055A5; }
.ocean-pagination .current { background: #0055A5; border-color: #0055A5; color: #fff; }
