/* Contact Form Modal */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.contact-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  background: #1a1a2e;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-overlay.open .contact-modal {
  transform: translateY(0) scale(1);
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a3a;
}

.contact-header h3 {
  font-size: 16px;
  color: #fff;
  margin: 0;
}

.contact-close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
}

.contact-close:hover {
  background: #2a2a3a;
  color: #fff;
}

.contact-body {
  padding: 20px;
}

.contact-field {
  margin-bottom: 14px;
}

.contact-field label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0f0f1a;
  border: 1px solid #3a3a4a;
  border-radius: 6px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #4a9eff;
}

.contact-field textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-error {
  font-size: 12px;
  color: #ff6b6b;
  padding: 8px 12px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 6px;
  margin-bottom: 14px;
}

.contact-success-msg {
  text-align: center;
  padding: 20px 0;
}

.contact-success-msg h4 {
  font-size: 16px;
  color: #fff;
  margin: 12px 0 6px;
}

.contact-success-msg p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.contact-submit {
  width: 100%;
  padding: 12px;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-submit:hover:not(:disabled) {
  background: #3a8eef;
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile: full-width bottom sheet */
@media (max-width: 600px) {
  .contact-overlay {
    align-items: flex-end;
  }

  .contact-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }
}

/* Footer link */
#contact-link {
  color: #4a9eff;
  text-decoration: none;
}

#contact-link:hover {
  text-decoration: underline;
}
