/* Contact Page Styles */

.contact-section {
  margin-top: 17vh;
  padding-top: 100px;
  padding-bottom: 80px;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  margin-bottom: 16px;
}

.contact-subtitle {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.contact-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Left Column: Contact Form */
.contact-form-container {
  flex: 1.2;
  background: #f8f4ff;
  padding: 40px;
  border-radius: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.required {
  color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4b0082;
  box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Error States */
.error-message {
  color: #e53935;
  font-size: 0.85rem;
  display: none;
}

.input-error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1) !important;
}

/* Submit Button */
.submit-button {
  margin-top: 16px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.3);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Loading Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(75, 0, 130, 0.3);
  border-top-color: #4b0082;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Success/Error Messages */
.form-message {
  text-align: center;
  padding: 40px;
}

.message-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.success-message .message-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.success-message h3 {
  color: #2e7d32;
  margin-bottom: 12px;
}

.error-message-box .message-icon {
  background: #ffebee;
  color: #c62828;
}

.error-message-box h3 {
  color: #c62828;
  margin-bottom: 12px;
}

/* Right Column: Contact Info */
.contact-info-container {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px;
}

.info-card h4 {
  color: #4b0082;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.info-description {
  color: #666;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background-color: #f8f4ff;
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.social-info {
  display: flex;
  flex-direction: column;
}

.social-label {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-value {
  color: #333;
  font-weight: 500;
}

/* WeChat QR Section */
.wechat-qr-section {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.wechat-qr {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.qr-caption {
  font-size: 0.85rem;
  color: #666;
}

/* Office Image */
.office-image-container {
  border-radius: 16px;
  overflow: hidden;
}

.office-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.office-caption {
  text-align: center;
  padding: 12px;
  background: #f5f5f5;
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1000px) {
  .contact-section {
    padding-top: 0;
    margin-top: 100px;
  }

  .contact-content {
    flex-direction: column;
  }

  .contact-form-container,
  .contact-info-container {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .contact-form-container {
    padding: 24px;
  }

  .info-card {
    padding: 24px;
  }

  .contact-header {
    margin-bottom: 40px;
  }

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