/* --- Page Header --- */
.ct-header {
  padding: 100px 0 64px;
  position: relative;
}

.ct-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border, rgba(255,255,255,0.12)), transparent);
}

.ct-title {
  font-size: 52px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 700;
}

.ct-subtitle {
  font-size: 18px;
  color: var(--muted, #aab6c5);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}

/* --- Two-column layout --- */
.ct-body {
  padding: 72px 0 0;
}

.ct-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

/* --- Reveal animation (contact.js adds .visible) --- */
.ct-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ct-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Left: Info card --- */
.ct-info {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: var(--card, rgba(255,255,255,0.06));
  border-radius: var(--radius, 14px);
  padding: 32px;
}

.ct-info-block {
  padding: 16px 0;
}
.ct-info-block:first-child { padding-top: 0; }
.ct-info-block:last-child { padding-bottom: 0; }

.ct-info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted, #aab6c5);
  margin-bottom: 4px;
}

.ct-info-note {
  display: block;
  font-size: 12px;
  color: var(--muted, #aab6c5);
  opacity: 0.7;
  margin-bottom: 8px;
}

.ct-info-val {
  display: block;
  font-size: 15px;
  color: var(--text, #e8eef7);
  line-height: 1.5;
}

/* Primary email link */
.ct-info-email {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent, #4a9eff);
  text-decoration: none;
  transition: color 0.2s;
}
.ct-info-email:hover { color: #7b9fff; }

/* WhatsApp link */
.ct-info-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #25d366;
  text-decoration: none;
  transition: color 0.2s;
}
.ct-info-wa:hover { color: #19a24d; }

.ct-wa-icon { flex-shrink: 0; }

/* Divider between info blocks */
.ct-divider {
  height: 1px;
  background: var(--border, rgba(255,255,255,0.12));
}

/* --- Right: Form shell --- */
.ct-form-wrap {
  min-width: 0;
}

/* --- Form status notice --- */
.ct-notice {
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: var(--card, rgba(255,255,255,0.06));
  border-radius: var(--radius, 14px);
  padding: 28px;
  margin-bottom: 24px;
}

.ct-notice-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.28);
  border-radius: 999px;
  color: var(--accent, #4a9eff);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.ct-notice-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.ct-notice-text {
  margin: 0 0 18px;
  color: var(--muted, #aab6c5);
  line-height: 1.6;
}

.ct-notice-btn {
  display: inline-block;
}

/* --- Success / Error panels --- */
.ct-panel {
  display: none;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: var(--radius, 14px);
  padding: 40px 36px;
  text-align: center;
  margin-bottom: 0;
}

.ct-panel.show { display: block; }

.ct-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.ct-panel h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.ct-panel p {
  color: var(--muted, #aab6c5);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.ct-panel p a {
  color: var(--accent, #4a9eff);
  text-decoration: none;
}
.ct-panel p a:hover { text-decoration: underline; }

/* Success colours */
.ct-panel-success {
  background: rgba(74, 200, 140, 0.06);
  border-color: rgba(74, 200, 140, 0.25);
}
.ct-panel-success .ct-panel-icon {
  background: rgba(74, 200, 140, 0.15);
  color: #4ac88c;
}

/* Error colours */
.ct-panel-error {
  background: rgba(255, 100, 100, 0.06);
  border-color: rgba(255, 100, 100, 0.25);
}
.ct-panel-error .ct-panel-icon {
  background: rgba(255, 100, 100, 0.15);
  color: #ff6464;
}
.ct-panel-error .ct-retry-btn {
  margin-top: 20px;
}

/* --- Form layout --- */
.ct-form { display: flex; flex-direction: column; gap: 20px; }

.ct-row { width: 100%; }

.ct-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Field + label --- */
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ct-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e8eef7);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.ct-req {
  color: var(--accent, #4a9eff);
  margin-left: 1px;
}

.ct-opt {
  font-weight: 400;
  color: var(--muted, #aab6c5);
  font-size: 12px;
  margin-left: 4px;
}

/* --- Inputs, Selects, Textarea --- */
.ct-field input:not([type="checkbox"]):not([type="radio"]),
.ct-field select,
.ct-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 10px;
  color: var(--text, #e8eef7);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ct-field input:not([type="checkbox"]):not([type="radio"])::placeholder,
.ct-field textarea::placeholder {
  color: var(--muted, #aab6c5);
  opacity: 0.55;
}

/* Focus */
.ct-field input:not([type="checkbox"]):not([type="radio"]):focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.15);
  background: rgba(255,255,255,0.07);
}

.ct-field.invalid input:not([type="checkbox"]):not([type="radio"]),
.ct-field.invalid select,
.ct-field.invalid textarea {
  border-color: #ff6464;
  box-shadow: 0 0 0 3px rgba(255,100,100,0.12);
}

/* Select custom arrow */
.ct-field select {
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aab6c5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.ct-field select option {
  background: #0b0f14;
  color: #e8eef7;
}

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

/* --- Inline errors --- */
.ct-error {
  display: block;
  font-size: 12px;
  color: #ff6464;
  margin-top: 5px;
  min-height: 16px;
  line-height: 16px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s, transform 0.2s;
}

.ct-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- WhatsApp checkbox (tiny) --- */
.ct-wa-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
}

.ct-wa-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #25d366;
  cursor: pointer;
}

.ct-wa-check-label {
  font-size: 12px;
  color: var(--muted, #aab6c5);
  line-height: 1.3;
}

/* --- Honeypot: visually and physically hidden --- */
#hp_field {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --- Submit row --- */
.ct-row-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.ct-submit {
  font-size: 15px;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.ct-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ct-form-note {
  font-size: 13px;
  color: var(--muted, #aab6c5);
  opacity: 0.7;
}

.ct-submit-status {
  font-size: 13px;
  color: var(--muted, #aab6c5);
}

.ct-submit-status.is-success {
  color: #4ac88c;
}

.ct-submit-status.is-error {
  color: #ff8b8b;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ct-info {
    position: static;
  }
}

@media (max-width: 768px) {
  .ct-header {
    padding: 64px 0 48px;
  }

  .ct-title {
    font-size: 36px;
  }

  .ct-subtitle {
    font-size: 16px;
  }

  .ct-body {
    padding: 48px 0 0;
  }

  .ct-row-2 {
    grid-template-columns: 1fr;
  }

  .ct-row-submit {
    flex-direction: column;
    align-items: flex-start;
  }

  .ct-submit {
    width: 100%;
  }

  .ct-panel {
    padding: 32px 24px;
  }

  .ct-notice-title {
    font-size: 20px;
  }
}
