/* Contact modal overlay */
.contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-overlay.active {
  display: flex;
}

/* Modal card */
.contact-modal {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 540px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.contact-close:hover {
  color: #fff;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.contact-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

/* Form layout */
.contact-field {
  margin-bottom: 18px;
}
.contact-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.contact-req {
  color: #a78bfa;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #a78bfa;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

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

/* Feedback messages */
.contact-success,
.contact-error {
  display: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.contact-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}
.contact-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.contact-error a {
  color: #f87171;
  text-decoration: underline;
}

/* Submit button */
.contact-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.contact-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .contact-modal {
    padding: 28px 20px 24px;
  }
  .contact-row-2 {
    grid-template-columns: 1fr;
  }
}
