/**
 * EJM NDA Public Form Styles
 *
 * Standalone styles for the public-facing NDA onboarding form.
 * Not dependent on Tailwind or the admin React app.
 *
 * @since 1.61.0
 */

.ejm-nda-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    line-height: 1.5;
}

.ejm-nda-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.ejm-nda-form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem;
}

.ejm-nda-form-header p {
    color: #6b7280;
    font-size: 0.938rem;
    margin: 0;
}

/* Form Groups */
.ejm-form-group {
    margin-bottom: 1.25rem;
}

.ejm-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.ejm-form-group .required {
    color: #ef4444;
}

.ejm-form-group input[type="text"],
.ejm-form-group input[type="email"],
.ejm-form-group input[type="tel"],
.ejm-form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.938rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.ejm-form-group input:focus,
.ejm-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ejm-form-group input.ejm-readonly {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.ejm-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio Group */
.ejm-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

.ejm-radio-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400 !important;
}

.ejm-radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #3b82f6;
}

/* Company fields slide */
#ejm-company-fields {
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

/* Submit button */
.ejm-form-actions {
    margin-top: 1.5rem;
}

.ejm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ejm-btn-primary:hover {
    background-color: #1d4ed8;
}

.ejm-btn-primary:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}

/* Messages */
#ejm-nda-message {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.938rem;
}

#ejm-nda-message.ejm-msg-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

#ejm-nda-message.ejm-msg-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Status messages (for completed/cancelled/invalid links) */
.ejm-nda-message {
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.ejm-nda-message h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.ejm-nda-message p {
    margin: 0;
    font-size: 0.938rem;
}

.ejm-nda-message--error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ejm-nda-message--info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.ejm-nda-message--success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Validation errors */
.ejm-field-error {
    border-color: #ef4444 !important;
}

.ejm-error-text {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}
