/* ================================
   Contact Page
   ================================
   Navigation styles in header.css
   ================================ */

:root {
  --local-bg: #0b141a;
  --local-text: #e6edf3;
  --local-muted: #9aa4ad;
  --local-border: rgba(255, 255, 255, 0.08);
}

/* ================================
   Contact Page Layout
   ================================ */

.contact-page {
  padding: 24px;
}

/* ================================
   Contact Hero Section
   ================================ */

.contact-hero {
  text-align: center;
  padding: 80px 0 60px;
}

.contact-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 60px 0 40px;
  }

  .contact-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 1rem;
  }

  .contact-hero p {
    font-size: 0.95rem;
    max-width: 100%;
  }
}

/* ================================
   Contact Form Section
   ================================ */

.contact-form-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 0;
}

.contact-form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* ================================
   Form Elements
   ================================ */

.field {
  margin-bottom: 1.75rem;
}

.field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--color-text-primary);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--motion-medium) var(--ease-standard);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(93, 220, 255, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e8f1f5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field select option {
  color: #000000;
  background-color: #ffffff;
}

/* ================================
   Form Buttons
   ================================ */

.primary-btn,
.secondary-btn {
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--motion-medium) var(--ease-standard);
  border: none;
  width: 100%;
  margin-top: 1rem;
}

.primary-btn {
  background: #ffffff;
  color: #0b1f2a;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.secondary-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 40px 0;
  }

  .contact-form-section h2 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .field {
    margin-bottom: 1.5rem;
  }

  .primary-btn,
  .secondary-btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
  }
}

/* ================================
   Contact Filter Section
   ================================ */

.contact-filter {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--color-border);
}

.contact-filter h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.contact-filter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-filter li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .contact-filter {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 60px 0;
  }

  .contact-filter h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .contact-filter li {
    font-size: 0.9rem;
  }
}

/* ================================
   System Chat Widget
   ================================ */

.system-chat-btn {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--local-border);
  background: rgba(0, 0, 0, 0.6);
  color: var(--local-text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0.85;
  transition: opacity var(--motion-medium) var(--ease-standard);
  z-index: 999;
}

.system-chat-btn:hover {
  opacity: 1;
}

.system-chat-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 320px;
  background: #0e0e0e;
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
  flex-direction: column;
  z-index: 1000;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.system-chat-panel.open {
  display: flex;
}

/* Chat Header */
.system-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.system-chat-header p {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin: 0;
}

.system-chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

.system-chat-header button:hover {
  opacity: 0.7;
}

/* Chat Body */
.system-chat-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
}

.system-message {
  opacity: 0.75;
  margin-bottom: 12px;
}

/* Chat Input */
.system-chat-input {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.system-chat-input input {
  width: 100%;
  background: transparent;
  border: none;
  color: #e5e5e5;
  font-size: 13px;
  padding: 0;
  margin-bottom: 12px;
}

.system-chat-input input::placeholder {
  color: #666;
}

.system-chat-input input:focus {
  outline: none;
}

.system-chat-send {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--motion-medium) var(--ease-standard);
}

.system-chat-send:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.35);
}
/* Message Types */

.system-message.system-intro {
  opacity: 0.6;
  font-size: 13px;
}

.system-message.system-ack {
  opacity: 0.95;
  font-size: 13.5px;
  padding: 10px 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  margin-top: 14px;
}

.system-message.system-ack strong {
  font-weight: 500;
}

/* ================================
   Mobile Chat
   ================================ */

@media (max-width: 768px) {
  .system-chat-btn {
    bottom: 16px;
    right: 16px;
    font-size: 13px;
    padding: 8px 14px;
  }

  .system-chat-panel {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 55vh;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px 12px 0 0;
  }

  .system-chat-header {
    padding: 12px 16px;
  }

  .system-chat-body {
    padding: 14px;
    max-height: none;
  }

  .system-chat-body p {
    font-size: 13px;
    line-height: 1.45;
  }

  .system-chat-input {
    padding: 14px 16px;
  }

  .system-chat-input input {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .system-chat-send {
    font-size: 13px;
  }
}
