/* === GLOBAL BASE STYLES (FORCED) === */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

:root {
  --scp-bg: #f5f7fb;
  --scp-surface: #ffffff;
  --scp-surface-soft: #eef5ff;
  --scp-border: #c7d7ee;
  --scp-border-strong: #9eb9df;
  --scp-text: #0f172a;
  --scp-muted: #475569;
  --scp-primary: #0f4a80;
  --scp-primary-dark: #0b2f52;
  --scp-ring: rgba(30, 94, 175, 0.18);
  --scp-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --scp-radius: 1.5rem;
}

html, body {
  width: 100%;
}

body {
  overflow-x: hidden;
}

main {
  max-width: 1600px;
  margin-inline: auto;
  width: 100%;
}

section {
  width: 100%;
}

img,
iframe {
  max-width: 100%;
}

/* --- SVG icons (local sprite) --- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* --- Consistent contact form styling --- */
.quote-form {
  display: grid;
  gap: 1.25rem;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.quote-form-field {
  display: grid;
  gap: 0.5rem;
}

.quote-form label,
.quote-form .field-label,
.privacy-label {
  color: var(--scp-text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form select,
.quote-form textarea {
  width: 100%;
  appearance: none;
  background: var(--scp-surface);
  color: var(--scp-text);
  border: 1.5px solid var(--scp-border-strong);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  min-height: 3.35rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.quote-form select {
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--scp-text) 50%), linear-gradient(135deg, var(--scp-text) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.quote-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder,
.quote-form select {
  color: #64748b;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #4b93e6;
  box-shadow: 0 0 0 5px var(--scp-ring);
  background: #fff;
}

.quote-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.98));
  border: 1px solid var(--scp-border);
  border-radius: 2rem;
  box-shadow: var(--scp-shadow);
}

.quote-form-card h2,
.quote-form-card h3 {
  color: var(--scp-text);
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.privacy-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--scp-muted);
}

.privacy-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--scp-primary);
  flex: 0 0 auto;
}

.privacy-label a {
  color: var(--scp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-submit,
.wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.95rem 1.4rem;
  border: 1px solid #0b2f52;
  border-radius: 999px;
  background: linear-gradient(180deg, #144f88, #0b2f52);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 74, 128, 0.24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.quote-submit:hover,
.wrap .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px rgba(15, 74, 128, 0.28);
}

.form-note {
  color: var(--scp-muted);
  font-size: 0.95rem;
}

/* --- Legal pages --- */
.container-centered {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

.card-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.components-bordered,
.border-accent,
.border-custom {
  border: 1px solid rgba(15, 74, 128, 0.14);
}

.radius-card-lg,
.card-lg {
  border-radius: 1.75rem;
}

.bg-sand-graphite {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.surface-elevation-shift,
.shadow-shift {
  box-shadow: var(--scp-shadow);
}

.padding-variable-fluid {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.text-editorial {
  color: var(--scp-text);
}

.text-editorial h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.text-editorial h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.text-editorial p,
.text-editorial ul,
.text-editorial address {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
}

.text-editorial p + p,
.text-editorial p + ul,
.text-editorial ul + p,
.text-editorial h2 + ul,
.text-editorial h2 + p {
  margin-top: 0.6rem;
}

.text-editorial ul {
  padding-left: 1.2rem;
}

.text-editorial li + li {
  margin-top: 0.35rem;
}

.text-editorial address {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background: #eef5ff;
  border: 1px solid var(--scp-border);
  border-radius: 1.25rem;
  font-style: normal;
}

.text-editorial a {
  color: var(--scp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-page="privacy-policy.html"] body,
html[data-page="terms-conditions.html"] body {
  background: linear-gradient(180deg, #f4f7fc 0%, #edf3fb 100%);
}

html[data-page="privacy-policy.html"] article,
html[data-page="terms-conditions.html"] article {
  border: 1px solid var(--scp-border);
  border-radius: 2rem;
}

/* --- Thanks page --- */
.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
}

.wrap .card {
  width: min(100%, 560px);
  background: #fff;
  border: 1px solid var(--scp-border);
  border-radius: 2rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--scp-shadow);
}

.wrap .card h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
  color: var(--scp-text);
}

.wrap .card p {
  color: var(--scp-muted);
  line-height: 1.7;
}

.wrap .card p + p {
  margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .container-centered {
    padding-inline: 0.875rem;
  }

  .quote-form input[type="text"],
  .quote-form input[type="tel"],
  .quote-form input[type="email"],
  .quote-form select,
  .quote-form textarea {
    min-height: 3.15rem;
  }
}


/* --- Form contrast / autofill fixes --- */
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form select,
.quote-form textarea {
  font-size: 16px;
  background-clip: padding-box;
}

.quote-form input:-webkit-autofill,
.quote-form input:-webkit-autofill:hover,
.quote-form input:-webkit-autofill:focus,
.quote-form textarea:-webkit-autofill,
.quote-form select:-webkit-autofill {
  -webkit-text-fill-color: var(--scp-text);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.quote-form option {
  color: var(--scp-text);
  background: #ffffff;
}

.quote-form-card,
section#contact .bg-white.p-8,
section#contact .bg-white.p-8\.md\:p-10,
section#contact .bg-white.rounded-3xl,
section#contact .bg-white.rounded-\[2rem\] {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.quote-form .field-help,
.legal-intro {
  color: var(--scp-muted);
}

.text-editorial {
  display: grid;
  gap: 0.35rem;
}

.text-editorial > * {
  max-width: 74ch;
}

.text-editorial > ul,
.text-editorial > address {
  max-width: 70ch;
}

.text-editorial h1,
.text-editorial h2 {
  color: var(--scp-text);
}

.text-editorial strong {
  color: var(--scp-text);
}
