body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
  }
  form {
    background: #fff;
    max-width: 620px;
    width: 100%;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }
  .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
  }
  .image-container img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
  }
  h2 {
    text-align: center;
    color: #1e2e54;
    font-weight: 700;
    font-size: 1.9rem;
    margin: 8px 0 4px;
  }
  p.address {
    text-align: center;
    color: #444;
    margin: 0 0 20px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
  }
  p.sub-header {
    text-align: center;
    color: #2a3a6d;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 25px;
    letter-spacing: 0.03em;
  }

  /* Section styling */
  section {
    border: 2px solid #5b9bd5;
    border-radius: 12px;
    padding: 20px 25px 25px;
    margin-bottom: 30px;
    background: #f9fbfd;
  }
  section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e2e54;
    font-weight: 700;
    border-bottom: 2px solid #5b9bd5;
    padding-bottom: 6px;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
  }

  label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
    margin-top: 12px;
  }
  input[type="text"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select {
    width: 100%;
    padding: 12px 15px;
    margin-top: 4px;
    border: 1.8px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline-offset: 2px;
    box-sizing: border-box;
  }
  input[type="text"]:focus,
  input[type="tel"]:focus,
  input[type="date"]:focus,
  input[type="number"]:focus,
  select:focus {
    border-color: #5b9bd5;
    outline: none;
  }
  .radio-group {
    margin-top: 8px;
  }
  .radio-group label {
    margin-right: 20px;
    cursor: pointer;
    color: #555;
    font-weight: 600;
  }
  .radio-group input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
  }
  .input-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
  }
  .input-row input[type="text"],
  .input-row input[type="number"] {
    flex: 1;
  }
  input[type="submit"] {
    width: 100%;
    background-color: #28a745;
    border: none;
    padding: 15px 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 0.03em;
    margin-top: 15px;
  }
  input[type="submit"]:hover {
    background-color: #218838;
  }
  .error {
    color: red;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 2px;
    display: block;
  }

  /* Loading Overlay */
  #loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
  }

  #loadingOverlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
  }

  #closeOverlay {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    background: none;
    border: none;
    color: #fa0505;
    cursor: pointer;
    font-weight: bold;
  }
  #loadingOverlay {
    transition: opacity 0.5s ease;
  }
  .alert.alert-danger {
    background: #fff0f0;
    color: #a10000;
    border: 1px solid #ffcccc;
    border-left: 6px solid #ff3333;
    padding: 14px 18px;
    border-radius: 6px;
    position: relative;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.alert.alert-danger::before {
    content: "⚠";
    margin-right: 8px;
    font-weight: bold;
    
}




  /* Responsive */
  @media (max-width: 640px) {
    form {
      padding: 20px;
    }
    .input-row {
      flex-direction: column;
    }

    .input-row input[type="text"],
    .input-row input[type="number"] {
      flex: unset;
    }
  }