/* ========================================
   CONTACT PAGE — Digital Atelier
   ======================================== */

/* ── Hero (mirrors portfolio hero) ── */
.ct-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.ct-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ct-hero__bg-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  max-width: none;
}

.ct-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ct-hero__accent {
  position: absolute;
  z-index: 2;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--white-dim);
  text-transform: uppercase;
}

.ct-hero__accent--tag {
  top: 90px;
  right: 60px;
}

.ct-hero__accent--count {
  bottom: 48px;
  right: 60px;
}

.ct-hero__sub {
  margin-bottom: 32px;
}

.ct-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 60px 64px;
}

.ct-hero__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 130px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ct-hero__sub {
  font-family: var(--font);
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--white-dim);
  margin-top: 16px;
}


/* ── Form Section ── */
.ct-form-section {
  padding: 120px 60px 160px;
}

.ct-form-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 120px;
}

/* Left column */
.ct-form-section__left {
  position: sticky;
  top: 140px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

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

.ct-form-section__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ct-form-section__sublabel {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--white-dim);
  text-transform: uppercase;
}

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

.ct-form-section__detail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s ease, letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-form-section__detail-link:hover {
  color: var(--white);
  letter-spacing: 2.5px;
}

.ct-detail__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--white-divider);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ct-form-section__detail-link:hover .ct-detail__icon {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.ct-form-section__note {
  padding-top: 32px;
  border-top: 1px solid var(--white-divider);
}

.ct-form-section__note p {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 2;
  color: var(--white-dim);
  text-transform: uppercase;
}

/* ── Form ── */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ct-form__progress {
  width: 100%;
  height: 1px;
  background: var(--white-divider);
  position: relative;
  overflow: hidden;
}

.ct-form__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form rows */
.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Form groups */
.ct-form__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.ct-form__group--full {
  grid-column: 1 / -1;
}

.ct-form__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s ease;
}

.ct-form__group:focus-within .ct-form__label {
  color: var(--white);
}

/* Inputs */
.ct-form__input {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--white);
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 0;
  width: 100%;
  transition: color 0.3s ease;
}

.ct-form__input::placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.ct-form__input:focus::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Animated underline */
.ct-form__line {
  height: 1px;
  background: var(--white-divider);
  position: relative;
  overflow: hidden;
}

.ct-form__line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--white);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-form__group:focus-within .ct-form__line::after {
  width: 100%;
}

/* Filled state */
.ct-form__group.is-filled .ct-form__line::after {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.ct-form__group.is-filled .ct-form__label {
  color: rgba(255, 255, 255, 0.6);
}

/* Error state */
.ct-form__group.has-error .ct-form__line::after {
  width: 100%;
  background: #e74c3c;
}

.ct-form__group.has-error .ct-form__label {
  color: #e74c3c;
}

/* Textarea */
.ct-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  font-size: 13px;
}

/* Select */
.ct-form__select-wrap {
  position: relative;
}

.ct-form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 30px;
  font-size: 11px;
  letter-spacing: 1px;
}

.ct-form__select option {
  background: var(--bg);
  color: var(--white);
  font-size: 13px;
}

.ct-form__select option[disabled] {
  color: rgba(255, 255, 255, 0.15);
}

.ct-form__select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--white-dim);
  transition: color 0.3s ease, transform 0.3s ease;
}

.ct-form__group:focus-within .ct-form__select-arrow {
  color: var(--white);
}

/* ── Industry Pills ── */
.ct-form__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-form__pill {
  cursor: pointer;
}

.ct-form__pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-form__pill-text {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--white-divider);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ct-form__pill-text:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.ct-form__pill input:checked + .ct-form__pill-text {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  font-weight: 700;
}

/* ── Checkboxes ── */
.ct-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.ct-form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.ct-form__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-form__check-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--white-divider);
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-form__check-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-form__check input:checked + .ct-form__check-box {
  border-color: var(--white);
}

.ct-form__check input:checked + .ct-form__check-box::after {
  width: 8px;
  height: 8px;
}

.ct-form__check-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s ease;
}

.ct-form__check:hover .ct-form__check-text {
  color: var(--white);
}

.ct-form__check:hover .ct-form__check-box {
  border-color: rgba(255, 255, 255, 0.4);
}

.ct-form__check input:checked ~ .ct-form__check-text {
  color: var(--white);
}

/* ── Submit ── */
.ct-form__submit-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
}

.ct-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 1px solid var(--white-divider);
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ct-form__submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--white);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.ct-form__submit:hover::before {
  width: 100%;
}

.ct-form__submit:hover {
  border-color: var(--white);
  color: var(--bg);
}

.ct-form__submit .cta__text,
.ct-form__submit .cta__slash,
.ct-form__submit .cta__arrow {
  position: relative;
  z-index: 1;
}

.ct-form__submit .cta__slash {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-form__submit:hover .cta__slash {
  animation: slashSweep 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-form__submit .cta__arrow {
  transition: transform 0.3s ease;
}

.ct-form__submit:hover .cta__arrow {
  transform: translateX(6px);
}

/* Submit sending state */
.ct-form__submit.is-sending {
  pointer-events: none;
  opacity: 0.6;
}

.ct-form__submit-note {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--white-dim);
  text-transform: uppercase;
}

/* ── Success State ── */
.ct-form__success {
  display: none;
  min-height: 500px;
  align-items: center;
  justify-content: center;
}

.ct-form__success.is-visible {
  display: flex;
}

.ct-form__success-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ct-form__success-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--white);
}

.ct-form__success-icon circle {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.ct-form__success-icon path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.ct-form__success.is-visible .ct-form__success-icon {
  opacity: 1;
  transform: scale(1);
}

.ct-form__success.is-visible .ct-form__success-icon circle {
  stroke-dashoffset: 0;
}

.ct-form__success.is-visible .ct-form__success-icon path {
  stroke-dashoffset: 0;
}

.ct-form__success-title {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.ct-form__success.is-visible .ct-form__success-title {
  opacity: 1;
  transform: translateY(0);
}

.ct-form__success-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.8;
  color: var(--white-dim);
  max-width: 360px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.ct-form__success.is-visible .ct-form__success-text {
  opacity: 1;
  transform: translateY(0);
}

.ct-form__success-btn {
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s;
}

.ct-form__success.is-visible .ct-form__success-btn {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   RESPONSIVE — Tablet
   ======================================== */
@media (max-width: 1200px) {
  .ct-hero__content { padding: 0 80px 56px; }
  .ct-hero__accent--tag { right: 40px; }
  .ct-hero__accent--count { right: 40px; }

  .ct-form-section {
    padding: 80px 30px 120px;
  }

  .ct-form-section__inner {
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
  }
}

@media (max-width: 968px) {
  .ct-hero { height: 52vh; min-height: 440px; }
  .ct-hero__content { padding: 0 40px 72px; }
  .ct-hero__accent--tag { top: 80px; right: 30px; }
  .ct-hero__accent--count { right: 30px; bottom: 36px; }

  .ct-form-section__inner {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .ct-form-section__left {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
  }

  .ct-form-section__info {
    flex: 1;
    min-width: 180px;
  }

  .ct-form-section__details {
    flex: 1;
    min-width: 200px;
  }

  .ct-form-section__note {
    flex-basis: 100%;
    border-top: 1px solid var(--white-divider);
    padding-top: 24px;
  }

  .ct-form__row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .ct-form__checks {
    gap: 8px 20px;
  }
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 640px) {
  .ct-hero { height: 50svh; min-height: 420px; }
  .ct-hero__content { padding: 0 20px 80px; }
  .ct-hero__accent--tag { top: 80px; left: 20px; right: auto; font-size: 10px; }
  .ct-hero__accent--count { bottom: 24px; right: 20px; font-size: 9px; }

  .ct-form-section {
    padding: 60px 20px 100px;
  }

  .ct-form-section__inner {
    gap: 60px;
  }

  .ct-form-section__left {
    flex-direction: column;
    gap: 32px;
  }

  .ct-form {
    gap: 28px;
  }

  .ct-form__row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ct-form__pills {
    gap: 8px;
  }

  .ct-form__pill-text {
    padding: 8px 16px;
    font-size: 9px;
  }

  .ct-form__checks {
    flex-direction: column;
    gap: 4px;
  }

  .ct-form__submit-wrap {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .ct-form__submit {
    width: 100%;
    justify-content: center;
    padding: 18px 36px;
  }
}

/* ========================================
   ANIMATIONS — GSAP-driven (no CSS hidden state)
   ======================================== */
