/* Reset default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* Base styling */
  body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #dbeeff, #ffffff);
    padding: 40px 20px;
    color: #333;
    overflow-x: hidden;
  }
  
  /* Page Heading */
  h1 {
    text-align: center;
    color: #004aad;
    margin-bottom: 30px;
    font-size: 2.4rem;
    animation: floatIn 2s ease-out;
    font-weight: bold;
  }
  
  /* Subheading */
  header p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #333;
    animation: fadeIn 1.5s ease;
  }
  
  /* Form Container */
  form {
    background: rgba(255, 255, 255, 0.9);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    max-width: 700px;
    margin: 0 auto 60px;
    backdrop-filter: blur(6px);
    border: 1px solid #cce5ff;
    animation: fadeInUp 1s ease;
    transition: transform 0.3s ease;
  }
  
  form:hover {
    transform: scale(1.01);
  }
  
  label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #003366;
    margin-top: 15px;
    font-size: 15px;
  }
  
  input,
  textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
  }
  
  input:focus,
  textarea:focus {
    border-color: #007bff;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
  }
  
  /* Buttons */
  button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
  }
  
  button:hover {
    background-color: #0056b3;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 12px rgba(0, 123, 255, 0.2);
  }
  
  /* View Button Centering */
  #viewBtn {
    display: block;
    margin: 0 auto 30px;
  }
  
  /* Messages Container */
  #messages {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease;
  }
  
  /* Message Cards */
  #messages > div {
    background: rgba(255, 255, 255, 0.95);
    border-left: 6px solid #007bff;
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.6s ease;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
  }
  
  #messages > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.1);
  }
  
  #messages h3 {
    color: #007bff;
    margin-bottom: 10px;
  }
  
  #messages p {
    margin-bottom: 8px;
    font-size: 15.5px;
  }
  
  /* Footer Styles */
  footer {
    text-align: center;
    padding: 25px 10px;
    font-size: 15px;
    color: #555;
    background-color: #f1f5ff;
    border-top: 1px solid #cce0ff;
    margin-top: 60px;
    font-weight: 500;
  }
  
  footer p {
    margin: 0;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    } to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    } to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    } to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes floatIn {
    0% {
      transform: translateY(-40px);
      opacity: 0;
    }
    50% {
      transform: translateY(10px);
      opacity: 0.6;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    form, #messages {
      padding: 20px;
    }
  
    h1 {
      font-size: 1.8rem;
    }
  
    button {
      width: 100%;
    }
  }
  