/* NP Line Design — workspace_forms styles
   Comfortaa brand, #c2262b primary, mobile-first */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Comfortaa', sans-serif;
  background: #f9f9f9;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Wrapper */
.np-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  background: #fff;
  border-radius: 16px;
}

/* Header */
.np-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.np-form-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 160px;
  height: auto;
}

.np-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Form layout */
.np-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.np-field-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.np-field-row--half {
  flex-direction: row;
}

.np-field-row--half > .np-field {
  flex: 1;
  min-width: 0;
}

/* Fields */
.np-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.np-required {
  color: #c2262b;
}

.np-field input,
.np-field select,
.np-field textarea {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.np-field input:focus,
.np-field select:focus,
.np-field textarea:focus {
  outline: none;
  border-color: #c2262b;
  box-shadow: 0 0 0 3px rgba(194, 38, 43, 0.1);
}

.np-field input::placeholder,
.np-field textarea::placeholder {
  color: #9ca3af;
}

.np-field textarea {
  resize: vertical;
  min-height: 80px;
}

.np-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Consent checkbox */
.np-consent {
  margin-top: 4px;
}

.np-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
}

.np-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #c2262b;
}

.np-checkbox-label a {
  color: #c2262b;
  text-decoration: underline;
}

/* Turnstile */
.np-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

/* Error banner */
.np-form-error {
  padding: 10px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Submit button */
.np-submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #c2262b;
  color: #fff;
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.np-submit-btn:hover {
  background: #a11f23;
}

.np-submit-btn:active {
  transform: scale(0.98);
}

.np-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Invalid field highlight */
.np-field--invalid input,
.np-field--invalid select,
.np-field--invalid textarea {
  border-color: #c2262b;
  box-shadow: 0 0 0 3px rgba(194, 38, 43, 0.12);
}

/* Success / Error pages */
.np-success-wrapper,
.np-error-wrapper {
  text-align: center;
  padding: 48px 20px;
}

.np-success-message,
.np-error-message {
  font-size: 1.05rem;
  color: #555;
  margin-top: 8px;
}

.np-error-message a {
  color: #c2262b;
  font-weight: 600;
}

/* Checkbox group (multi-select conditions) */
.np-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 4px;
}

.np-checkbox-group .np-checkbox-label {
  font-size: 0.82rem;
  color: #555;
  white-space: nowrap;
}

.np-checkbox-group .np-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

/* Responsive */
@media (max-width: 640px) {
  .np-form-wrapper {
    padding: 16px 14px 24px;
    border-radius: 0;
  }

  .np-field-row--half {
    flex-direction: column;
  }

  .np-form-title {
    font-size: 1.25rem;
  }

  .np-submit-btn {
    padding: 12px;
    font-size: 1rem;
  }
}
