body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  color: #333;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

#logo {
  max-width: 150px;
  height: auto;
}

main {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: left;
}

h1 {
  font-size: 1.8em;
  color: #1c1e21;
  margin-bottom: 1.2em;
  text-align: center;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1.5em;
}

label {
  font-weight: 500;
  color: #4b4f56;
  font-size: 0.95em;
}

input[type="text"] {
  padding: 12px 15px;
  font-size: 1em;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
  outline: none;
}

button[type="submit"] {
  padding: 12px 15px;
  font-size: 1.05em;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background-color: #1877f2;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #166fe5;
}

button[type="submit"]:disabled {
  background-color: #a0c3f0;
  cursor: not-allowed;
}

#loading {
  text-align: center;
  color: #1877f2;
  margin-bottom: 1em;
  font-style: italic;
}

.error {
  color: #fa383e;
  background-color: #ffeef0;
  border: 1px solid #fcc2c4;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 1em;
  text-align: center;
  font-size: 0.95em;
}
#example-questions {
  margin-bottom: 1.5em;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

#example-questions h2 {
  font-size: 1.1em;
  color: #333;
  margin-top: 0;
  margin-bottom: 0.8em;
  font-weight: 500;
}

#example-questions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#example-questions-list li {
  margin-bottom: 0.6em;
}

#example-questions-list li:last-child {
  margin-bottom: 0;
}

#example-questions-list a {
  color: #1877f2;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

#example-questions-list a:hover {
  color: #166fe5;
  text-decoration: underline;
}

#result {
  margin-bottom: 1.5em;
  padding: 0; /* Removed padding */
  background-color: transparent; /* Removed background color */
  border-radius: 0; /* No background, so radius not needed here */
}

#result div {
  margin-bottom: 15px; /* Increased margin for better separation */
}

#result strong {
  color: #1c1e21;
  font-weight: 600;
  display: block; /* Make strong take full width for better structure */
  margin-bottom: 8px; /* Add space below the strong tag */
}

#case-count {
  font-weight: 500;
  font-size: 1.1em; /* Slightly increase case count font size */
}

#supplier-summary {
  background: transparent;
  padding: 0;
  white-space: pre-wrap;
  font-family: inherit; /* Use body's font (e.g., Segoe UI) */
  font-size: 1.1rem;  /* Increased font size further */
  line-height: 1.65; /* Adjusted line height for new font size */
  color: #333;
  /* max-height: 250px; */ /* Removed max-height */
  /* overflow-y: auto; */ /* Removed overflow-y */
  margin-top: 4px; /* Add a small space below the label */
}

.cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #42b72a;
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 0.8em;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.cta-btn:hover, .cta-btn:focus {
  background-color: #36a420;
}

.cta-btn-more-info {
  background-color: #007bff; /* A different blue */
}

.cta-btn-more-info:hover, .cta-btn-more-info:focus {
  background-color: #0069d9;
}

.hidden {
  display: none !important;
}

/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(240, 242, 245, 0.9); /* Semi-transparent background */
  display: flex; /* For centering */
  align-items: center; /* For centering */
  justify-content: center; /* For centering */
}

.modal-content {
  background-color: #ffffff;
  margin: auto; /* Centering */
  padding: 0; /* Remove padding, Calendly widget might have its own */
  border: none; /* Remove border, rely on shadow */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
  max-height: 90vh; /* Max height relative to viewport */
  display: flex; /* Use flex to make child take full height */
  flex-direction: column;
}

.close-btn {
  color: #888;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  z-index: 1001; /* Above Calendly widget */
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
  color: #333;
  text-decoration: none;
}

/* Styles for the Calendly widget container */
.calendly-inline-widget {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 320px;
  flex-grow: 1; /* Allow it to take available space */
  border-radius: 0 0 8px 8px; /* Match modal corners if close button is inside */
  overflow: hidden; /* Ensure content respects border radius */
}

/* Ensure the Calendly widget itself is responsive if it's in an iframe */
.calendly-inline-widget iframe {
    width: 100% !important;
    height: 100% !important;
}