/* ===== Brand Ratio — Contact (/contact) — Gallery Quiet (refine 2026-06-18) =====
   Bề rộng 1496px đồng nhất header/footer. Form chạy thật → POST /api/v1/brand/leads.
   Icon nét mảnh trong VÒNG HAIRLINE (bỏ hộp vuông cũ). Form editorial: nhãn eyebrow + input
   GẠCH-CHÂN, focus vạch mực→mint mọc trái→phải (cơ chế gạch chân Equinox). Nút dùng .btn-sweep
   (components.css). Giờ làm việc timetable 3 cột vạch dọc. Bản đồ full-width
   đơn-sắc (filter grayscale+sepia) hợp tông giấy/mực; hover trả màu thật. Token-only. */

/* ---- HERO ---- */
.ct-hero {
  max-width: 1496px; margin: 0 auto; padding: 96px 28px 56px;
  /* flex-start + text flex:1 → avatar luôn neo MÉP PHẢI & ĐỈNH cố định, không dịch khi text đổi (VI/EN) */
  display: flex; align-items: flex-start; justify-content: space-between; gap: 56px;
}
.ct-hero-text { flex: 1 1 auto; min-width: 0; }
/* Đội ngũ: 2 khung tròn ảnh nhân viên — neo cố định, không dịch khi cột trái co giãn */
.ct-hero-team { flex-shrink: 0; display: inline-flex; align-items: center; margin-top: 10px; }
.ct-hero-avatar {
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden;
  background: var(--brand-strip); border: 1px solid rgba(40, 40, 47, 0.12);
  background-repeat: no-repeat; background-position: center; background-size: cover;
}
/* Khung 2 thúc nhẹ vào khung 1 + viền giấy tách lớp */
.ct-hero-avatar[data-avatar='2'] { margin-left: -32px; box-shadow: -10px 0 0 0 var(--brand-bg, #fff); }
/* Placeholder silhouette khi chưa gắn ảnh (SVG nền) */
.ct-hero-avatar:not([style]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 168'%3E%3Crect width='168' height='168' fill='%23f6f5f2'/%3E%3Cg fill='none' stroke='%23c9c7c1' stroke-width='3'%3E%3Ccircle cx='84' cy='68' r='26'/%3E%3Cpath d='M40 140c0-26 20-42 44-42s44 16 44 42' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}
.ct-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-ink); font-weight: 700; margin-bottom: 24px;
}
.ct-eyebrow-dot { width: 34px; height: 1.5px; background: var(--brand-ink); display: inline-block; }
.ct-title {
  font-family: var(--brand-font-display); font-weight: var(--brand-weight-display);
  font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.026em;
  margin: 0 0 20px; color: var(--brand-ink); text-wrap: balance;
}
.ct-title-light { font-weight: var(--brand-weight-thin); letter-spacing: -0.015em; }
.ct-hero-sub { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: var(--brand-ink-2); max-width: 560px; margin: 0; }

/* ---- BODY 2 cột: thông tin + form ---- */
.ct-body { max-width: 1496px; margin: 0 auto; padding: 24px 28px 72px; }
.ct-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 72px; align-items: stretch; }
/* Cột trái flex để đẩy hộp dùng thử xuống đáy — căn đáy với form bên phải */
.ct-info { display: flex; flex-direction: column; }

/* ---- Cột trái: thông tin liên hệ ---- */
.ct-info-title, .ct-form-title {
  font-family: var(--brand-font-display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.015em; color: var(--brand-ink); margin: 0 0 24px;
}
.ct-info-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 24px; }
.ct-info-item { display: flex; gap: 16px; align-items: flex-start; }
/* Icon: vòng tròn hairline (nét mảnh trong suốt) — thanh, hợp line-language Ratio */
.ct-info-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(40, 40, 47, 0.16); background: transparent; color: var(--brand-ink);
  transition: border-color var(--brand-dur-fast), background var(--brand-dur-fast);
}
.ct-info-item:hover .ct-info-icon { border-color: var(--brand-ink); background: var(--brand-strip); }
.ct-info-icon svg { width: 20px; height: 20px; }
.ct-info-label { font-size: 13px; font-weight: 700; color: var(--brand-ink); margin-bottom: 3px; }
.ct-info-value { font-size: 14px; color: var(--brand-ink-2); line-height: 1.55; }
.ct-info-link { position: relative; color: var(--brand-ink-2); text-decoration: none; transition: color var(--brand-dur-fast); }
.ct-info-link:hover { color: var(--brand-ink); }

/* Hộp dùng thử — strip giấy ấm, nút sáng phẳng; margin-top auto → đáy card căn đáy form */
.ct-trial { margin-top: auto; background: var(--brand-strip); border: 1px solid rgba(40, 40, 47, 0.1); border-radius: 16px; padding: 24px; }
.ct-trial-title { font-size: 15px; font-weight: 750; color: var(--brand-ink); margin-bottom: 8px; }
.ct-trial-desc { font-size: 13px; color: var(--brand-ink-2); line-height: 1.6; margin: 0 0 16px; }
/* Nút "Bắt đầu ngay": mint-sweep như nút gửi — nghỉ đen, hover quét mint từ trái, chữ → mực */
/* Nút dùng thử (đen): hover .btn-sweep ở components.css; padding ngang ở .btn-sweep-label */
.ct-trial-btn {
  display: inline-flex; align-items: center; padding: 10px 0; border-radius: 999px;
  font-size: 13.5px; font-weight: 650; text-decoration: none;
}
.ct-trial-btn .btn-sweep-label { padding: 0 20px; }

/* ---- Cột phải: form editorial trên nền giấy (bỏ card trắng + bóng trôi nổi) ---- */
.ct-form-wrap {
  background: var(--brand-strip); border: 1px solid rgba(40, 40, 47, 0.1);
  border-radius: 18px; padding: 40px 40px 36px;
}
/* Nhãn kiểu eyebrow chữ nhỏ in hoa giãn ký tự */
.ct-field { position: relative; margin-bottom: 26px; }
.ct-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ct-field-row .ct-field { margin-bottom: 26px; }
.ct-field label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-ink-2); margin-bottom: 9px;
}
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; padding: 9px 2px; border: none; border-radius: 0;
  border-bottom: 1.5px solid rgba(40, 40, 47, 0.18); background: transparent;
  font-family: var(--brand-font); font-size: 15px; color: var(--brand-ink);
  outline: none; transition: border-color var(--brand-dur-fast);
}
.ct-field textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--brand-muted); }
/* Select native → mũi tên tự vẽ (chevron mực) */
.ct-field select {
  appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.5l4 4 4-4' stroke='%2328282f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 13px;
}
/* Vạch chân active: mực→mint mọc từ TRÁI khi focus (đè hairline tĩnh) — như gạch chân Equinox */
.ct-field::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: linear-gradient(to right, var(--brand-ink) 72%, var(--brand-mint));
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
  transition: transform 0.32s var(--brand-ease-eqx);
}
.ct-field:focus-within::after { transform: scaleX(1); }

/* Nút gửi: mint-sweep (đồng bộ pricing) — phẳng, KHÔNG pill bóng, KHÔNG viền.
   Nền gradient [mint | mực] rộng 200%: nghỉ lộ nửa mực; hover trượt → lộ nửa mint từ trái.
   Label clip gradient [mực | trắng] trùng toạ độ → chữ trắng↔mực quét đồng bộ. */
/* Nút gửi form (đen): hover .btn-sweep ở components.css; nhãn .btn-sweep-label (contact.js đổi chữ qua id nhãn) */
.ct-submit {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 6px; min-width: 210px; padding: 14px 0; border-radius: 999px;
  cursor: pointer; font-family: var(--brand-font); font-size: 15px; font-weight: 650;
}
.ct-submit .btn-sweep-label { padding: 0 28px; }
.ct-submit:disabled { opacity: 0.55; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .ct-field::after { transition: none; }
}

/* Phản hồi sau submit (server-driven success/error) */
.ct-feedback { margin-top: 20px; padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.ct-feedback--success { background: var(--brand-surface); border: 1px solid var(--brand-ink); color: var(--brand-ink); font-weight: 600; }
.ct-feedback--error { background: var(--brand-surface); border: 1.5px solid var(--brand-ink); color: var(--brand-ink); }

/* ===== GIỜ LÀM VIỆC — trong cột info (dưới Response time): tiêu đề + line + 3 cột, không icon/viền ===== */
.ct-hours { margin: 4px 0 0; }
.ct-hours-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-ink-2); }
.ct-hours-rule { height: 1px; background: rgba(40, 40, 47, 0.12); margin: 11px 0 16px; }
.ct-hours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ct-hours-col { display: flex; flex-direction: column; gap: 5px; }
.ct-hours-day { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink-2); }
/* Dòng giờ + "Phone support only": màu & weight khớp .ct-info-value ("Within 1–2 business days") */
.ct-hours-val { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--brand-ink-2); }

/* ===== BẢN ĐỒ full-width, ngay trên footer — Google embed đơn-sắc ===== */
.ct-map { position: relative; width: 100%; line-height: 0; background: var(--brand-strip-2); }
.ct-map-frame {
  display: block; width: 100%; height: 660px; border: 0;
  /* Đơn-sắc giấy/mực CỐ ĐỊNH — không có hiệu ứng hover (owner chốt bỏ) */
  filter: grayscale(1) sepia(0.18) contrast(1.02) brightness(1.03);
}
/* Card địa chỉ branded — neo theo gutter cột nội dung 1496 (paper + mực) */
.ct-map-card {
  position: absolute; bottom: 28px; left: max(28px, calc((100% - 1496px) / 2 + 28px));
  display: flex; gap: 14px; align-items: flex-start; max-width: 340px; line-height: 1.5;
  background: var(--brand-surface); border: 1px solid rgba(40, 40, 47, 0.12);
  border-radius: 16px; padding: 18px 22px; box-shadow: 0 14px 38px rgba(40, 40, 47, 0.14);
}
.ct-map-card-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(40, 40, 47, 0.16); color: var(--brand-ink);
}
.ct-map-card-ico svg { width: 20px; height: 20px; }
.ct-map-card-title { font-size: 14px; font-weight: 700; color: var(--brand-ink); margin-bottom: 3px; }
.ct-map-card-addr { font-size: 13px; color: var(--brand-ink-2); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .ct-hero-avatar { width: 132px; height: 132px; }
}
@media (max-width: 860px) {
  .ct-hero { flex-direction: column; align-items: flex-start; gap: 36px; padding-bottom: 40px; }
  .ct-grid { grid-template-columns: 1fr; gap: 44px; }
  .ct-trial { margin-top: 12px; }
  .ct-form-wrap { padding: 32px 28px; }
  .ct-map-frame { height: 540px; }
}
@media (max-width: 560px) {
  .ct-field-row { grid-template-columns: 1fr; gap: 0; }
  .ct-form-wrap { padding: 26px 22px; }
  .ct-hours-grid { gap: 12px; }
  .ct-map-card { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
