/* ===============================
   CONTACT PAGE — KanFolio Theme
   Exact colors from styles.css:
     Bg:        #f9f4ec
     Cards:     #fff
     Text:      #1a1a1a, #3f3f3f
     Accent:    #e4502b
     Button:    #111 bg, #e67e22 arrow accent
     Hover:     translateY(-5px) + deeper shadow
     Nav active:#1a1a1a bg, #fff text
     Focus:     rgba(228,80,43,0.6) border
   =============================== */

/* ===== HERO BANNER ===== */
.kct-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
  background: #f9f4ec;
}

.kct-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(228, 80, 43, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(238, 162, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(145, 250, 255, 0.04) 0%, transparent 60%);
  z-index: 0;
}

/* Dot grid pattern — same as hero shell */
.kct-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
}

.kct-hero-overlay {
  display: none;
}

.kct-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  color: #1a1a1a;
}

.kct-hero-kicker {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e4502b;
  margin-bottom: 1.8rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s, box-shadow 0.3s;
}

.kct-hero-kicker:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.kct-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: #1a1a1a;
}

.kct-hero-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #e4502b;
}

.kct-hero-desc {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3f3f3f;
}

/* Contact links row — pill style matching kanfrosted */
.kct-hero-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}

.kct-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Poppins', sans-serif;
}

.kct-hero-link::after {
  display: none;
}

.kct-hero-link:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(94, 197, 188, 0.25);
  color: #fff;
  background: linear-gradient(135deg, #7ecbc4, #e08d8d);
  border-color: transparent;
}

.kct-hero-link:hover .kct-hero-link-icon {
  color: #fff;
}

.kct-hero-link-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #e4502b;
  transition: color 0.35s ease;
}

.kct-hero-link-icon svg {
  width: 100%;
  height: 100%;
}


/* ===== FORM SECTION ===== */
.kct-form-section {
  background: #f9f4ec;
  padding: 2rem 2rem 5rem;
  position: relative;
}

.kct-form-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.kct-form-container:hover {
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.1);
}

/* Cursor glow on container */
.kct-form-container::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 80, 43, 0.04) 0%, transparent 70%);
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.kct-form-container.glow-active::before {
  opacity: 1;
}

.kct-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.kct-form-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.kct-form-heading em {
  font-style: italic;
  color: #e4502b;
}

.kct-form-subtext {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #3f3f3f;
  line-height: 1.65;
}

/* Two-column: visual + form */
.kct-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Left visual */
.kct-form-visual {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.kct-visual-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  aspect-ratio: 4 / 5;
  transition: transform 0.3s, box-shadow 0.3s;
}

.kct-visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.kct-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.kct-visual-card:hover img {
  transform: scale(1.05);
}

.kct-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
}

.kct-visual-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.1rem;
}

.kct-visual-role {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Highlight stats */
.kct-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.kct-highlight-item {
  text-align: center;
  padding: 0.9rem 0.4rem;
  border-radius: 1rem;
  background: #fdf8f0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.kct-highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.kct-highlight-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e4502b;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.15rem;
}

.kct-highlight-label {
  display: block;
  font-size: 0.65rem;
  color: #3f3f3f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Right: Form */
.kct-form-wrap {
  background: #fdf8f0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.kct-form-wrap:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.kct-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kct-form-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e4502b;
  margin: 0.5rem 0 0.15rem;
  font-family: 'Poppins', sans-serif;
}

.kct-form-group-title:first-child {
  margin-top: 0;
}

.kct-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.kct-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
  outline: none;
}

.kct-input::placeholder {
  color: #999;
}

.kct-input:focus {
  border-color: rgba(228, 80, 43, 0.6);
  box-shadow: 0 0 0 1px rgba(228, 80, 43, 0.35);
  background: #fffdf8;
}

.kct-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.kct-select option {
  background: #fff;
  color: #1a1a1a;
}

.kct-textarea {
  border-radius: 1rem;
  resize: vertical;
  min-height: 120px;
}

.kct-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
}

.kct-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #3f3f3f;
  cursor: pointer;
}

.kct-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  cursor: pointer;
  accent-color: #e4502b;
}

/* Submit button — matches .kan-button exactly */
.kct-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 38px;
  border: none;
  background: #111;
  color: #fff;
  font: 600 1.05rem/1 system-ui, sans-serif;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.kct-submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Shimmer sweep — same as .kan-button */
.kct-submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: skewX(-25deg);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 0;
  pointer-events: none;
}

.kct-submit-btn:hover::after {
  transform: translateX(300%) skewX(-25deg);
  opacity: 1;
}

.kct-btn-arrow {
  width: 16px;
  height: 16px;
  color: #e67e22;
  transition: transform 0.3s ease;
}

.kct-submit-btn:hover .kct-btn-arrow {
  transform: translateX(4px);
}


/* ===== SERVICE NAVIGATION CARDS ===== */
.kct-services-strip {
  background: #f9f4ec;
  padding: 2.5rem 2rem;
}

.kct-services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.kct-service-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.kct-service-card {
  flex: 1;
  padding: 1.8rem 1.5rem;
  text-decoration: none;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-radius: 1rem;
}

.kct-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.kct-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(228, 80, 43, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.kct-service-card:hover::before {
  opacity: 1;
}

.kct-service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.kct-service-card:hover .kct-service-num {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.kct-service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.kct-service-desc {
  font-size: 0.82rem;
  color: #3f3f3f;
  margin: 0;
  line-height: 1.5;
}

.kct-service-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e4502b;
  margin-top: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.kct-service-card:hover .kct-service-link {
  opacity: 1;
  transform: translateY(0);
}


/* ===== FLOATING PARTICLES ===== */
.kct-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(228, 80, 43, 0.08);
  pointer-events: none;
  z-index: 0;
  animation: kct-float ease-in-out infinite alternate;
}

@keyframes kct-float {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(15px, -20px) scale(1.3); opacity: 0.1; }
}


/* ===== ANIMATIONS ===== */
@keyframes kct-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.kct-hero-kicker,
.kct-hero-title,
.kct-hero-desc,
.kct-hero-links {
  animation: kct-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kct-hero-kicker { animation-delay: 0.1s; }
.kct-hero-title { animation-delay: 0.25s; }
.kct-hero-desc { animation-delay: 0.4s; }
.kct-hero-links { animation-delay: 0.55s; }


/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .kct-hero { min-height: 65vh; padding-top: 7rem; }

  .kct-form-grid {
    grid-template-columns: 1fr;
  }

  .kct-form-visual {
    order: -1;
  }

  .kct-visual-card {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }

  .kct-services-grid {
    flex-direction: column;
  }

  .kct-service-divider {
    width: 100%;
    height: 1px;
  }

  .kct-service-link {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .kct-hero { min-height: 55vh; padding: 5rem 1.25rem 3rem; }

  .kct-hero-links {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .kct-inputs-row {
    grid-template-columns: 1fr;
  }

  .kct-form-wrap {
    padding: 1.4rem 1.1rem;
  }

  .kct-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .kct-form-section { padding: 2rem 1rem 3rem; }

  .kct-highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .kct-highlight-num { font-size: 1.1rem; }
  .kct-highlight-label { font-size: 0.6rem; }

  .kct-service-card {
    padding: 1.4rem 1.1rem;
  }

  .kct-form-container {
    padding: 1.5rem 1.1rem;
    border-radius: 1.4rem;
  }
}
