/* ============================================
   CONTACT PAGE — Onyx Visual
   ============================================ */

/* ============================================
   FORM + INFO SPLIT LAYOUT
   ============================================ */

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

@media (min-width: 1024px) {
  .contact-split {
    grid-template-columns: 3fr 2fr;
    gap: var(--sp-16);
  }
}


/* ============================================
   FORM STYLES
   ============================================ */

.ct-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Row (2 cols on desktop) */
.ct-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

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

/* Field */
.ct-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ct-field label {
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.ct-field label .optional {
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

/* Shared input styles */
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: var(--sp-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--text-muted);
}

/* Focus state */
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12),
              0 0 16px rgba(59, 130, 246, 0.06);
}

/* Hover state */
.ct-field input:hover:not(:focus),
.ct-field select:hover:not(:focus),
.ct-field textarea:hover:not(:focus) {
  border-color: rgba(59, 130, 246, 0.3);
}

/* Select arrow */
.ct-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.ct-field select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Textarea */
.ct-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Date input fix for dark theme */
.ct-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

/* Submit area */
.ct-form__submit {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}

.ct-form__submit .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .ct-form__submit .btn {
    width: auto;
    align-self: flex-start;
  }
}

.ct-form__note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ct-form__note svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
}


/* ============================================
   CONTACT SIDEBAR
   ============================================ */

.ct-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

/* Info card */
.ct-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.ct-info-item {
  display: flex;
  gap: var(--sp-4);
}

.ct-info-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-info-item__icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.ct-info-item__label {
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-1);
}

.ct-info-item__value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.ct-info-item__value a {
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.ct-info-item__value a:hover {
  color: var(--accent-primary);
}

/* Calendly placeholder */
.ct-calendly {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
}

.ct-calendly__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.ct-calendly__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.ct-calendly__placeholder {
  width: 100%;
  min-height: 200px;
  background: var(--bg-primary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-8);
}

.ct-calendly__placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  opacity: 0.5;
}

.ct-calendly__placeholder span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Social links row */
.ct-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-2);
}

.ct-socials__label {
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ct-socials__icons {
  display: flex;
  gap: var(--sp-3);
}

.ct-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.ct-social-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.ct-social-link:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.06);
}

.ct-social-link:hover svg {
  color: var(--accent-primary);
}


/* ============================================
   SERVICE AREA MAP
   ============================================ */

.ct-map {
  background: var(--bg-secondary);
}

.ct-map__visual {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-map__svg {
  width: 100%;
  height: 100%;
  padding: var(--sp-8);
}

/* Map labels */
.ct-map__labels {
  display: flex;
  justify-content: center;
  gap: var(--sp-8);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

.ct-map__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ct-map__label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.ct-map__label-dot--secondary {
  background: var(--accent-secondary);
}


/* ============================================
   MINI FAQ
   ============================================ */

.ct-faq {
  position: relative;
}

.ct-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ct-faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.ct-faq-item.open {
  border-color: rgba(59, 130, 246, 0.3);
}

.ct-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.ct-faq-item__q:hover {
  color: var(--accent-primary);
}

.ct-faq-item__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition-base), color var(--transition-base);
}

.ct-faq-item.open .ct-faq-item__icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.ct-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.ct-faq-item.open .ct-faq-item__a {
  max-height: 200px;
}

.ct-faq-item__a-inner {
  padding: 0 var(--sp-6) var(--sp-6);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   FORM SUCCESS STATE
   ============================================ */
.ct-success {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
  animation: ct-fade-in 0.4s ease;
}

.ct-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ct-pop 0.4s ease;
}

.ct-success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--success);
}

.ct-success h3 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.375rem;
  color: var(--text-primary);
}

.ct-success p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 380px;
}

@keyframes ct-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ct-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

