/* ============================================================
   CONTACT — Sapphire minimal: split panel, floating labels
   ============================================================ */

body[data-theme="sapphire"] {
  background: #f7f5f0;
  color: #2a2a2c;
}

/* ---------- Header: solid charcoal bar over the split layout ---------- */
body[data-theme="sapphire"] .site-header {
  background: rgba(23, 23, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-theme="sapphire"] .site-header.scrolled {
  background: rgba(15, 15, 17, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
body[data-theme="sapphire"] .logo { color: #fff; }
body[data-theme="sapphire"] .nav-toggle span { background: #fff; }
body[data-theme="sapphire"] .site-nav a:not(.btn) { color: #cfcfd3; }
body[data-theme="sapphire"] .site-nav a:not(.btn):hover { color: var(--gold-light, #e3c565); }
body[data-theme="sapphire"] .site-nav a.active { color: var(--gold-light, #e3c565); }

/* ---------- Split layout ---------- */
.ct-wrap {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 100vh;
}

/* left sapphire panel */
.ct-panel {
  background:
    linear-gradient(165deg, rgba(14,44,77,.9) 0%, rgba(18,58,99,.86) 60%, rgba(11,36,64,.92) 100%),
    url("../img/sapphire-panel.jpg") center / cover no-repeat;
  color: #d6d6da;
  padding: 8.5rem 3.2rem 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.ct-panel::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  border: 1.5px solid rgba(201,162,39,.18);
  transform: rotate(45deg);
}
.ct-panel::before {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 360px; height: 360px;
  border: 1.5px solid rgba(201,162,39,.12);
  transform: rotate(45deg);
}
.ct-panel h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: .9rem;
}
.ct-panel > p { color: #a9a9ad; font-size: .97rem; max-width: 24rem; }

.ct-facts { margin-top: 2.8rem; display: grid; gap: 1.3rem; }
.ct-fact { display: flex; gap: 1rem; align-items: flex-start; }
.ct-fact .ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(201,162,39,.12);
  border: 1px solid rgba(201,162,39,.25);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.ct-fact b { display: block; color: #fff; font-size: .95rem; }
.ct-fact span { color: #a9a9ad; font-size: .86rem; }

.ct-note {
  margin-top: auto;
  padding-top: 3rem;
  color: #8a8a8e;
  font-size: .8rem;
}

/* right form area */
.ct-main {
  padding: 8.5rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ct-main h2 { font-size: 1.5rem; color: #1d1d1f; margin-bottom: 1.8rem; }

.ct-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.ct-field { position: relative; margin-bottom: 1.5rem; }
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 1.15rem 1rem 0.55rem;
  border: 1.5px solid #dcdcd8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #2a2a2c;
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
.ct-field textarea { resize: vertical; min-height: 130px; padding-top: 1.45rem; }
.ct-field label {
  position: absolute;
  left: 1rem; top: 0.95rem;
  color: #8a8a8e;
  font-size: 0.95rem;
  pointer-events: none;
  transition: all .2s;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: #8a6d1f;
  box-shadow: 0 0 0 4px rgba(138,109,31,.12);
}
.ct-field input:focus + label,
.ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label,
.ct-field textarea:not(:placeholder-shown) + label {
  top: 0.32rem;
  font-size: 0.7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a6d1f;
  font-weight: 600;
}
.ct-field label.static-label {
  top: 0.32rem;
  font-size: 0.7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a6d1f;
  font-weight: 600;
}
.ct-field select { padding-top: 1.35rem; }
.ct-field .invalid { border-color: #c0392b !important; }
.ct-field label em { color: #c0392b; font-style: normal; }

.ct-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, #8a6d1f, #b08d1f);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, filter .25s;
  box-shadow: 0 8px 24px rgba(138,109,31,.3);
}
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(138,109,31,.4); filter: brightness(1.06); }
.ct-submit:disabled { opacity: .6; cursor: wait; transform: none; }

.ct-success {
  margin-top: 1.2rem;
  background: #e9f6ee;
  border: 1px solid #bfe3ca;
  color: #1d7a3a;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  font-size: .92rem;
}
.ct-privacy { margin-top: 1rem; font-size: .78rem; color: #8a8a8e; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ct-wrap { grid-template-columns: 1fr; min-height: 0; }
  .ct-panel { padding: 7.5rem 6% 3rem; }
  .ct-main { padding: 3.5rem 6% 5rem; }
  .ct-note { display: none; }
}
@media (max-width: 640px) {
  .ct-form .form-row { grid-template-columns: 1fr; }
  .ct-main { padding-inline: 5%; }
}
