*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-mint: #E6F7F5;
  --bg-mint-light: #F0F9F8;
  --teal: #1FA3B1;
  --teal-dark: #1488A2;
  --teal-deep: #008BA3;
  --teal-light: #4ED1C5;
  --teal-mid: #26A69A;
  --text-dark: #2D4A48;
  --text-muted: #5A8A86;
  --text-grey: #666;
  --white: #fff;
  --gradient-hero: linear-gradient(160deg, #4ED1C5 0%, #26A69A 45%, #1488A2 100%);
  --gradient-btn: linear-gradient(90deg, #66D3CC, #1E99AD);
  --gradient-sidebar: linear-gradient(180deg, #3AB8B0 0%, #1A8A96 100%);
  --radius-card: 24px;
  --radius-input: 10px;
  --radius-pill: 50px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  min-height: 100vh;
  color: var(--text-dark);
}

/* ── Language Bar ── */
.lang-bar {
  position: fixed;
  top: 20px;
  right: 32px;
  z-index: 1000;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}
.lang-bar a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 2px 4px;
  transition: color .2s;
}
.lang-bar a.active {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  font-weight: 600;
}
.lang-bar span { color: #b0d0cc; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 14px 16px;
  font-size: 12px;
  color: #8ab8b4;
}
.site-footer.right { text-align: right; padding-right: 32px; }

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon svg { width: 28px; height: 28px; }
.logo-text {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* ── Auth Layout (Login / Register) ── */
.auth-page {
  background: var(--bg-mint);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-layout {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 56px 24px;
  gap: 48px;
  min-height: calc(100vh - 44px);
}
.auth-hero {
  flex: 0 0 48%;
  max-width: 560px;
  background: var(--gradient-hero);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-hero .logo { margin-bottom: auto; }
.auth-hero-content {
  margin: auto 0;
  padding: 20px 0;
}
.auth-hero h2 {
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}
.auth-hero p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.5;
}
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px 20px 0;
  max-width: 480px;
}
.auth-form-panel h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}
.auth-form-panel .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  display: flex;
  pointer-events: none;
}
.input-icon-wrap input {
  padding-left: 42px;
}
.input-icon-wrap.has-eye input { padding-right: 44px; }
.input-icon-wrap .eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  display: flex;
  padding: 0;
}
.input-icon-wrap .eye-btn:hover { color: var(--teal); }

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d8ece9;
  border-radius: var(--radius-input);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input::placeholder { color: #b0c8c4; }
.form-group input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,163,177,.12);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-wrap input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}
.forgot-link {
  font-size: 13px;
  color: var(--teal);
  text-decoration: underline;
  font-weight: 500;
}

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-btn);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn-primary:hover { opacity: .92; }
.btn-primary:active { transform: scale(.99); }
a.btn-primary {
  display: block;
  text-align: center;
  text-decoration: none;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: #b0c8c4;
  font-size: 13px;
}
.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d8ece9;
}

.btn-outline {
  width: 100%;
  padding: 13px 24px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background .2s;
}
.btn-outline strong { color: var(--teal); font-weight: 700; }
.btn-outline:hover { background: rgba(31,163,177,.06); }

/* Register specific */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 16px;
}
.section-title.teal { color: var(--teal); }

.nominee-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.nominee-row input {
  border-radius: var(--radius-input) 0 0 var(--radius-input);
  border-right: none;
}
.verify-btn {
  padding: 0 20px;
  background: var(--gradient-btn);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.verify-btn:hover { opacity: .9; }

.pw-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--teal);
  margin-top: 6px;
}
.pw-hint svg { width: 14px; height: 14px; fill: var(--teal); }

.terms-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-grey);
  margin: 24px 0;
  line-height: 1.5;
}
.terms-wrap input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Popup / Dashboard ── */
.popup-page {
  background: linear-gradient(180deg, #3AB8B0 0%, #1A6B65 50%, #0D4440 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.popup-page .site-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  left: auto;
  color: rgba(255,255,255,.45);
  background: transparent;
  border: none;
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 40px 0;
}
.popup-header .lang-bar { position: static; }
.popup-header .lang-bar a { color: var(--white); }
.popup-header .lang-bar a.active {
  color: var(--white);
  border-bottom-color: var(--white);
}
.popup-header .lang-bar span { color: rgba(255,255,255,.4); }

.popup-bg-text {
  padding: 40px 48px;
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 360px;
}
.popup-skip {
  position: fixed;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  z-index: 300;
}
.popup-skip a {
  display: inline-block;
  padding: 10px 28px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: var(--radius-pill);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: background .2s;
}
.popup-skip a:hover { background: rgba(255,255,255,.1); }

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px 60px;
  z-index: 200;
}
.popup-modal {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 36px 32px;
  max-width: 820px;
  width: 100%;
  box-shadow: var(--shadow-card);
}
.popup-modal h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 28px;
}
.popup-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.popup-card-img {
  width: 100%;
  height: 150px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}
.popup-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  line-height: 1.4;
}
.popup-card p {
  font-size: 13px;
  color: var(--text-grey);
  line-height: 1.6;
  margin-bottom: 16px;
}
.btn-modal {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--gradient-btn);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-modal:hover { opacity: .9; }

/* ── App Layout (Sidebar pages) ── */
.app-page {
  background: var(--bg-mint);
  min-height: 100vh;
  display: flex;
}
.app-sidebar {
  width: 130px;
  min-height: 100vh;
  background: var(--gradient-sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 24px;
  border-radius: 0 20px 20px 0;
  flex-shrink: 0;
}
.sidebar-logo {
  margin-bottom: 32px;
  padding: 0 12px;
}
.sidebar-logo svg { width: 36px; height: 36px; }
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  flex: 1;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  transition: color .2s;
  position: relative;
}
.nav-item svg { width: 26px; height: 26px; fill: currentColor; }
.nav-item:hover { color: var(--white); }
.nav-item.active {
  color: var(--teal);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  right: -4px;
  top: 2px;
  bottom: 2px;
  background: var(--white);
  border-radius: 0 18px 18px 0;
  z-index: 0;
}
.nav-item.active svg,
.nav-item.active span { position: relative; z-index: 1; }
.nav-item.active svg { fill: var(--teal); }

.app-main {
  flex: 1;
  padding: 28px 40px 32px;
  position: relative;
}
.app-main .lang-bar { position: absolute; top: 20px; right: 32px; }
.app-main h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  margin-top: 16px;
  margin-bottom: 28px;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.service-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 13px;
  color: var(--text-grey);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

/* Bookings table */
.bookings-table {
  width: 100%;
}
.bookings-header {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr 1fr;
  gap: 16px;
  padding: 0 20px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}
.booking-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  font-size: 14px;
  color: var(--text-dark);
}
.provider-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.provider-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.status-confirmed { background: #d4f0ed; color: var(--teal); }
.status-awaiting { background: #fde8d8; color: #e07b3a; }
.status-finished { background: #e8eaed; color: #6b7280; }

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.article-card-body {
  padding: 20px;
}
.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
  line-height: 1.35;
}
.article-card p {
  font-size: 13px;
  color: var(--text-grey);
  line-height: 1.6;
  margin-bottom: 12px;
}
.article-meta {
  font-size: 12px;
  color: #aaa;
}
a.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
a.article-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
a.article-card-link:hover h3 {
  color: var(--teal-deep);
}

/* Article detail */
.article-detail {
  max-width: 760px;
  margin-top: 16px;
}
.article-detail-back {
  display: inline-block;
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 24px;
  font-weight: 600;
}
.article-detail-back:hover {
  text-decoration: underline;
}
.article-detail-hero {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}
.article-detail-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.article-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-detail-meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 28px;
}
.article-detail-body {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.article-detail-body p {
  font-size: 15px;
  color: var(--text-grey);
  line-height: 1.75;
  margin-bottom: 18px;
}
.article-detail-body p:last-child {
  margin-bottom: 0;
}

/* ── Questionnaire ── */
.q-page {
  background: var(--bg-mint);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.q-main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.q-header {
  text-align: center;
  margin-bottom: 32px;
}
.q-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.q-header p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.progress-wrap {
  margin-bottom: 36px;
  position: relative;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: #c0ebe6;
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 90%;
  background: var(--gradient-btn);
  border-radius: 99px;
}
.progress-pct {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}
.q-block {
  margin-bottom: 32px;
}
.q-block .q-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.q-block .q-hint {
  font-size: 12px;
  color: #999;
  margin-bottom: 14px;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--text-dark);
}
.q-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid #c0dbd8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: border-color .15s, background .15s;
}
.q-option.selected .q-check {
  border-color: var(--teal);
  background: var(--teal);
}
.q-check svg {
  width: 13px;
  height: 13px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
}
.q-option.selected .q-check svg { opacity: 1; }
.q-confirm-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-layout { flex-direction: column; padding: 80px 24px 24px; }
  .auth-hero { flex: none; width: 100%; max-width: none; min-height: 280px; }
  .auth-form-panel { max-width: none; padding: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .popup-cards { grid-template-columns: 1fr; }
  .popup-skip { display: none; }
  .bookings-header { display: none; }
  .booking-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 768px) {
  .app-sidebar { width: 72px; }
  .nav-item span { font-size: 9px; }
  .nav-item svg { width: 22px; height: 22px; }
}
