/* General Reset and Body Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-y: auto; /* ensure vertical scrolling is enabled */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.back-button {
  display: inline-block;
  margin-bottom: 12px;
}

/* Ensure the visible panel uses intended layout classes */

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f7fc;
  margin: 0;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container-fluid {
  width: 100%;
  padding: 20px 0;
}

.container-inner {
  background-color: white;
  width: 100%;
  max-width: 1100px; /* limit maximum width to avoid extremely wide layouts */
  margin: 0 auto; /* center in wide viewports */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

h3 {
  margin-top: 20px;
  font-size: 18px;
  margin-bottom: 10px;
}

/* Form Layout */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="number"],
select, textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 100%; /* ensure inputs never overflow their container */
  background-color: #f9f9f9;
  box-sizing: border-box;
}

select {
  cursor: pointer;
}

input[type="file"] {
  padding: 3px;
}


/* Button Styling */
button {
  padding: 12px;
  background-color: #4CAF50;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

/* Error Message Styling */
#error {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

input:focus,
select:focus {
  border-color: #4CAF50;
  outline: none;
}

/* Responsive Styling */
@media (max-width: 768px) {
  body {
    padding: 0; /* remove outer padding so panel can touch viewport edges */
  }

  .container-inner {
    padding: 15px;
    max-width: none; /* allow full width */
    width: 100%;
    margin: 0; /* remove centering margin */
    border-radius: 0; /* make edges flush */
    box-shadow: none; /* optional: remove shadow for edge-to-edge appearance */
  }

  h1 {
    font-size: 20px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }
}
