:root {
  --circet-blue: #005aa9;
  --circet-blue-dark: #003d73;
  --circet-orange: #f58220;
  --circet-bg: #f5f9fd;
  --circet-white: #ffffff;
  --text-main: #1a171b;
  --text-muted: #3e3a40;
  --danger: #c62828;
  --success: #156f2e;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(0, 61, 115, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: #1a171b;
  min-height: 100vh;
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .page {
  opacity: 0;
  pointer-events: none;
}

.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  z-index: 1200;
  isolation: isolate;
  overflow: hidden;
  background: #1a171b;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.background-canvas {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.intro-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.intro-content {
  width: min(92vw, 860px);
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.intro-logo {
  width: clamp(140px, 24vw, 230px);
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.intro-title {
  margin: 0;
  font-size: clamp(1.45rem, 4.2vw, 2.6rem);
  line-height: 1.14;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.intro-title-main {
  display: block;
  white-space: nowrap;
}

.intro-title-sub {
  display: block;
  margin-top: 6px;
}

.intro-text {
  margin: 16px auto 0;
  max-width: 46ch;
  color: #ffffff;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.55;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.intro-cta {
  margin-top: 28px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--circet-orange), #ff9e4d);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.intro-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

.page {
  padding: 18px;
}

.card {
  max-width: 740px;
  margin: 0 auto;
  background: var(--circet-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border-top: 6px solid var(--circet-orange);
}

.form-header {
  margin-bottom: 20px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 14px;
}

.circet-logo {
  width: clamp(120px, 30vw, 170px);
  height: auto;
  display: block;
  margin-bottom: 0;
}

.contact-person {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: 0;
  justify-content: flex-start;
  text-align: right;
  min-width: 120px;
  margin: 0;
  margin-left: auto;
}

.profile-image {
  width: clamp(78px, 10vw, 94px);
  height: clamp(78px, 10vw, 94px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e7edf4;
}

.contact-text p {
  margin: 0;
  line-height: 1.25;
}

.contact-text {
  width: 100%;
  text-align: right;
}

.contact-name {
  font-size: clamp(1.15rem, 2.1vw, 1.24rem);
  font-weight: 700;
  color: var(--text-main);
}

.contact-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

h1 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0;
  color: var(--text-main);
}

.subline {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

#leadForm {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bdd3e7;
  background: var(--circet-bg);
  border-radius: 10px;
  padding: 14px 12px;
  color: var(--text-main);
  min-height: 52px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(245, 130, 32, 0.25);
  border-color: var(--circet-orange);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8fbff;
  border: 1px solid #d9e7f3;
  border-radius: 10px;
  padding: 12px;
}

.checkbox-row input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 2px;
}

.checkbox-row label {
  font-size: 0.9rem;
  font-weight: 500;
}

button[type="submit"] {
  border: 0;
  border-radius: 10px;
  min-height: 54px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

button[type="submit"] {
  color: var(--circet-white);
  background: linear-gradient(120deg, var(--circet-orange), #ff9e4d);
}

button[type="submit"]:hover {
  filter: brightness(0.95);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  margin: 0;
  color: var(--danger);
}

.form-status.success {
  color: var(--success);
}

.overlay {
  position: fixed;
  inset: 0;
  background: #1a171b;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.overlay.active {
  display: flex;
}

.overlay-card {
  width: min(100%, 620px);
  background: transparent;
  border-radius: 0;
  padding: 8px 4px;
  text-align: center;
  box-shadow: none;
  border-top: 0;
}

.overlay-loading p {
  color: #d6d5d8;
  margin: 14px 0 0;
  font-size: 1rem;
}

.loader {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #f58220;
  display: inline-block;
  animation: spin 0.9s linear infinite;
}

.overlay-card h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
}

.overlay-card p {
  color: #d6d5d8;
  margin: 12px auto 24px;
  max-width: 52ch;
  font-size: clamp(1rem, 2.7vw, 1.15rem);
  line-height: 1.6;
}

.overlay-profile-image {
  width: clamp(108px, 14vw, 124px);
  height: clamp(108px, 14vw, 124px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f58220;
}

.overlay-name {
  margin: 10px 0 4px;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 1.62rem);
}

.is-hidden {
  display: none;
}

.overlay-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.spark-button {
  --btn-shadow: rgba(245, 130, 32, 0.35);
  appearance: none;
  border: 0;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  margin-top: 0;
  background: linear-gradient(120deg, #f58220, #ff9e4d);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 26px var(--btn-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.spark-button:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.04);
  box-shadow: 0 14px 34px var(--btn-shadow);
}

.spark-button:active {
  transform: scale(0.99);
}

.spark-button .icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.spark-button .icon path {
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.spark-button.is-active .icon path:nth-child(1) {
  transform: scale(1.25);
  opacity: 0.75;
}

.spark-button.is-active .icon path:nth-child(2) {
  transform: scale(1.12);
}

.spark-button.is-active .icon path:nth-child(3) {
  transform: scale(1.3);
  opacity: 0.75;
}

.spark-button .spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe2c5;
  pointer-events: none;
}

.spark-button-secondary {
  --btn-shadow: rgba(47, 112, 176, 0.35);
  background: linear-gradient(120deg, #2a6ca8, #3c88c9);
  color: #ffffff;
}

.spark-button-primary {
  --btn-shadow: rgba(245, 130, 32, 0.45);
  background: linear-gradient(120deg, #f58220, #ff9e4d);
  color: #ffffff;
}

@media (min-width: 640px) {
  .page {
    padding: 32px;
  }

  .card {
    padding: 30px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 520px) {
  .background-canvas {
    width: 100%;
    height: 100%;
    min-height: 100svh;
    height: 100dvh;
  }

  .top-row {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 12px;
  }

  .circet-logo {
    width: 118px;
  }

  .profile-image {
    width: 78px;
    height: 78px;
  }

  .contact-name {
    font-size: 1.08rem;
  }

  .contact-role {
    font-size: 0.76rem;
  }

  .contact-person {
    width: auto;
    align-items: flex-end;
  }

  .overlay {
    padding: 18px;
  }

  .overlay-profile-image {
    width: 104px;
    height: 104px;
  }

  .overlay-card p {
    max-width: 34ch;
  }

  .overlay-actions .spark-button {
    width: 100%;
    max-width: 260px;
  }

  .intro-content {
    padding: 16px;
  }

  .intro-title-main {
    font-size: 0.98rem;
  }

  .intro-text {
    max-width: 32ch;
  }

  .intro-cta {
    width: 100%;
    max-width: 300px;
  }

}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
