/* ============================================================
   COSMOCHEM — Contact Page Styles
   Tokens follow the main design system (style.css)
   ============================================================ */

/* ── Hero override ── */
.products-hero {
  background-image: url('../images/contacthero.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 110px 0 !important;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.742);
  z-index: 0;
}

.hero-title {
  color: rgb(255, 255, 255) !important;
  margin-bottom: 20px;
}

.hero-title strong {
  color: var(--blue) !important;
  display: inline !important;
}


/* ════════════════════════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════════════════════════ */
.contact-section {
  padding: 96px 0 112px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Soft background grid decoration */
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(75.5% 0.12 212deg / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(75.5% 0.12 212deg / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Section heading ── */
.contact-eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-dark);
  background: var(--blue-tint);
  border: 1px solid oklch(75.5% 0.12 212deg / 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.contact-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.contact-title strong {
  color: var(--blue-dark);
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Two-panel wrapper ── */
.contact-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}


/* ════════════════════════
   INFO CARD (left panel)
   ════════════════════════ */
.contact-info-card {
  background: linear-gradient(
    145deg,
    oklch(42% 0.14 212deg) 0%,
    oklch(30% 0.12 212deg) 55%,
    oklch(22% 0.10 212deg) 100%
  );
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* Decorative blob */
.ci-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: oklch(75.5% 0.12 212deg / 0.18);
  bottom: -80px;
  right: -80px;
  pointer-events: none;
  filter: blur(2px);
}

.ci-blob::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: oklch(75.5% 0.12 212deg / 0.12);
  top: -60px;
  left: -60px;
}

.ci-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.ci-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.ci-subtext {
  font-size: 0.9rem;
  color: oklch(85% 0.04 212deg);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 100%;
}

/* ── Contact info items ── */
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid oklch(100% 0 0 / 0.1);
  transition: transform 0.2s ease;
}

.ci-item:last-of-type {
  border-bottom: none;
}

.ci-item:hover {
  transform: translateX(4px);
}

.ci-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: oklch(100% 0 0 / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid oklch(100% 0 0 / 0.15);
  transition: background 0.2s;
}

.ci-item:hover .ci-icon-wrap {
  background: oklch(100% 0 0 / 0.2);
}

.ci-icon-wrap svg {
  width: 18px;
  height: 18px;
  color: oklch(88% 0.08 212deg);
}

.ci-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ci-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(75% 0.08 212deg);
}

.ci-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

.ci-link {
  color: oklch(88% 0.08 212deg);
  transition: color 0.15s;
}

.ci-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Social buttons ── */
.ci-socials {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

.ci-social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: oklch(100% 0 0 / 0.12);
  border: 1px solid oklch(100% 0 0 / 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.ci-social-btn svg {
  width: 18px;
  height: 18px;
}

.ci-social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
  color: oklch(15% 0.01 212deg);
}


/* ════════════════════════
   FORM CARD (right panel)
   ════════════════════════ */
.contact-form-card {
  background: #fff;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* ── Field group ── */
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bootstrap row inside form resets the gap */
.contact-form-card .row {
  margin-bottom: 0;
}

.contact-form-card .row .cf-field {
  margin-bottom: 0;
}

.cf-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.cf-required {
  color: var(--pink);
  margin-left: 2px;
}

/* ── Input wrapper (icon + input) ── */
.cf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cf-field-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.15s;
}

.cf-field-icon--top {
  top: 14px;
  align-self: flex-start;
}

/* ── Inputs & textarea ── */
.cf-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  -webkit-appearance: none;
}

.cf-input::placeholder {
  color: var(--ink-3);
  font-size: 0.9rem;
}

.cf-input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px oklch(75.5% 0.12 212deg / 0.15);
}

.cf-input:focus + .cf-field-icon,
.cf-input-wrap:focus-within .cf-field-icon {
  color: var(--blue-dark);
}

/* Textarea specifics */
.cf-textarea {
  height: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
  min-height: 130px;
}

.cf-textarea-wrap {
  align-items: flex-start;
}

/* ── Submit row ── */
.cf-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Submit button */
.cf-submit-btn {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: oklch(15% 0.01 212deg);
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px oklch(75.5% 0.12 212deg / 0.35);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s;
  white-space: nowrap;
}

.cf-submit-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cf-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px oklch(75.5% 0.12 212deg / 0.45);
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-xdark) 100%);
  color: #fff;
}

.cf-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px oklch(75.5% 0.12 212deg / 0.3);
}

.cf-note {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
  max-width: 100%;
}

.cf-note strong {
  color: var(--ink-2);
}

/* ── Success message ── */
.cf-success-msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: oklch(96% 0.05 145deg);
  border: 1.5px solid oklch(70% 0.14 145deg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 4px;
}

.cf-success-msg svg {
  width: 22px;
  height: 22px;
  color: oklch(48% 0.18 145deg);
  flex-shrink: 0;
  margin-top: 1px;
}

.cf-success-msg div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cf-success-msg strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: oklch(36% 0.16 145deg);
}

.cf-success-msg span {
  font-size: 0.86rem;
  color: oklch(44% 0.14 145deg);
}




.cf-error-msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: oklch(63.467% 0.21987 26.133);
  border: 1.5px solid oklch(70% 0.14 145deg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 4px;
}

.cf-error-msg svg {
  width: 22px;
  height: 22px;
  color: oklch(100% 0.00011 271.152);
  flex-shrink: 0;
  margin-top: 1px;
}

.cf-error-msg div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cf-error-msg strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: oklch(100% 0.00011 271.152);
}

.cf-error-msg span {
  font-size: 0.86rem;
  color: oklch(100% 0.00011 271.152);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile
   ════════════════════════════════════════════════════════════ */

/* Large tablet / small desktop */
@media (max-width: 991.98px) {
  .contact-info-card {
    padding: 44px 36px;
    /* On mobile, min-height so it doesn't collapse */
    min-height: auto;
    border-radius: 0;
  }

  .ci-blob {
    width: 220px;
    height: 220px;
    bottom: -50px;
    right: -50px;
  }

  .contact-form-card {
    padding: 44px 36px;
  }

  /* Stack vertically: info card on top, form below */
  .contact-wrapper .col-12.col-lg-5,
  .contact-wrapper .col-12.col-lg-7 {
    width: 100%;
  }
}

/* Tablet */
@media (max-width: 767.98px) {
  .contact-section {
    padding: 64px 0 80px;
  }

  .contact-info-card {
    padding: 36px 28px;
  }

  .ci-blob {
    width: 180px;
    height: 180px;
  }

  .contact-form-card {
    padding: 36px 28px;
  }

  .cf-submit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cf-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .contact-section {
    padding: 52px 0 72px;
  }

  .contact-info-card {
    padding: 32px 20px;
  }

  .ci-heading {
    font-size: 1.2rem;
  }

  .contact-form-card {
    padding: 32px 20px;
  }

  .cf-input {
    height: 46px;
    font-size: 0.9rem;
  }

  .cf-submit-btn {
    font-size: 0.9rem;
    padding: 13px 24px;
  }

  .ci-item {
    gap: 14px;
  }

  .ci-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .contact-wrapper {
    border-radius: var(--radius-lg);
  }
}





