/* Contact terminal form — dark terminal-window style for rab2 */
.rb-section.contact-terminal-section {
  padding: 4.5rem 0;
  background: #000;
  color: #fff;
}

.contact-terminal-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-terminal-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.25rem;
    align-items: center;
  }
}

.contact-terminal-title {
  color: #fff;
}

.contact-terminal-subtitle {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
}

.terminal-window.contact-terminal-window {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 14, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.contact-terminal-window .terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-terminal-window .terminal-title {
  margin-left: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.02em;
}

.contact-terminal-window .terminal-body {
  padding: 16px 14px 18px;
}

.contact-terminal-window .terminal-line {
  color: rgba(255, 255, 255, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  margin-bottom: 12px;
}

.contact-terminal-window .terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 6px;
  background: #635bff;
  vertical-align: -2px;
  animation: ctBlink 1s steps(1, end) infinite;
}

@keyframes ctBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.terminal-message {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.terminal-message.is-success {
  color: rgba(80, 255, 170, 0.95);
}
.terminal-message.is-error {
  color: rgba(255, 120, 120, 0.95);
}

.contact-terminal-form .ct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-field--full {
  margin-top: 12px;
}

.ct-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.ct-req {
  color: #ff6b6b;
  margin-left: 4px;
}

.ct-input,
.ct-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(99, 91, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 12px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.ct-input::placeholder,
.ct-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ct-input:focus,
.ct-textarea:focus {
  border-color: rgba(99, 91, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.18);
}

.ct-input.is-invalid,
.ct-textarea.is-invalid {
  border-color: rgba(255, 107, 107, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.ct-submit {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #635bff;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 260px;
}

.ct-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ct-submit:hover {
  background: #5248e8;
}

.ct-footnote {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

