/* =============================================
   CONTACT PAGE — Supplemental Styles
============================================= */

/* ---- HEAD OFFICE STRIP ---- */
.ct-headoffice {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.ct-headoffice-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.ct-ho-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 28px;
  flex: 1;
  min-width: 200px;
}
.ct-ho-item i {
  font-size: 1.1rem;
  color: #C9A03C;
  margin-top: 2px;
  flex-shrink: 0;
}
.ct-ho-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ct-ho-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9CA3AF;
}
.ct-ho-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1A1A2E;
  transition: color 0.2s;
}
a.ct-ho-value:hover { color: #C9A03C; }

.ct-ho-divider {
  width: 1px;
  height: 40px;
  background: #E5E7EB;
  flex-shrink: 0;
  align-self: center;
}

/* ---- BRANCH SECTION ---- */
.ct-branches {
  padding: 80px 0 100px;
  background: #F7F8FA;
}

/* ---- BRANCH GRID ---- */
.ct-branch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.ct-branch-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.ct-branch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #E5E7EB;
  transition: background 0.25s;
}
.ct-branch-card:hover,
.ct-branch-card.active {
  border-color: #C9A03C;
  box-shadow: 0 8px 28px rgba(201,160,60,0.14);
  transform: translateY(-2px);
}
.ct-branch-card:hover::before,
.ct-branch-card.active::before { background: #C9A03C; }
.ct-branch-card.active { background: #fffdf5; }

.ct-branch-region {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9A03C;
}
.ct-branch-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A2E;
}
.ct-branch-person {
  font-size: 0.78rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.ct-branch-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: #C9A03C;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}
.ct-branch-card:hover .ct-branch-arrow,
.ct-branch-card.active .ct-branch-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- BRANCH PANEL ---- */
.ct-branch-panel {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
  animation: panel-in 0.35s ease;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ct-panel-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

/* Panel form column */
.ct-panel-form-col {
  padding: 40px 36px;
  border-right: 1px solid #E5E7EB;
}

.ct-panel-branch-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A03C;
  background: rgba(201,160,60,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.ct-form-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 4px;
}
.ct-form-sub {
  font-size: 0.82rem;
  color: #6B7280;
  margin-bottom: 20px;
}
.ct-lc-form-wrap {
  width: 100%;
  min-height: 520px;
}

.ct-lc-form-wrap iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: none;
  border-radius: 3px;
}

/* Panel info column */
.ct-panel-info-col {
  padding: 40px 32px;
  background: #F7F8FA;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-panel-info-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #C9A03C;
  padding-bottom: 12px;
  border-bottom: 2px solid #E5E7EB;
}

.ct-contact-person {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A1A2E;
}

.ct-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ct-contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.ct-contact-details li .ct-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(201,160,60,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ct-contact-details li .ct-detail-icon i {
  font-size: 0.85rem;
  color: #C9A03C;
}
.ct-contact-details li a {
  color: #1A1A2E;
  font-weight: 500;
  transition: color 0.2s;
}
.ct-contact-details li a:hover { color: #C9A03C; }

/* Map */
.ct-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  flex: 1;
  min-height: 220px;
}
.ct-map {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: none;
  display: block;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .ct-branch-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .ct-panel-inner { grid-template-columns: 1fr; }
  .ct-panel-form-col { border-right: none; border-bottom: 1px solid #E5E7EB; padding: 32px 24px; }
  .ct-panel-info-col { padding: 32px 24px; }
  .ct-branch-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-headoffice-inner { flex-wrap: wrap; }
  .ct-ho-divider { display: none; }
  .ct-ho-item { flex: 1 1 calc(50% - 2px); min-width: 160px; padding: 18px 20px; }
}

@media (max-width: 640px) {
  .ct-branches { padding: 60px 0 80px; }
  .ct-branch-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ct-ho-item { flex: 1 1 100%; }
  .ct-lc-form-wrap,
  .ct-lc-form-wrap iframe { min-height: 480px; }
}

/* ---- GLOBAL CONTACT FORM SECTION ---- */
.ct-global-form {
  background: #F8F9FB;
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid #E5E7EB;
}

.ct-global-form-inner .section-header {
  margin-bottom: 2.5rem;
}

.ct-global-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 2rem 2rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  min-height: 500px;
}

.ct-global-form-wrap iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: none;
  border-radius: 3px;
}

@media (max-width: 640px) {
  .ct-global-form-wrap {
    padding: 1.25rem 1rem 0.5rem;
  }
}
