/* Base Styles */
html, body {
  padding: 0;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1c1c1e;
  font-size: 18px;
  line-height: 1.4;
}

* {
  box-sizing: border-box;
}

.demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;      /* Horizontally centers content */
  justify-content: flex-start; /* Aligns content to the top */
  padding: 32px;            /* Padding around content */
}

.nl-form-wrapper {
  background: white;
  padding: 36px 32px 48px 32px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 650px;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.nl-form {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 32px;
}
.field-wrapper {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 0px;

}

.form-label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: left;
  width: 100%;
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  max-width: 650px;
  padding: 12px;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  background-color: #f9f9fa;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.nl-submit-wrapper {
  width: 100%;
  max-width: 650px;
}

.nl-submit, button {
  width: 100%;
  padding: 16px 32px;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  background-color: #007aff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nl-submit:hover {
  background-color: #005bb5;
  box-shadow: 0 4px 12px rgba(0, 91, 181, 0.4);
}

.nl-submit:active {
  background-color: #00449e;
}

.result-container {
  width: 100%;
  max-width: 650px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  margin-bottom: 36px;
}

.result-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d1d1d6;
}

.result-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

h4 {
  font-size: 1.2rem;
}

.result-item h4 {
  margin: 0 0 5px;
  color: #007aff;
}

 p {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}


.result-cta button {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  color: white;
  background-color: #28a745;
}
.result-cta button:last {
  margin-bottom: 2em;
}

.loading-state h4 {
  margin-bottom: 0.5em;
}
  .loader{
    height: 50px;
    width: 20%;
    text-align: left;
    padding: 1em;
    margin: 0 auto 0.5em;
    display: inline-block;
    vertical-align: top;
  }

  h3 {
    font-size: 1em; 
  }

  .header {
    text-align: left;
    margin-bottom: 2em;
  }
  .header h1 {
    font-size: 1.25em;
    margin-top: 0;
  }
  .header p {
    font-size: 0.9em;
    color: #2c2c2c;
  }