/* 1. Ensure proper scaling on mobile */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f7fa;
  color: #222;
}

/* 2. Main container styles */
.container {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 28px 28px 18px 28px;
}

/* 3. Responsive form and content */
form, .form-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 10px;
  background: #f9f9f9;

  border-radius: 8px;
}

input, select, textarea, button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  padding: 10px 12px;
  border: 1px solid #bfc9d1;
  border-radius: 5px;
  font-size: 1em;
}

button, .btn-primary {
  background: #295495;
  color: #fff;
  width: 30%;
  margin-left: 10px;
  margin-top: 1em;
  border: none;
  border-radius: 5px;
  padding: 12px 0;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover, .btn-primary:hover {
  background: #18325c;
}

/* 4. Headings and text */
h1, h2, h3 {
  text-align: center;
  color: #295495;
  margin-bottom: 18px;
  font-weight: 600;
}

/* 5. Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 18px auto;
}

/* 6. Responsive layout for panels or columns */
.page-layout {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}

.panel, .selected-opps-panel {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 420px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 24px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  margin-bottom: 24px;
}

.name-field {
  flex: 1 1 0;   /* grow and shrink equally */
  min-width: 0;  /* allow shrinking below content width */
  box-sizing: border-box;
   width: 100%;
   background-color: #2449d1;
}

/* 7. Media query for mobile devices */
@media (max-width: 700px) {
  .container {
    max-width: 98vw;
    padding: 8px 2vw;
  }
  .page-layout {
    flex-direction: column;
    gap: 0;
  }
  .panel, .selected-opps-panel, .form-container, form {
    max-width: 100%;
    min-width: 0;
    padding: 12px 4vw;
    margin-bottom: 18px;
  }
  h1, h2, h3 {
    font-size: 1.2em;
  }
  button, .btn-primary {
    font-size: 1em;
    padding: 10px 0;
  }
    .flex-field {
    flex-direction: column;
    gap: 8px;
  }
}

/* 8. Optional: Hide scrollbars on mobile for cleaner look */
@media (max-width: 700px) {
  ::-webkit-scrollbar {
    display: none;
  }
}