/* ============================================================================
   CONTACT PAGE STYLES
   ============================================================================ */

/* Typing animation for contact */
.typed-contact {
  overflow: hidden;
  border-right: 2px solid var(--color-primary);
  white-space: nowrap;
  animation: typing-contact 1.8s steps(12) 0.5s forwards, blink-caret 0.75s step-end infinite;
  width: 0;
}

@keyframes typing-contact {
  from { width: 0; }
  to { width: 12ch; }
}

/* Contact Section */
.contact-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Contact Info */
.info-card {
  background: rgba(20, 24, 36, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(60px + var(--space-md));
}

.info-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-shadow: var(--glow-primary);
}

.info-card > p {
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.info-item {
  display: flex;
  gap: var(--space-md);
  align-items: start;
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.info-content h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.info-content p {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* Security Notice */
.security-notice {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--space-sm);
}

.notice-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.notice-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
}

.notice-list {
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

.notice-list li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.notice-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* Form Terminal */
.form-terminal {
  background: rgba(20, 24, 36, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

/* Contact Form */
.contact-form {
  padding: 0;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.label-icon {
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.label-required {
  color: var(--color-error);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(255, 0, 85, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* Form Counter */
.form-counter {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 0.375rem;
}

.form-counter.warning {
  color: var(--color-warning);
}

.form-counter.error {
  color: var(--color-error);
}

/* Form Error */
.form-error {
  font-size: 0.75rem;
  color: var(--color-error);
  margin-top: 0.375rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  margin-top: var(--space-md);
  padding: 1rem;
  font-size: 0.9375rem;
  justify-content: center;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit:disabled:hover {
  transform: none;
}

/* Form Notice */
.form-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-md);
}

.form-notice .notice-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Hidden honeypot */
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .info-card {
    position: static;
  }
}

@media (max-width: 480px) {
  .info-card {
    padding: var(--space-lg);
  }
  
  .form-terminal .terminal-body {
    padding: var(--space-md);
  }
  
  .form-input,
  .btn-submit {
    padding: 0.625rem 0.875rem;
  }
}

/* Success State */
.form-success {
  padding: var(--space-xl);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--color-success);
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-success);
  margin-bottom: var(--space-sm);
}

.success-message {
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}