/* Contact Page Styles */
.contact-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.contact-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.contact-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-content {
  padding: 4rem 0;
}

/* Not logged in styles */
.contact-info {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.info-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.info-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.info-content p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.contact-content .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-content .btn-primary {
  color: white;
}

.info-note {
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
}

.login-prompt {
  text-align: center;
}

.login-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 400px;
  margin: 0 auto;
}

.login-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.login-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.signup-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.signup-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.signup-link:hover {
  text-decoration: underline;
}

/* Logged in styles */
.contact-form-section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #9ca3af;
  z-index: 1;
}

.textarea-icon {
  top: 1rem;
  align-self: flex-start;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.25rem;
}

.field-note {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.character-count {
  text-align: right;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.submit-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-loader {
  display: none;
}

.submit-button.loading .button-text {
  opacity: 0;
}

.submit-button.loading .button-loader {
  display: block;
  position: absolute;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-sidebar .info-card {
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}

.contact-info-sidebar .info-icon {
  align-self: center;
}

.contact-info-sidebar .info-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-info-sidebar .info-content p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Message overlay styles */
.message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.message-overlay.show {
  opacity: 1;
  visibility: visible;
}

.message-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 400px;
  margin: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.message-overlay.show .message-card {
  transform: scale(1) translateY(0);
}

.message-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.message-card.success .message-icon {
  background: #dcfce7;
  color: #16a34a;
}

.message-card.error .message-icon {
  background: #fef2f2;
  color: #dc2626;
}

.message-icon .success-icon,
.message-icon .error-icon {
  display: none;
}

.message-card.success .success-icon {
  display: block;
}

.message-card.error .error-icon {
  display: block;
}

.message-content {
  text-align: center;
}

.message-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.message-text {
  color: #64748b;
  line-height: 1.5;
}

.message-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
}

.message-close:hover {
  color: #374151;
}

/* Responsive design */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-header {
    padding: 2rem 0;
  }

  .contact-content {
    padding: 2rem 0;
  }

  .contact-form-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .info-icon {
    align-self: center;
  }

  .login-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-header {
    padding: 1.5rem 0;
  }

  .contact-title {
    font-size: 1.75rem;
  }

  .contact-subtitle {
    font-size: 0.875rem;
  }

  .form-card {
    padding: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .login-card {
    padding: 1rem;
  }
}
