.client-intake-form * {
  box-sizing: border-box;
}

.client-intake-form {
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  margin: 0;
  padding: 20px;
  color: #222;
}

/* START / CONTINUE AREA */
#startContainer {
  max-width: 1100px;
  margin: 40px auto;
  padding: 35px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#startContainer h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #0f172a;
}

#startContainer p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 25px;
}

.application-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
}

.application-actions .portal-btn {
  min-width: 230px !important;
  width: auto !important;
  background: #60A5FA !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 26px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.application-actions .portal-btn:hover {
  background: #3B82F6 !important;
}

.action-divider {
  font-weight: 700;
  color: #64748b;
}

.resume-box {
  display: flex !important;
  align-items: center !important;
  width: 320px !important;
  min-width: 320px !important;
  height: 54px !important;
  background: #fff !important;
  border: 2px solid #60A5FA !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  flex-shrink: 0 !important;
}

.resume-box input {
  width: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* FORM */
.intake-wrapper {
  max-width: 1100px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.intake-wrapper h1,
.intake-wrapper .form-subtitle {
  text-align: center;
}

h1, h2, h3 {
  color: #1f2937;
}

.form-subtitle {
  color: #555;
  margin-bottom: 28px;
  line-height: 1.6;
}

h2 {
  margin-top: 40px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.flow-field {
  margin-bottom: 24px;
}

.highlight-label {
  background: #e8f2ff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: bold;
  display: block;
  margin-bottom: 12px;
}

.client-intake-form input,
.client-intake-form select,
.client-intake-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.client-intake-form button {
  background: #1f6feb;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.checkbox-inline-group,
.radio-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

.checkbox-inline-group label,
.radio-inline-group label,
.document-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin: 0;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  flex-wrap: wrap;
}

.document-item input[type="file"] {
  flex: 1;
  min-width: 250px;
}

.document-item:has(.doc-check:checked) .doc-upload {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.provider-block {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #fafafa;
}

.message {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
}

.success {
  color: green;
}

.error {
  color: red;
}

.disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* MOBILE */
@media(max-width:768px) {
  .application-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .application-actions .portal-btn,
  .application-actions .resume-box {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .action-divider {
    text-align: center;
  }

  .checkbox-inline-group,
  .radio-inline-group,
  .document-item {
    flex-direction: column;
    align-items: flex-start;
  }
}