/* Connect2English — Contact Us page.
   Page chrome, :root tokens, .container, .btn*, .section, .eyebrow and
   .section-title are provided globally by resources/css/legacy.css;
   this file only holds the .ct-* page styles. */

/* ---------- Hero ---------- */
.ct-hero {
  background: var(--grad-brand);
  color: #fff;
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.35;
  pointer-events: none;
}
.ct-hero .container {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}
.ct-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
}
.ct-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
.ct-hero .breadcrumb a:hover {
  color: #fff;
}
.ct-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 18px;
}
.ct-hero h1 span {
  color: var(--accent-light);
}
.ct-hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Quick contact cards ---------- */
.ct-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.ct-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.ct-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.ct-card .ct-ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: var(--grad-brand);
}
.ct-card:nth-child(even) .ct-ico {
  background: var(--grad-gold);
}
.ct-card h3 {
  font-size: 1.05rem;
  color: var(--brand-dark);
  margin: 0 0 8px;
}
.ct-card p,
.ct-card a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.ct-card a:hover {
  color: var(--brand);
}

/* ---------- Form + aside ---------- */
.ct-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.ct-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.ct-form-wrap h2 {
  font-size: 1.6rem;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.ct-form-wrap > p {
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.6;
}
.ct-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ct-field.full {
  grid-column: 1 / -1;
}
.ct-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.ct-field input,
.ct-field select,
.ct-field textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  outline: none;
  transition: 0.2s;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 95, 180, 0.1);
}
.ct-field textarea {
  resize: vertical;
  min-height: 130px;
}

/* ---------- Aside ---------- */
.ct-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ct-aside-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 200px;
}
.ct-aside-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ct-aside-card {
  background: var(--brand-dark);
  color: #cfe0ef;
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.ct-aside-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 124, 32, 0.18), transparent 70%);
  top: -120px;
  right: -120px;
}
.ct-aside-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 18px;
  position: relative;
}
.ct-aside-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
}
.ct-aside-row i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ct-aside-row span {
  font-size: 0.92rem;
  line-height: 1.55;
}
.ct-aside-row a {
  color: #cfe0ef;
}
.ct-aside-row a:hover {
  color: #fff;
}
.ct-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  position: relative;
}
.ct-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}
.ct-socials a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.ct-hours {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.ct-hours h3 {
  font-size: 1.1rem;
  color: var(--brand-dark);
  margin: 0 0 16px;
}
.ct-hours li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: #3a4a5e;
}
.ct-hours li:last-child {
  border-bottom: 0;
}
.ct-hours li strong {
  color: var(--brand-dark);
}

/* ---------- Branches ---------- */
.ct-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ct-branch {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.ct-branch-media {
  height: 180px;
  margin: -30px -30px 22px;
  overflow: hidden;
}
.ct-branch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.ct-branch:hover .ct-branch-media img {
  transform: scale(1.05);
}
.ct-branch:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--brand-glow);
}
.ct-branch .ct-branch-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ct-branch .ct-branch-top i {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ct-branch h3 {
  font-size: 1.15rem;
  color: var(--brand-dark);
  margin: 0;
}
.ct-branch p {
  color: #3a4a5e;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 6px;
}
.ct-branch a {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Map ---------- */
.ct-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 420px;
}
.ct-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ct-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .ct-main {
    grid-template-columns: 1fr;
  }
  .ct-branches {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .ct-cards {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .ct-form {
    grid-template-columns: 1fr;
  }
  .ct-form-wrap {
    padding: 28px 22px;
  }
}
