/* LR Forms Manager — Frontend Styles v1.1.0 */

.lrfm-form-wrap { max-width: 780px; margin: 0 auto; font-family: 'Arial', sans-serif; }
.lrfm-header { text-align: center; padding: 20px 0 14px; border-bottom: 3px solid #1e3a5f; margin-bottom: 24px; }
.lrfm-logo { max-height: 56px; }
.lrfm-form-title { font-size: 20px; font-weight: 700; color: #1e3a5f; margin: 10px 0 0; text-transform: uppercase; letter-spacing: .04em; }

.lrfm-form { background: #fff; }
.lrfm-fields { display: flex; flex-wrap: wrap; gap: 0 16px; }
.lrfm-field { width: 100%; margin-bottom: 16px; }
.lrfm-field-half { width: calc(50% - 8px); }
@media(max-width:600px){ .lrfm-field-half { width: 100%; } }
.lrfm-field-full { width: 100%; }

.lrfm-label { display: block; font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.lrfm-req { color: #ef4444; }
.lrfm-sublabel { display: block; font-size: 11px; color: #94a3b8; margin-top: 3px; }

.lrfm-input, .lrfm-select, .lrfm-textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 7px;
  font-size: 14px; color: #1e293b; transition: border .15s; background: #fff; }
.lrfm-input:focus, .lrfm-select:focus, .lrfm-textarea:focus {
  border-color: #03A9F2; outline: none; box-shadow: 0 0 0 3px rgba(3,169,242,.12); }
.lrfm-textarea { resize: vertical; min-height: 100px; }
.lrfm-file { display: block; font-size: 13px; padding: 8px 0; }

.lrfm-radio-group { display: flex; flex-direction: column; gap: 8px; }
.lrfm-radio-inline { flex-direction: row; gap: 18px; flex-wrap: wrap; }
.lrfm-radio-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1e293b; cursor: pointer; }
.lrfm-radio-label input { width: 16px; height: 16px; accent-color: #1e3a5f; }

/* ── Info block & Section headings ── */
.lrfm-info-block {
  width: 100%; background: #fffbea; border-left: 4px solid #f59e0b; padding: 12px 14px;
  font-size: 13px; line-height: 1.6; color: #451a03; border-radius: 0 6px 6px 0; margin-bottom: 16px; }

.lrfm-section-heading {
  width: 100%; background: #1e3a5f; color: white; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; margin-bottom: 0;
  border-radius: 4px 4px 0 0; }

/* ── Terms ── */
.lrfm-terms { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; margin-bottom: 20px; }
.lrfm-terms-scroll { height: 180px; overflow-y: auto; font-size: 12px; line-height: 1.7; color: #475569; white-space: pre-line; border: 1px solid #e2e8f0; padding: 10px 12px; background: #fff; border-radius: 6px; margin-bottom: 12px; }
.lrfm-terms-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer; }
.lrfm-terms-agree input { margin-top: 2px; accent-color: #1e3a5f; }

/* ── Signature ── */
.lrfm-signature-wrap { width: 100%; margin-bottom: 16px; }
.lrfm-sig-label { font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.lrfm-sig-canvas { width: 100%; height: 150px; border: 2px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: crosshair; display: block; touch-action: none; }
.lrfm-sig-canvas:hover { border-color: #1e3a5f; }
.lrfm-sig-actions { margin-top: 6px; }
.lrfm-sig-clear { background: none; border: 1px solid #e2e8f0; color: #64748b; padding: 5px 12px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.lrfm-sig-clear:hover { border-color: #ef4444; color: #ef4444; }

.lrfm-upload-progress { font-size: 12px; color: #03A9F2; margin-top: 4px; }

/* ── Form actions ── */
.lrfm-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.lrfm-btn-submit { background: #1e3a5f; color: white; border: none; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: .03em; transition: background .15s; }
.lrfm-btn-submit:hover { background: #03A9F2; }
.lrfm-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.lrfm-btn-preview { background: #f1f5f9; color: #1e3a5f; border: 1px solid #e2e8f0; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.lrfm-btn-preview:hover { background: #e0f2fe; border-color: #1e3a5f; }

/* ── Status messages ── */
.lrfm-msg { padding: 12px 16px; border-radius: 7px; font-size: 14px; margin-top: 12px; line-height: 1.5; }
.lrfm-success { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.lrfm-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.lrfm-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.lrfm-error-border { border-color: #ef4444 !important; }

/* ── View copy link in success message ── */
.lrfm-msg a { font-weight: 700; text-decoration: underline; }
