/* Global Reset */
* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background: #F8FAFC;
    color: #333333;
  }
  
  header {
    text-align: center;
    padding: 3rem 1rem;
    background: #D0E2FF url('./img/paper-fibers.png') repeat;
    background-size: cover;
    color: #1F2937;
  }
 
  /* Intro Section */
  .intro {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }
  
  #learn-more-link {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #4F46E5;
    text-decoration: underline;
    cursor: pointer;
  }
  
  #learn-more-text {
    display: none;
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  /* Form Styling */
  form {
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.06),
      0 8px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  form input, form textarea {
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
  }
  
  form button {
    background-color: #6366F1;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
  }
  
  form button:hover {
    background-color: #4F46E5;
  }
  
  #success-message {
    text-align: center;
    color: #10B981;
    margin: 1rem;
    font-size: 1.2rem;
  }
  
  /* Message Cards */
  .message-card {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem auto;
    width: 90%;
    max-width: 600px;
    background: #FFFFFF;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.06),
      0 8px 16px rgba(0, 0, 0, 0.08);
  }
  
  .message-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  .message-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #4F46E5;
  }
  
  .message-card .name {
    color: #000000; /* Make the from/to names black */
    font-style: italic;
  }
  
  .message-card p {
    font-size: 1rem;
    color: #333;
  }
  
  /* Skeleton Cards */
  .skeleton-card {
    background: #eee;
    border-radius: 10px;
    margin: 1rem auto;
    width: 90%;
    max-width: 600px;
    height: 150px;
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% { background-color: #eee; }
    50% { background-color: #ddd; }
    100% { background-color: #eee; }
  }
  
  /* Loading Spinner */
  #loading {
    display: none;
    text-align: center;
    margin: 2rem;
    font-size: 1.2rem;
  }
  
  #loading::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    border: 3px solid #7C69E9;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Back To Top Button */
  #back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: #7C69E9;
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  
  #back-to-top:hover {
    background: #5B4EC1;
  }
  
  /* Responsive Mobile Tweaks */
  @media (max-width: 600px) {
    form, .message-card {
      padding: 1.5rem;
    }
  
    form input, form textarea, form button {
      font-size: 1.1rem; /* slightly bigger */
    }
  
    .intro, #learn-more-link, #success-message {
      font-size: 1.1rem; /* intro and success message */
    }
  
    header h1 {
      font-size: 2rem; /* header title bigger */
    }
  }
  
  