/* ===== Contact Page — Crystal Acrylic Redesign =====
   Page-scoped: only contact.html loads this file. Nothing here
   targets Home, About, Knowledge Center or the shared footer. */

:root {
  --cto-pearl: #F7FAFF;
  --cto-ice: #EAF4FF;
  --cto-line: rgba(168, 221, 245, 0.6);
  --cto-navy: #0A2463;
  --cto-mint: #56BFA9;
}

.cto-page {
  background: #FFFFFF;
  color: #42506B;
}

/* ---------------- Hero ---------------- */
.cto-hero {
  position: relative;
  padding: 148px 0 66px;
  background: linear-gradient(158deg, #FFFFFF 0%, #EAF4FF 38%, #F1FAF7 68%, #FFFFFF 100%);
  overflow: hidden;
  text-align: center;
}

.cto-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 560px 320px at 50% 8%, rgba(36, 87, 197, 0.10) 0%, transparent 62%),
    radial-gradient(ellipse 420px 260px at 12% 88%, rgba(86, 191, 169, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 420px 260px at 90% 82%, rgba(168, 221, 245, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.cto-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

/* ---- Spam honeypot: real bots fill it, people never see it ---- */
.cto-gotcha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Hero decoration: real crystal-acrylic render, never over the copy ---- */
/* Blurred crop of the same render carries the fibrous streak texture down the left side. */
.cto-hero-fibers {
  position: absolute;
  inset: 0;
  background: url('../images/contact-hero-crystal.webp') 20% 62% / 210% auto no-repeat;
  filter: blur(26px) saturate(0.88);
  opacity: 0.30;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.62) 32%, transparent 58%);
          mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.62) 32%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}

/* Crisp swirl, weighted to the right and top-right of the first screen. */
.cto-hero-art {
  position: absolute;
  inset: -6% -2% -6% -2%;
  background: url('../images/contact-hero-crystal.webp') 72% 44% / cover no-repeat;
  opacity: 0.52;
  -webkit-mask-image: radial-gradient(74% 96% at 78% 42%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 86%);
          mask-image: radial-gradient(74% 96% at 78% 42%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 86%);
  pointer-events: none;
  z-index: 1;
}

/* White veil over the text column so the headline, email and buttons stay at full contrast. */
.cto-hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 72% at 46% 50%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(to right, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.3) 34%, rgba(255, 255, 255, 0) 56%);
  pointer-events: none;
  z-index: 1;
}

.cto-crumb {
  font-size: 0.8rem;
  color: rgba(10, 36, 99, 0.55);
  letter-spacing: 0.4px;
  margin-bottom: 20px;
}

.cto-crumb a {
  color: rgba(10, 36, 99, 0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cto-crumb a:hover { color: var(--primary); }

.cto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 87, 197, 0.14);
  border-radius: 30px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(36, 87, 197, 0.07);
}

.cto-badge svg {
  width: 15px;
  height: 15px;
  stroke: var(--cto-mint);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cto-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--cto-navy);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cto-hero h1 .cto-h1-accent { color: var(--primary); }

.cto-subtitle {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
  margin: 0 0 16px;
}

.cto-hero-lede {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #4A5568;
  max-width: 640px;
  margin: 0 auto 26px;
}

.cto-hero-direct {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--cto-line);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(36, 87, 197, 0.07);
  font-size: 0.88rem;
  color: #3D5470;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cto-hero-direct strong { color: var(--primary); font-weight: 700; }

.cto-hero-direct:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 197, 0.4);
  box-shadow: 0 12px 28px rgba(36, 87, 197, 0.12);
}

.cto-hero-direct svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- Main: info + form ---------------- */
.cto-main {
  padding: 72px 0 96px;
  background: #FFFFFF;
}

.cto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 40px;
  align-items: start;
}

.cto-info h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cto-navy);
  line-height: 1.3;
  margin: 0 0 12px;
}

.cto-info > p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #56637C;
  margin: 0 0 28px;
}

.cto-info-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--cto-line);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(36, 87, 197, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  margin-bottom: 20px;
}

.cto-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(168, 221, 245, 0.42);
}

.cto-info-item:last-child { border-bottom: none; }

.cto-info-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #EAF4FF 0%, #F7FAFF 100%);
  border: 1px solid rgba(36, 87, 197, 0.12);
}

.cto-info-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cto-info-item h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8695AC;
  margin: 0 0 5px;
}

.cto-info-item p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--cto-navy);
  margin: 0;
  word-break: break-word;
}

.cto-info-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.cto-info-item a:hover { text-decoration: underline; }

.cto-hint {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  background: rgba(234, 244, 255, 0.7);
  border: 1px dashed rgba(36, 87, 197, 0.26);
  border-radius: 14px;
}

.cto-hint svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cto-hint p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: #4A5568;
}

/* ---------------- Glass form card ---------------- */
.cto-form-card {
  position: relative;
  padding: 36px 34px 32px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(36, 87, 197, 0.13), 0 2px 10px rgba(168, 221, 245, 0.4), inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(14px);
}

.cto-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #6FA8F0 55%, var(--cto-mint) 100%);
}

.cto-form-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--cto-navy);
  margin: 4px 0 6px;
}

.cto-form-card .cto-form-sub {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #6B7A94;
  margin: 0 0 26px;
}

.cto-form-card .form-group { margin-bottom: 18px; }

.cto-form-card .form-group label {
  color: var(--cto-navy);
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.cto-form-card .form-group input,
.cto-form-card .form-group textarea,
.cto-form-card .form-group select {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(168, 221, 245, 0.75);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.92rem;
  color: var(--cto-navy);
  box-shadow: inset 0 1px 2px rgba(36, 87, 197, 0.04);
}

.cto-form-card .form-group input::placeholder,
.cto-form-card .form-group textarea::placeholder { color: #9DAAC0; }

.cto-form-card .form-group input:focus,
.cto-form-card .form-group textarea:focus,
.cto-form-card .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.13);
}

.cto-form-card .form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232457C5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ---- Front-end validation feedback ---- */
.cto-form-card .form-group input.is-invalid,
.cto-form-card .form-group textarea.is-invalid,
.cto-form-card .form-group select.is-invalid {
  border-color: #D9534F;
  background: #FFF8F7;
}

.cto-form-card .form-group input.is-invalid:focus,
.cto-form-card .form-group textarea.is-invalid:focus,
.cto-form-card .form-group select.is-invalid:focus {
  border-color: #D9534F;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.14);
}

.field-error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #C7392F;
}

.field-error.show { display: block; }

.cto-form-card .btn-submit {
  width: 100%;
  margin-top: 6px;
  padding: 15px 20px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(36, 87, 197, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cto-form-card .btn-submit:hover {
  background: var(--primary-light);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(36, 87, 197, 0.34);
}

.cto-form-card .btn-submit:disabled {
  opacity: 0.75;
  cursor: default;
  transform: none;
}

#form-status { line-height: 1.6; }

.cto-form-privacy {
  margin: 14px 0 0;
  font-size: 0.76rem;
  line-height: 1.65;
  color: #8695AC;
  text-align: center;
}

.cto-form-mail {
  margin: 16px 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
  color: #6B7A94;
}

.cto-form-mail a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cto-form-mail + .cto-form-privacy { margin-top: 8px; }

/* ---------------- Process steps ---------------- */
.cto-steps {
  padding: 88px 0;
  background: linear-gradient(180deg, #F4F9FF 0%, #EAF4FF 55%, #F5FAFF 100%);
}

.cto-head { max-width: 660px; margin-bottom: 44px; }
.cto-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.cto-overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cto-mint);
  margin-bottom: 13px;
}

.cto-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--cto-navy);
  line-height: 1.28;
  margin: 0 0 13px;
}

.cto-head p {
  font-size: 0.94rem;
  line-height: 1.8;
  color: #56637C;
  margin: 0;
}

.cto-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cto-step {
  position: relative;
  padding: 30px 26px 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--cto-line);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(36, 87, 197, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cto-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(36, 87, 197, 0.12);
}

.cto-step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 14px;
}

.cto-step-num::after {
  content: '';
  width: 38px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(36, 87, 197, 0.55), rgba(86, 191, 169, 0.35));
}

.cto-step h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--cto-navy);
  margin: 0 0 11px;
  line-height: 1.35;
}

.cto-step p {
  font-size: 0.885rem;
  line-height: 1.78;
  color: #56637C;
  margin: 0;
}

/* ---------------- Values strip ---------------- */
.cto-values {
  padding: 82px 0;
  background: #FFFFFF;
}

.cto-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.cto-value {
  padding: 26px 24px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F4F9FF 100%);
  border: 1px solid var(--cto-line);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(36, 87, 197, 0.06);
  border-left: 3px solid var(--primary);
}

.cto-value:nth-child(2) { border-left-color: #6FA8F0; }
.cto-value:nth-child(3) { border-left-color: var(--cto-mint); }

.cto-value strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cto-navy);
  margin-bottom: 9px;
}

.cto-value p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #56637C;
  margin: 0;
}

/* ---------------- WhatsApp float: keep clear of the form ---------------- */
@media (max-width: 1024px) {
  .whatsapp-float {
    right: auto;
    left: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
  }
  .whatsapp-float svg { width: 22px; height: 22px; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .cto-grid { grid-template-columns: 1fr; gap: 34px; }
  .cto-info > p { margin-bottom: 22px; }
}

@media (max-width: 900px) {
  .cto-hero { padding: 118px 0 52px; }
  .cto-main { padding: 56px 0 76px; }
  .cto-steps { padding: 68px 0; }
  .cto-values { padding: 62px 0; }
  /* Narrower screen: the swirl moves behind the copy, so soften it and lift the veil. */
  .cto-hero-art { opacity: 0.40; -webkit-mask-image: radial-gradient(80% 92% at 82% 40%, #000 30%, rgba(0, 0, 0, 0.42) 58%, transparent 80%); mask-image: radial-gradient(80% 92% at 82% 40%, #000 30%, rgba(0, 0, 0, 0.42) 58%, transparent 80%); }
  .cto-hero-fibers { opacity: 0.24; }
  .cto-hero-veil { background: radial-gradient(64% 74% at 50% 48%, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(255, 255, 255, 0.34) 82%); }
}

@media (max-width: 620px) {
  .cto-hero h1 { font-size: 1.9rem; }
  .cto-form-card { padding: 26px 18px 24px; border-radius: 18px; }
  .cto-form-card::before { left: 18px; right: 18px; }
  .cto-form-card .form-row { grid-template-columns: 1fr; gap: 0; }
  .cto-info-card { padding: 6px 18px; }
  .cto-hero-direct { width: 100%; justify-content: center; }
  .cto-hero-art { opacity: 0.30; }
  .cto-hero-fibers { opacity: 0.20; }
}
