/* ══ PAGE HEADER ══ */
.ct-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
}
.ct-header-inner { max-width: 1100px; margin: 0 auto; }
.ct-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted); margin-bottom: 1.25rem;
}
.ct-breadcrumb a { color: var(--primary); }
.ct-breadcrumb a:hover { text-decoration: underline; }
.ct-breadcrumb i { font-size: 13px; }
.ct-header-title { font-size: 28px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; margin-bottom: 6px; }
.ct-header-sub   { font-size: 14.5px; color: var(--text-secondary); }

/* ══ MAIN LAYOUT ══ */
.ct-body {
  max-width: 1100px; margin: 0 auto;
  padding: 2.5rem 2rem 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem; align-items: start;
}

/* ══ FORM CARD ══ */
.form-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 2rem;
}
.form-card-title {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}
.form-card-sub { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 1.75rem; }

.ct-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ct-form textarea.form-input { resize: vertical; min-height: 130px; }

/* Submit */
.btn-send {
  background: var(--primary); color: #fff; border: none;
  padding: 13px 32px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; transition: background 0.15s;
}
.btn-send:hover:not(:disabled) { background: var(--primary-dark); }
.btn-send:disabled { opacity: 0.72; cursor: not-allowed; }

/* Success state */
.ct-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; padding: 3rem 1rem;
}
.ct-success.show { display: flex; }
.ct-form.hide { display: none; }
.success-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-bg); border: 3px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  animation: pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes pop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.success-circle i { font-size: 34px; color: var(--green-text); }
.ct-success-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.ct-success-sub   { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }

/* Error banner */
.ct-error {
  display: none; align-items: flex-start; gap: 9px;
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--radius); padding: 12px 14px;
  font-size: 13px; color: #991B1B; margin-bottom: 1rem;
}
.ct-error.show { display: flex; }
.ct-error i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.form-input.is-invalid { border-color: #EF4444; background: #FEF2F2; }

/* ══ CONTACT INFO SIDEBAR ══ */
.ct-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }

.ct-info-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 14px;
  align-items: flex-start; transition: box-shadow 0.15s;
}
.ct-info-card:hover { box-shadow: var(--shadow-md); }
.ct-info-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ct-info-icon i { font-size: 20px; }
.ct-info-label  { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.ct-info-value  { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.45; }
.ct-info-value a { color: var(--primary); }
.ct-info-value a:hover { text-decoration: underline; }
.ct-info-note   { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.hours-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; margin-bottom: 6px; }
.hours-time, .hours-closed { white-space: nowrap; }
.hours-row:last-child { margin-bottom: 0; }
.hours-day   { color: var(--text-secondary); }
.hours-time  { font-weight: 500; color: var(--text-primary); }
.hours-closed { color: #EF4444; font-weight: 500; }

/* Social links */
.ct-social {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.ct-social-title {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 18px;
  transition: all 0.15s; background: var(--bg-secondary);
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ══ MAP SECTION ══ */
.map-section {
  max-width: 1100px; margin: 2rem auto 0;
  padding: 0 2rem 3.5rem;
}
.map-section-title {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 8px;
}
.map-section-title i { color: var(--primary); font-size: 20px; }
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.map-frame { display: block; width: 100%; height: 340px; border: 0; }
.map-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; margin-bottom: 2.5rem;
  font-size: 13px; font-weight: 500; color: var(--primary); text-decoration: none;
}
.map-link:hover { text-decoration: underline; }
.map-placeholder {
  height: 340px; background: #e8eef5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,76,129,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,76,129,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map-pin-icon {
  width: 56px; height: 56px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--primary);
  box-shadow: 0 6px 20px rgba(15,76,129,0.4);
  display: flex; align-items: center; justify-content: center;
}
.map-pin-icon i {
  transform: rotate(45deg);
  font-size: 22px; color: #fff;
}
.map-pin-label {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.map-pin-sub { font-size: 11.5px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ══ FAQ SECTION ══ */
.faq-section {
  max-width: 1100px; margin: 2.5rem auto 0;
  padding: 0 2rem 4rem;
}
.faq-header { margin-bottom: 1.5rem; }
.faq-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.3px; }
.faq-sub   { font-size: 14px; color: var(--text-secondary); }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

details.faq-item {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.15s;
}
details.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--primary-border); }

summary.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 1.1rem 1.5rem;
  font-size: 14.5px; font-weight: 600; color: var(--text-primary);
  transition: color 0.15s; user-select: none;
}
summary.faq-q::-webkit-details-marker { display: none; }
details[open] summary.faq-q { color: var(--primary); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-secondary); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s;
}
details[open] .faq-icon {
  background: var(--primary-light); color: var(--primary); transform: rotate(45deg);
}
.faq-a {
  padding: 0 1.5rem 1.25rem;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.78;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}
.faq-a a { color: var(--primary); font-weight: 500; }
.faq-a a:hover { text-decoration: underline; }

/* Loading spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.9s linear infinite; }

/* ══ RESPONSIVE ══ */
@media (max-width: 880px) {
  .ct-body { grid-template-columns: 1fr; }
  .ct-sidebar { position: static; }
}
@media (max-width: 700px) {
  .ct-header { padding: 1.75rem 1rem; }
  .ct-body { padding: 1.5rem 1rem 0; gap: 1.25rem; }
  .map-section, .faq-section { padding-left: 1rem; padding-right: 1rem; }
  .form-card { padding: 1.25rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ════ Нууцлалын бодлого modal ════ */
.ct-pp-ov {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px);
  align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.ct-pp-ov.open { display: flex; }
.ct-pp-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 640px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3); overflow: hidden; animation: ctPpIn .22s ease;
}
@keyframes ctPpIn { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.ct-pp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--border-light); background: var(--primary-light);
}
.ct-pp-title { font-size: 16px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 9px; }
.ct-pp-title i { font-size: 20px; }
.ct-pp-x {
  width: 34px; height: 34px; border: none; background: rgba(0,0,0,.05); border-radius: 9px;
  cursor: pointer; font-size: 18px; color: var(--text-secondary); flex-shrink: 0;
}
.ct-pp-x:hover { background: rgba(0,0,0,.1); color: #dc2626; }
.ct-pp-body { padding: 22px; max-height: 60vh; overflow-y: auto; }
.ct-pp-body p { font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 12px; }
.ct-pp-body h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 16px 0 6px; }
.ct-pp-body a { color: var(--primary); font-weight: 500; }
.ct-pp-foot { padding: 14px 22px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; }
.ct-pp-ok {
  padding: 10px 24px; background: var(--primary); color: #fff; border: none; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ct-pp-ok:hover { background: var(--primary-hover); }

/* Нууцлалын бодлогын текстийн нэмэлт загвар */
.ct-pp-lead { font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border-light); padding-bottom: 12px; margin-bottom: 6px; }
.ct-pp-date { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.ct-pp-body h5 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 12px 0 5px; }
.ct-pp-body ul { margin: 0 0 12px; padding-left: 20px; }
.ct-pp-body li { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 5px; }
.ct-pp-copy { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--border-light); }
