/* Reset and basic */
* {
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #05216d, #0b9635);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
  }

  .container {
    background: #fff;
    width: 600px;
    max-width: 100%;
    max-height: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 20px 30px 30px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  h1 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c387e;
  }

  form {
    display: flex;
    flex-direction: column;
  }

  label {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #2c387e;
  }

  input[type="text"],
  input[type="date"],
  input[type="tel"],
  select,
  textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1.8px solid #d1d9ff;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 36px;
  }

  input[type="text"]:focus,
  input[type="date"]:focus,
  input[type="tel"]:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: #3751ff;
    box-shadow: 0 0 8px rgba(55,81,255,0.4);
  }

  textarea {
    min-height: 60px;
  }

  .gender-options {
    display: flex;
    gap: 20px;
    margin-top: 6px;
  }

  .gender-options label {
    font-weight: normal;
  }

  button {
    margin-top: 25px;
    background-color: #3751ff;
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  button:hover,
  button:focus {
    background-color: #283ea5;
    outline: none;
  }

  .output {
    margin-top: 20px;
    background: #f0f3ff;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #2c387e;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
  }

  /* Scrollbar for mobile */
  .container::-webkit-scrollbar {
    width: 6px;
  }
  .container::-webkit-scrollbar-thumb {
    background-color: rgba(55,81,255,0.4);
    border-radius: 6px;
  }

  /* Responsive tweaks */
  @media (max-width: 360px) {
    .container {
      width: 100%;
      border-radius: 0;
      max-height: 600px;
      padding: 15px 20px 20px 20px;
    }
  }