/* ============================================================
   CONTACT PAGE ADD-ONS — /contact/
   Prefix: ct-

   Loaded AFTER main.css and services.css on /contact/ only.
   Covers the two things the rest of that page does not: the
   full enquiry form and the on-page social grid. Everything
   else on the page (hero, contact-option cards, what-to-expect,
   FAQ, final CTA) is styled by services.css — do not duplicate
   those rules here.
   ============================================================ */

/* ---------- ENQUIRY FORM SECTION ---------------------------- */

.ct-form-section {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

.ct-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-10);
}

.ct-form-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--navbar-height) + var(--space-6));
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 560px) {
  .ct-form__row { grid-template-columns: 1fr; }
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.ct-field__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.ct-field__label .opt {
  font-weight: 400;
  color: var(--color-muted);
}

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.ct-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.ct-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.ct-input::placeholder,
.ct-textarea::placeholder { color: #A5A5A5; }

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.14);
}

.ct-input[aria-invalid="true"],
.ct-textarea[aria-invalid="true"] {
  border-color: #D93A3A;
  box-shadow: 0 0 0 3px rgba(217, 58, 58, 0.12);
}

/* Honeypot — off-screen, never shown to a human */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

.ct-form__error {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #C22B2B;
}

.ct-form__micro {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.6;
  text-align: center;
}

/* Success state */
.ct-form__done {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--color-purple-light);
  border: 1px solid var(--color-purple-mid);
  border-radius: var(--radius-lg);
}

.ct-form__done > svg { color: var(--color-purple); flex-shrink: 0; margin-top: 2px; }

.ct-form__done strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.ct-form__done span { font-size: var(--text-sm); color: var(--color-dark-80); line-height: 1.65; }
.ct-form__done a { color: var(--color-purple); font-weight: 600; }

/* ---------- SOCIAL ------------------------------------------ */

.ct-social__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.ct-social__card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ct-social__card:hover {
  border-color: var(--color-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ct-social__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-purple-light);
  color: var(--color-purple);
  flex-shrink: 0;
}

.ct-social__text { display: flex; flex-direction: column; min-width: 0; }

.ct-social__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
}

.ct-social__handle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
