/* ================================================================
   contacts.css — Aqua Laundry · CONTACTS PAGE
   ================================================================
   ⚠️  ต้องโหลด main.css ก่อนไฟล์นี้เสมอ
   โค้ดที่ซ้ำกันทุกหน้า (hero, breadcrumb, :root tokens,
   utilities, keyframes) ถูกย้ายไปรวมที่ main.css แล้ว
   ================================================================ */

/* :root vars → moved to main.css */

/* ============================================
   PAGE
   ============================================ */

.ct-page { background: #f8fafc; padding: 48px 0 80px; }

/* ============================================
   CHANNEL CARDS (top row)
   ============================================ */

.ct-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.ct-channel-card {
  display: flex; align-items: center; gap: 14px;
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 16px; padding: 16px 18px;
  text-decoration: none; color: inherit;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(0,119,182,0.06);
}
.ct-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,119,182,0.12);
  border-color: rgba(0,180,216,0.25);
}

.ct-channel-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white; transition: transform 0.25s;
}
.ct-channel-card:hover .ct-channel-icon { transform: scale(1.08); }

.ct-ci-blue   { background: linear-gradient(135deg, #00B4D8, #0077B6); box-shadow: 0 3px 10px rgba(0,180,216,0.28); }
.ct-ci-green  { background: linear-gradient(135deg, #06c755, #00a040); box-shadow: 0 3px 10px rgba(6,199,85,0.28); }
.ct-ci-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 3px 10px rgba(99,102,241,0.28); }
.ct-ci-fb     { background: linear-gradient(135deg, #1877f2, #0d65d0); box-shadow: 0 3px 10px rgba(24,119,242,0.28); }

.ct-channel-body { flex: 1; min-width: 0; }
.ct-channel-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; margin-bottom: 2px; }
.ct-channel-val { font-size: 14px; font-weight: 800; color: var(--aqua-dark); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-channel-sub { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

.ct-channel-arrow { font-size: 11px; color: #cbd5e1; flex-shrink: 0; transition: all 0.2s; }
.ct-channel-card:hover .ct-channel-arrow { color: var(--aqua-primary); transform: translateX(3px); }

/* ============================================
   MAIN LAYOUT
   ============================================ */

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* ============================================
   FORM CARD
   ============================================ */

.ct-form-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 2px 16px rgba(0,119,182,0.06);
}

.ct-form-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1.5px solid #f1f5f9;
}

.ct-form-header-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--aqua-gradient); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white;
  box-shadow: 0 4px 14px rgba(0,180,216,0.3);
}

.ct-form-title {
  font-family: 'Kanit', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--aqua-dark); margin: 0 0 4px;
}
.ct-form-sub { font-size: 13.5px; color: #64748b; margin: 0; }

/* Topic selector */
.ct-topic-row { margin-bottom: 24px; }
.ct-topic-label { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }

.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; }

.ct-topic-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border: 1.5px solid #e2e8f0;
  border-radius: 50px; background: white;
  font-size: 13px; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.ct-topic-btn i { font-size: 12px; }
.ct-topic-btn:hover { border-color: var(--aqua-primary); color: var(--aqua-secondary); background: rgba(0,180,216,0.04); }
.ct-topic-btn.active { background: var(--aqua-gradient); border-color: transparent; color: white; box-shadow: 0 3px 10px rgba(0,180,216,0.3); }

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

.ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.ct-label { font-size: 13px; font-weight: 700; color: #374151; }
.ct-required { color: #ef4444; }

.ct-input, .ct-textarea {
  padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 11px;
  font-size: 14px; color: #1e293b; background: white;
  transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
  width: 100%; box-sizing: border-box;
}
.ct-input:focus, .ct-textarea:focus {
  outline: none; border-color: var(--aqua-primary);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}
.ct-input::placeholder, .ct-textarea::placeholder { color: #94a3b8; }
.ct-input-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; }

.ct-input-icon-wrap { position: relative; }
.ct-input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #94a3b8; pointer-events: none; }
.ct-input-has-icon { padding-left: 38px; }

.ct-textarea { resize: vertical; min-height: 110px; }

.ct-char-count { text-align: right; font-size: 11.5px; color: #94a3b8; margin-top: 4px; }

.ct-err { font-size: 12px; color: #ef4444; display: none; }

/* Consent */
.ct-consent-row { margin-top: 4px; }

.ct-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }

.ct-checkbox-label input[type="checkbox"] { display: none; }

.ct-checkmark {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid #cbd5e1; border-radius: 5px;
  background: white; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.ct-checkbox-label input:checked + .ct-checkmark {
  background: var(--aqua-gradient); border-color: transparent;
}
.ct-checkbox-label input:checked + .ct-checkmark::after {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 10px; color: white;
}

.ct-consent-text { font-size: 13px; color: #475569; line-height: 1.6; }
.ct-consent-text a { color: var(--aqua-primary); text-decoration: underline; }

/* Submit button */
.ct-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; width: 100%;
  background: var(--aqua-gradient); color: white;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: all 0.28s;
  box-shadow: 0 4px 16px rgba(0,180,216,0.35);
  margin-top: 4px;
}
.ct-submit-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,180,216,0.45); }
.ct-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.ct-submit-text, .ct-submit-loading { display: inline-flex; align-items: center; gap: 8px; }

/* Success state */
.ct-success {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.ct-success-icon { font-size: 56px; color: #22c55e; margin-bottom: 16px; }
.ct-success h3 { font-family: 'Kanit', sans-serif; font-size: 24px; font-weight: 800; color: var(--aqua-dark); margin: 0 0 10px; }
.ct-success p { font-size: 14.5px; color: #64748b; line-height: 1.7; margin: 0 0 24px; }

.ct-reset-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border: 1.5px solid #e2e8f0;
  border-radius: 10px; background: white;
  font-size: 13.5px; font-weight: 700; color: #64748b;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.ct-reset-btn:hover { border-color: var(--aqua-primary); color: var(--aqua-secondary); }

/* ============================================
   INFO ASIDE
   ============================================ */

.ct-info-aside { display: flex; flex-direction: column; gap: 18px; }

.ct-info-card {
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0,119,182,0.06);
}

.ct-info-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.ct-info-card-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(0,180,216,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--aqua-primary);
}

.ct-info-card-title {
  font-family: 'Kanit', sans-serif;
  font-size: 16px; font-weight: 800; color: var(--aqua-dark); margin: 0;
}

/* Info rows */
.ct-info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.ct-info-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: #475569; line-height: 1.5;
}
.ct-info-row i { color: var(--aqua-primary); font-size: 13px; flex-shrink: 0; margin-top: 2px; width: 14px; }

/* Hours */
.ct-hours { background: #f8fafc; border-radius: 10px; padding: 14px 16px; }
.ct-hours-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  color: #94a3b8; margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.ct-hours-title i { color: var(--aqua-primary); }
.ct-hours-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #475569; padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}
.ct-hours-row:last-child { border-bottom: none; }
.ct-hours-row strong { font-weight: 700; color: var(--aqua-dark); }
.ct-closed span, .ct-closed strong { color: #94a3b8 !important; }

/* Departments */
.ct-dept-list { display: flex; flex-direction: column; gap: 12px; }

.ct-dept-item { display: flex; align-items: center; gap: 12px; }

.ct-dept-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.ct-dot-blue   { background: #00B4D8; }
.ct-dot-teal   { background: #14b8a6; }
.ct-dot-indigo { background: #6366f1; }
.ct-dot-green  { background: #22c55e; }

.ct-dept-info { display: flex; flex-direction: column; }
.ct-dept-info strong { font-size: 13px; font-weight: 700; color: var(--aqua-dark); }
.ct-dept-info span { font-size: 12px; color: #64748b; }

/* Map card */
.ct-map-card {
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,119,182,0.06);
}

.ct-map-header {
  padding: 14px 20px; font-size: 13px; font-weight: 700; color: var(--aqua-dark);
  border-bottom: 1.5px solid #f1f5f9; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f8fbff, #f0f9ff);
}
.ct-map-header i { color: var(--aqua-primary); }

.ct-map-embed { line-height: 0; }
.ct-map-embed iframe { display: block; filter: saturate(0.9) contrast(1.02); }

.ct-map-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; font-size: 13px; font-weight: 700;
  color: var(--aqua-secondary); text-decoration: none;
  background: rgba(0,180,216,0.05);
  border-top: 1px solid rgba(0,180,216,0.1);
  transition: background 0.2s;
}
.ct-map-link:hover { background: rgba(0,180,216,0.1); color: var(--aqua-secondary); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .ct-layout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 900px) {
  .ct-channels { grid-template-columns: repeat(2, 1fr); }
  .ct-layout { grid-template-columns: 1fr; }
  .ct-info-aside { display: grid; grid-template-columns: repeat(2, 1fr); }
  .ct-map-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .ct-page { padding: 24px 0 60px; }
  .ct-channels { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ct-channel-card { padding: 12px 14px; gap: 10px; }
  .ct-channel-icon { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
  .ct-channel-val { font-size: 12.5px; }
  .ct-form-card { padding: 22px 18px; border-radius: 16px; }
  .ct-form-row { grid-template-columns: 1fr; gap: 14px; }
  .ct-info-aside { grid-template-columns: 1fr; }
  .ct-form-header { gap: 12px; }
  .ct-form-title { font-size: 19px; }
}

@media (max-width: 420px) {
  .ct-channels { grid-template-columns: 1fr; }
  .ct-channel-arrow { display: none; }
}
