/* ──────────────────────────────────────────────────────────────────
   Support Request Form - Base Styling
   JCC Components Integration
   ────────────────────────────────────────────────────────────────── */

/* ── Form Container ─────────────────────────────────────────────── */
.sjc-support-form {
  max-width: 100%;
}

/* ── Form Rows ──────────────────────────────────────────────────── */
.sjc-support-row {
  margin-bottom: 1.5rem;
}

.sjc-support-row:last-of-type {
  margin-bottom: 0;
}

/* ── Form Fields ────────────────────────────────────────────────── */
.sjc-support-field {
  width: 100%;
}

.sjc-support-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1b1b1b;
  font-size: 1rem;
}

.sjc-support-field input[type="text"],
.sjc-support-field input[type="email"],
.sjc-support-field input[type="date"],
.sjc-support-field select,
.sjc-support-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  background-color: #ffffff;
  color: #1b1b1b;
}

.sjc-support-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231b1b1b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.sjc-support-field textarea {
  min-height: 120px;
  resize: vertical;
}

.sjc-support-field input::placeholder,
.sjc-support-field textarea::placeholder {
  color: #71767a;
  opacity: 1;
}

/* ── Required Indicator ─────────────────────────────────────────── */
.sjc-support-required {
  color: #d63e04;
  font-weight: bold;
  margin-left: 0.25rem;
}

/* ── Help Text ──────────────────────────────────────────────────── */
.sjc-support-help-text {
  color: #565c65;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: normal;
}

/* ── Notices ────────────────────────────────────────────────────── */
.sjc-support-notice {
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid #ffbe2e;
  background-color: #fff4e5;
}

.sjc-support-notice--probate {
  border-left-color: #ffbe2e;
  background-color: #fff4e5;
}

.sjc-support-notice--family-law {
  border-left-color: #ffbe2e;
  background-color: #fffacd;
}

.sjc-support-notice p {
  margin: 0 0 0.5rem 0;
}

.sjc-support-notice p:last-child {
  margin-bottom: 0;
}

.sjc-support-notice a {
  color: #005ea2;
  text-decoration: underline;
}

.sjc-support-notice a:hover {
  text-decoration-thickness: 2px;
}

/* Family Law Acknowledgment Checkbox */
.sjc-support-notice label[for="family-law-ack"] {
  display: flex;
  align-items: flex-start;
  margin-top: 1rem;
  font-weight: bold;
}

.sjc-support-notice input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.sjc-support-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sjc-support-btn--primary {
  background-color: #005ea2;
  color: #ffffff;
  border-color: #005ea2;
}

.sjc-support-btn--primary:hover {
  background-color: #0050a0;
  border-color: #0050a0;
}

.sjc-support-btn--primary:active {
  background-color: #004680;
  border-color: #004680;
}

.sjc-support-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Status Messages ────────────────────────────────────────────── */
.sjc-support-status {
  font-weight: bold;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
  display: none;
}

.sjc-support-status:not(:empty) {
  display: block;
}

.sjc-support-status--success {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 2px solid #4caf50;
}

.sjc-support-status--success::before {
  content: "✓ ";
  font-weight: bold;
}

.sjc-support-status--error {
  background-color: #fff0f0;
  color: #d63e04;
  border: 2px solid #d63e04;
}

.sjc-support-status--error::before {
  content: "⚠ ";
  font-weight: bold;
}

/* ── Screen Reader Only ─────────────────────────────────────────── */
.sjc-support-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Responsive Design ──────────────────────────────────────────── */
@media screen and (max-width: 640px) {
  .sjc-support-field input,
  .sjc-support-field select,
  .sjc-support-field textarea {
    font-size: 16px; /* Prevents iOS zoom */
  }

  .sjc-support-btn {
    width: 100%;
  }
}

@media screen and (min-width: 641px) and (max-width: 1024px) {
  .sjc-support-form {
    max-width: 100%;
  }
}

@media screen and (min-width: 1025px) {
  .sjc-support-form {
    max-width: 800px;
  }
}
