/* ==========================================================================
   Trakanalytica Academy - Contact Us page (contact.php)
   All selectors are prefixed "ct-" so nothing here can collide with the
   shared rules in assets/style.css. Loaded only on the Contact page through
   $pageCss in includes/header.php.
   ========================================================================== */

/* 1500px of content, plus the 32px side padding */
.ct-wrap { max-width: 1564px; margin: 0 auto; padding: 0 32px; }
.ct-section { position: relative; padding: 96px 0; background: #fff; scroll-margin-top: 90px; }

/* ---------- Shared bits ---------- */
.ct-eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple-mid);
}
.ct-eyebrow--light { color: var(--accent-light); }

.ct-h2 {
  position: relative; margin: 0 0 22px; padding-bottom: 18px;
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.2; color: var(--navy);
}
.ct-h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--purple-mid), #C25A0A);
}
.ct-h2--center { text-align: center; }
.ct-h2--center::after { left: 50%; transform: translateX(-50%); }
.ct-h2--light { color: #fff; }

.ct-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.ct-head .ct-h2 { margin-bottom: 0; }
.ct-head p { margin: 22px 0 0; font-size: 1.05rem; line-height: 1.75; color: var(--text-body); }

.ct-ico {
  flex-shrink: 0; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px;
  font-size: 1.4rem; color: var(--purple-mid); background: rgba(124,58,237,0.1);
  transition: var(--transition);
}
.ct-ico--sm { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; }
.ct-ico--wa { color: #1FA855; background: rgba(37,211,102,0.12); }

.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; text-align: center;
  cursor: pointer; transition: var(--transition);
}
.ct-btn i { font-size: 0.85em; transition: transform .25s ease; }
.ct-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.ct-btn--primary { background: linear-gradient(135deg, #AD4A06, #CC5E0A); color: #fff; box-shadow: 0 10px 28px rgba(173,74,6,0.32); }
.ct-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(173,74,6,0.42); }

/* ==========================================================================
   01  PAGE INTRODUCTION
   ========================================================================== */
.ct-hero {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px;
  background: linear-gradient(135deg, #0B1730 0%, #1A2E6B 55%, #4C1D95 100%);
}
.ct-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 88% 12%, rgba(167,139,250,0.36), transparent 70%),
    radial-gradient(460px 360px at 6% 98%, rgba(194,90,10,0.20), transparent 70%);
}
.ct-hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.ct-hero-grid { position: relative; z-index: 1; }
.ct-hero-copy { max-width: 1000px; margin: 0 auto; text-align: center; }
.ct-crumb { margin-bottom: 26px; text-align: center; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.ct-crumb a { color: rgba(255,255,255,0.85); }
.ct-crumb a:hover { color: #fff; }
.ct-crumb i { margin: 0 6px; font-size: 0.6rem; }
.ct-hero-copy h1 {
  margin: 0 0 22px; font-family: var(--font-head); font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 700; line-height: 1.16; color: #fff; text-wrap: balance;
}
.ct-hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #E0B25A, #D08A38);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ct-hero-lead { max-width: 720px; margin: 0 auto 12px; font-size: 1.15rem; line-height: 1.75; color: rgba(255,255,255,0.86); }
.ct-hero-lead:last-child { margin-bottom: 0; }

/* ==========================================================================
   02  CONTACT INFORMATION
   ========================================================================== */
.ct-info { padding: 72px 0 12px; }
.ct-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ct-card {
  display: flex; flex-direction: column; padding: 32px 28px; border-radius: 22px;
  background: #fff; border: 1px solid var(--light-gray);
  box-shadow: 0 14px 40px rgba(11,23,48,0.10); transition: var(--transition);
}
.ct-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,0.25); }
.ct-card h3 { margin: 20px 0 8px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: var(--navy); }
.ct-card p { margin: 0; font-size: 0.98rem; line-height: 1.7; color: var(--mid-gray); }
.ct-card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; line-height: 1.4;
  color: var(--purple-mid); word-break: break-word;
}
.ct-card-link:hover { color: var(--purple); }
.ct-card-link i { font-size: 0.8em; transition: transform .25s ease; }
.ct-card-link:hover i { transform: translateX(4px); }
.ct-card-link--wa { color: #1FA855; }
.ct-card-link--wa:hover { color: #178545; }

/* ==========================================================================
   03  CONTACT AND INQUIRY FORM
   ========================================================================== */
.ct-form-wrap { max-width: 860px; margin: 0 auto; }
.ct-form-card {
  padding: 48px 44px; border-radius: 28px; background: #fff; border: 1px solid var(--light-gray);
  box-shadow: 0 14px 40px rgba(11,23,48,0.08);
}

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { margin-bottom: 20px; }
.ct-field[hidden] { display: none; }
.ct-field label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-dark); }
.ct-req { color: #dc2626; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--light-gray); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark); background: var(--off-white);
  outline: none; transition: var(--transition); resize: vertical;
}
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus {
  border-color: var(--purple-mid); background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.ct-field textarea { min-height: 130px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-submit { width: 100%; margin-top: 4px; }
.ct-privacy { margin: 16px 0 0; text-align: center; font-size: 0.8rem; color: var(--mid-gray); }
.ct-privacy i { font-size: 0.7rem; }

.ct-alert { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; padding: 20px 24px; border-radius: 14px; }
.ct-alert i { flex-shrink: 0; margin-top: 2px; font-size: 1.3rem; }
.ct-alert p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.ct-alert .ct-alert-title { margin-bottom: 4px; font-weight: 700; }
.ct-alert--ok { background: rgba(22,163,74,0.08); border: 1.5px solid rgba(22,163,74,0.3); }
.ct-alert--ok i { color: #16a34a; }
.ct-alert--ok p { color: #166534; }
.ct-alert--ok .ct-alert-title { color: #15803d; }
.ct-alert--err { background: rgba(220,38,38,0.07); border: 1.5px solid rgba(220,38,38,0.25); }
.ct-alert--err i { color: #dc2626; }
.ct-alert--err p { color: #991b1b; }
.ct-alert--err .ct-alert-title { color: #b91c1c; }

/* ==========================================================================
   04  CUSTOMIZED & INSTITUTIONAL TRAINING
   ========================================================================== */
.ct-custom { position: relative; overflow: hidden; padding: 96px 0; color: #fff; background: linear-gradient(135deg, #0B1730 0%, #1A2E6B 55%, #4C1D95 100%); }
.ct-custom-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(480px 380px at 92% 10%, rgba(167,139,250,0.30), transparent 70%),
    radial-gradient(420px 320px at 4% 100%, rgba(194,90,10,0.16), transparent 70%);
}
.ct-custom-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.ct-custom-copy p { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.85; color: rgba(255,255,255,0.84); }
.ct-custom-copy p:last-child { margin-bottom: 0; }
.ct-custom-side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ct-pills { width: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ct-pills li {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; line-height: 1.35; color: #fff;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
}
.ct-pills .ct-ico { color: var(--navy); background: linear-gradient(135deg, #E0B25A, #D08A38); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .ct-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .ct-section { padding: 76px 0; }
  .ct-hero { padding: 64px 0 76px; }
  .ct-info { padding-top: 56px; }
  .ct-custom { padding: 76px 0; }
  .ct-custom-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  .ct-wrap { padding: 0 20px; }
  .ct-section, .ct-custom { padding: 60px 0; }
  .ct-hero { padding: 56px 0 64px; }
  .ct-info { padding-top: 44px; }
  .ct-info-grid { grid-template-columns: 1fr; }
  .ct-form-card { padding: 30px 22px; border-radius: 22px; }
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .ct-pills li { font-size: 1.08rem; padding: 16px 18px; }
  .ct-custom-side .ct-btn { width: 100%; }
}