/* ==================================================
   ROOT VARIABLES (GLOBAL THEME)
   ================================================== */
:root {
  --brand: #00857c;
  --brand-2: #0aa79b;

  --bg: #f6fbfa;
  --text: #0f172a;
  --muted: #475569;

  --card: #ffffff;
  --card-soft: rgba(15, 23, 42, 0.03);

  --radius: 18px;
  --shadow: 0 18px 50px rgba(2, 44, 41, 0.1);

  --container: 980px;
  --header-h: 96px;

  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.12);

  --focus-shadow: rgba(0, 133, 124, 0.14);
  --focus-border: rgba(0, 133, 124, 0.55);

  /* callout variants */
  --warn-text: #e00219;
  --warn-bg: rgb(255, 231, 231);

  --info-text: #0369a1;
  --info-bg: rgba(14, 165, 233, 0.12);

  --success-text: #15803d;
  --success-bg: rgba(34, 197, 94, 0.14);

  --support-text: #eb9100;
  --support-bg: rgba(241, 196, 15, 0.18);
}

/* ==================================================
   RESET & STRUCTURE
   ================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      1200px 600px at 10% 10%,
      rgba(0, 133, 124, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 90% 20%,
      rgba(10, 167, 155, 0.12),
      transparent 60%
    ),
    var(--bg);
  background-repeat: no-repeat;
}

/* ==================================================
   LAYOUT
   ================================================== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

main.content-container {
  flex: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 18px 40px;
  align-items: center;
  display: flex;
}

/* ==================================================
   TYPOGRAPHY (GLOBAL)
   ================================================== */
strong,
b {
  font-weight: 600;
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

ul,
ol {
  margin: 0;
  padding-left: 18px;
}

li {
  line-height: 1.75;
}

p {
  margin: 0;
  line-height: 1.75;
}

/* link */
a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: solid;
}

/* ==================================================
   CARD (GLOBAL)
   ================================================== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

@media (max-width: 768px) {
  .card {
    padding: 18px;
  }
}

.card-header {
  margin-bottom: 16px;
}

.card-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.card-body {
  display: grid;
  gap: 14px;
}

/* CARD TOP BORDER */
.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    rgba(0, 133, 124, 0.25),
    var(--brand),
    rgba(0, 133, 124, 0.25)
  );
}

/* ==================================================
   FIELD / INPUT (GLOBAL)
   ================================================== */
.field {
  position: relative;
  width: 100%;
}

.field label {
  font-size: 14px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input:focus {
  border-color: var(--focus-border);
  box-shadow: 0 0 0 6px var(--focus-shadow);
}

/* opt-in toggle space */
.field.has-toggle input {
  padding-right: 52px;
}

.field-action {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
}

.field textarea {
  margin-top: 10px;
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea:focus {
  border-color: var(--focus-border);
  box-shadow: 0 0 0 6px var(--focus-shadow);
}

.field ::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

/* ==================================================
   BUTTON (GLOBAL)
   ================================================== */
.btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.12s ease,
    background-color 0.12s ease,
    box-shadow 0.12s ease;
  box-shadow: 0 10px 22px rgba(0, 133, 124, 0.18);
}

.btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ==================================================
   BUTTON – SECONDARY
   ================================================== */
.btn-secondary {
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  border: 1px solid var(--brand);
}

.btn-secondary:hover {
  background: rgba(0, 133, 124, 0.04);
  color: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ==================================================
   CALLOUT (GLOBAL)
   ================================================== */
.callout {
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 4px solid currentColor;
  background: var(--card-soft);
  color: var(--text);
  line-height: 1.7;
  font-size: 14px;
}

/* variants */
.callout-brand {
  color: var(--text);
  background: var(--bg);
  border-left: 4px solid var(--brand);
}
.callout-warning {
  color: var(--warn-text);
  background: var(--warn-bg);
}

.callout-info {
  color: var(--info-text);
  background: var(--info-bg);
}

.callout-success {
  color: var(--success-text);
  background: var(--success-bg);
}

.callout-support {
  color: var(--support-text);
  background: var(--support-bg);
}
