/* ─────────────────────────────────────────────────────────────────────
   CONTACT PAGE — Cards, form with validation, info sidebar
   ───────────────────────────────────────────────────────────────────── */

/* ── Fade-in ── */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-section.is-visible .fade-child {
  opacity: 1;
  transform: translateY(0);
}
.fade-section.is-visible .fade-child:nth-child(1) { transition-delay: 0s; }
.fade-section.is-visible .fade-child:nth-child(2) { transition-delay: 0.1s; }
.fade-section.is-visible .fade-child:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .fade-section, .fade-child { opacity: 1; transform: none; transition: none; }
}


/* ── Page container ── */
.ct-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px clamp(20px, 5vw, 48px) 80px;
}


/* ══════════════════════════════════════════════════════════
   SECTION 1: HEADER
   ══════════════════════════════════════════════════════════ */
.ct-header {
  text-align: center;
  margin-bottom: 48px;
}
.ct-header__title {
  font-family: 'Geologica', 'Georgia', serif;
  font-size: 36px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.2;
  margin: 0 0 12px;
}
.ct-header__sub {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #4A4A4A;
  margin: 0 auto;
  max-width: 600px;
}


/* ══════════════════════════════════════════════════════════
   SECTION 2: CONTACT CARDS
   ══════════════════════════════════════════════════════════ */
.ct-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.ct-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border: 1px solid #E5E2DD;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ct-card:hover {
  border-color: #1A1A1A;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.ct-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F0EB;
  border-radius: 12px;
  margin-bottom: 14px;
}
.ct-card__label {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #8A8A8A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.ct-card__value {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 4px;
}
.ct-card__sub {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  color: #8A8A8A;
}


/* ══════════════════════════════════════════════════════════
   SECTION 3: FORM + INFO GRID
   ══════════════════════════════════════════════════════════ */
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}


/* ── Form ── */
.ct-form-wrap {
  min-width: 0;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Success message */
.ct-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 8px;
}
.ct-success svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.ct-success p {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #065F46;
  margin: 0;
}


/* ── Field ── */
.ct-field {
  display: flex;
  flex-direction: column;
}

.ct-label {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 6px;
}
.ct-req {
  color: #DC2626;
}

.ct-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #E5E2DD;
  border-radius: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-input::placeholder {
  color: #8A8A8A;
}
.ct-input:focus {
  border-color: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

/* Select */
.ct-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A8A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Textarea */
.ct-textarea {
  height: auto;
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

/* Field meta (error + charcount row) */
.ct-field__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  min-height: 20px;
}

/* Error state */
.ct-error {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  color: #DC2626;
  display: none;
  margin-top: 4px;
}
.ct-field.has-error .ct-error {
  display: block;
}
.ct-field.has-error .ct-input {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06);
}

/* Inside .ct-field__meta, error is inline */
.ct-field__meta .ct-error {
  margin-top: 0;
}
.ct-field.has-error .ct-field__meta .ct-error {
  display: block;
}

/* Character counter */
.ct-charcount {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  color: #8A8A8A;
  margin-left: auto;
}
.ct-charcount.is-warn {
  color: #D97706;
}
.ct-charcount.is-limit {
  color: #DC2626;
  font-weight: 600;
}

/* Conditional field */
.ct-field--conditional {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.ct-field--conditional.is-visible {
  max-height: 120px;
  opacity: 1;
}


/* ── Dropzone ── */
.ct-dropzone {
  position: relative;
  border: 2px dashed #E5E2DD;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ct-dropzone:hover {
  border-color: #B0ADA8;
}
.ct-dropzone.is-dragover {
  border-color: #1A1A1A;
  background: #FAFAF8;
}

.ct-dropzone__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.ct-dropzone__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ct-dropzone__prompt > span {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  color: #4A4A4A;
}
.ct-dropzone__note {
  font-size: 12px !important;
  color: #8A8A8A !important;
}

.ct-dropzone__file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
}
#ct-file-name {
  font-weight: 600;
  color: #1A1A1A;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ct-file-size {
  color: #8A8A8A;
  font-size: 13px;
}
.ct-dropzone__remove {
  background: none;
  border: none;
  font-size: 18px;
  color: #8A8A8A;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.ct-dropzone__remove:hover {
  color: #DC2626;
}


/* ── Submit button ── */
.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.ct-submit:hover {
  background: #333;
}
.ct-submit.is-sent {
  background: #059669;
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════
   INFO SIDEBAR
   ══════════════════════════════════════════════════════════ */
.ct-info {
  position: sticky;
  top: 100px;
}
.ct-info__section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #E5E2DD;
}
.ct-info__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ct-info__heading {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 14px;
}

/* Contact rows */
.ct-info__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-info__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  color: #4A4A4A;
  text-decoration: none;
  transition: color 0.2s;
}
a.ct-info__row:hover {
  color: #1A1A1A;
}
.ct-info__row svg {
  flex-shrink: 0;
  color: #8A8A8A;
}

/* Social circles */
.ct-socials {
  display: flex;
  gap: 10px;
}
.ct-socials__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #E5E2DD;
  border-radius: 50%;
  color: #4A4A4A;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ct-socials__link:hover {
  border-color: #1A1A1A;
  color: #1A1A1A;
  background: #F5F0EB;
}

/* B2B card */
.ct-b2b {
  background: #F5F0EB;
  border-radius: 8px;
  padding: 20px;
}
.ct-b2b .ct-info__heading {
  margin-bottom: 8px;
}
.ct-b2b p {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #4A4A4A;
  margin: 0 0 12px;
}
.ct-b2b__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
  transition: gap 0.2s;
}
.ct-b2b__link:hover {
  gap: 10px;
}

/* Quick links */
.ct-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ct-quicklinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F0EDE8;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  color: #4A4A4A;
  text-decoration: none;
  transition: color 0.2s;
}
.ct-quicklinks a:last-child {
  border-bottom: none;
}
.ct-quicklinks a:hover {
  color: #1A1A1A;
}
.ct-quicklinks a span {
  transition: transform 0.2s;
  color: #8A8A8A;
}
.ct-quicklinks a:hover span {
  transform: translateX(4px);
  color: #1A1A1A;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ct-info {
    position: static;
  }
}

@media (max-width: 767px) {
  .ct-page {
    padding-top: 80px;
  }
  .ct-header__title {
    font-size: 28px;
  }
  .ct-header__sub {
    font-size: 15px;
  }
  .ct-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ct-card {
    flex-direction: row;
    text-align: left;
    padding: 16px 20px;
    gap: 14px;
  }
  .ct-card__icon {
    margin-bottom: 0;
  }
  .ct-card__label {
    font-size: 12px;
    margin-bottom: 2px;
  }
  .ct-card__value {
    font-size: 15px;
  }
  .ct-card__sub {
    font-size: 12px;
  }
  .ct-input {
    height: 42px;
    font-size: 14px;
  }
  .ct-textarea {
    font-size: 14px;
  }
  .ct-submit {
    height: 46px;
  }
}


/* ── Print ── */
@media print {
  .ct-cards,
  .ct-dropzone,
  .ct-submit,
  .ct-socials,
  .ct-b2b,
  .ct-quicklinks {
    display: none;
  }
  .fade-section, .fade-child {
    opacity: 1;
    transform: none;
  }
  .ct-grid {
    grid-template-columns: 1fr;
  }
}
