.lp-course-setting { margin-bottom: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.lp-question-block { margin-bottom: 15px; }
.lp-options { margin-top: 10px; }
.lp-affidavit-setting { margin-bottom: 10px; }
.verification-point { margin-bottom: 10px; }
.lp-course-setting select, .verification-point select { margin-right: 10px; }
.lp-verification-check[data-position="after"] { margin-top: 20px; }
.lp-navigation-disabled { pointer-events: none; opacity: 0.5; }
/* Success messages - green with icon */
.lp-affidavit-message, .lp-verification-message, .lp-verification-check-message {
    color: #155724;
    font-weight: normal;
    margin-top: 15px;
    font-size: 1.05em;
    padding: 15px 20px;
    background: #d4edda;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.15);
    transition: opacity 0.3s ease-out;
}

/* Error messages - red with icon and better styling */
#lp-verification-check-message p[style*="color: red"],
#lp-affidavit-message p[style*="color: red"],
#lp-verification-message p[style*="color: red"],
#lp-ssn-message p[style*="color: red"],
#lp-combined-message p[style*="color: red"] {
    color: #d32f2f !important;
    font-weight: normal;
    margin: 15px 0;
    padding: 15px 20px;
    background: #ffebee;
    border: 2px solid #d32f2f;
    border-left: 5px solid #d32f2f;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
    position: relative;
    padding-left: 50px;
}

/* Add warning icon to error messages */
#lp-verification-check-message p[style*="color: red"]::before,
#lp-affidavit-message p[style*="color: red"]::before,
#lp-verification-message p[style*="color: red"]::before,
#lp-ssn-message p[style*="color: red"]::before,
#lp-combined-message p[style*="color: red"]::before {
    content: "⚠";
    position: absolute;
    left: 18px;
    font-size: 24px;
    color: #d32f2f;
}
.lp-restriction-message { background: #f8d7da; color: #721c24; padding: 20px; border: 1px solid #f5c6cb; border-radius: 5px; text-align: center; }
.lp-restriction-message h3 { font-size: 1.5em; margin-bottom: 10px; }
.lp-restriction-message p { font-size: 1em; }

/* Added styles for affidavit and verification forms */
.lp-affidavit-form, .lp-verification-questions, .lp-verification-check {
    background: #f9f9f9;
    padding: 30px;
    border: 2px solid #f0ad4e;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lp-affidavit-form h3 {
    color: rgb(178, 46, 46);
}
.lp-verification-questions h3 {
    color: rgb(178, 46, 46);
}

/* Combined Affidavit + SSN Form Styles */
.lp-combined-verification-form {
    background: #f9f9f9;
    padding: 30px;
    border: 2px solid #f0ad4e;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lp-combined-verification-form h3 {
    margin-top: 0;
    color: #d32f2f;
    font-size: 1.6em;
    font-weight: 700;
    border-bottom: 2px solid #f0ad4e;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.lp-combined-verification-form > p {
    color: #555;
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.lp-form-section {
    background: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 5px solid #d32f2f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lp-form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #d32f2f;
    font-size: 1.2em;
    font-weight: 700;
}

.lp-form-section.lp-affidavit-section {
    border-left-color: #d32f2f;
}

.lp-form-section.lp-affidavit-section h4::before {
    content: "✓ ";
    color: #d32f2f;
}

.lp-form-section.lp-ssn-section {
    border-left-color: #f0ad4e;
}

.lp-form-section.lp-ssn-section h4::before {
    content: "🔒 ";
}

.lp-form-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.lp-form-section input[type="text"] {
    padding: 10px 12px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.lp-form-section input[type="text"]:focus {
    border-color: #d32f2f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.lp-combined-verification-form button {
    background: #f0ad4e;
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    max-width: 350px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(240, 173, 78, 0.3);
    transition: all 0.3s ease;
}

.lp-combined-verification-form button:hover {
    background: #ec971f;
    box-shadow: 0 6px 15px rgba(240, 173, 78, 0.4);
    transform: translateY(-2px);
}

.lp-combined-verification-form button:active {
    transform: translateY(0);
}

#lp-combined-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
}

#lp-combined-message p {
    margin: 0;
}

/* SSN Form Styles (standalone) */
.lp-ssn-form {
    background: #fff9e6;
    padding: 20px;
    border: 2px solid #f0ad4e;
    border-radius: 8px;
    margin: 20px 0;
}

.lp-ssn-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
}

.lp-ssn-input-group {
    margin: 15px 0;
}

.lp-ssn-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.lp-ssn-input-group input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 2px;
}

.lp-ssn-input-group input[type="text"]:focus {
    border-color: #f0ad4e;
    outline: none;
    box-shadow: 0 0 5px rgba(240, 173, 78, 0.3);
}

.lp-ssn-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.lp-ssn-form button {
    background: #f0ad4e;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.lp-ssn-form button:hover {
    background: #ec971f;
}

.lp-ssn-message {
    color: #00a32a;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.1em;
    padding: 12px;
    background: #f0f6fc;
    border-left: 4px solid #00a32a;
    border-radius: 4px;
}

#lp-ssn-message {
    margin-top: 15px;
}

/* Loading state for all submit buttons - consistent with LearnPress buttons */
button.loading,
.lp-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

button.loading::before,
.lp-button.loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: lp-spinner 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes lp-spinner {
    to { transform: rotate(360deg); }
}

/* ========================================
   FEEDBACK FORM STYLES
   ======================================== */

.lp-feedback-form {
    background: #ffffff;
    padding: 0;
    border: none;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* ---- Accordion (collapsible) behavior ---- */
/* Collapsed by default; the body shows only when .is-open is present. */
.lp-feedback-accordion .lp-feedback-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}
.lp-feedback-accordion .lp-feedback-header:hover {
    filter: brightness(1.06);
}
.lp-feedback-accordion .lp-feedback-body {
    display: none;
}
.lp-feedback-accordion.is-open .lp-feedback-body {
    display: block;
}
/* Chevron affordance on the right of the header (CSS-only down arrow). */
.lp-feedback-accordion .lp-feedback-chevron {
    position: absolute;
    right: 26px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -8px;
    border-right: 2.5px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2.5px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin-top 0.25s ease;
    pointer-events: none;
}
.lp-feedback-accordion.is-open .lp-feedback-chevron {
    transform: rotate(225deg);
    margin-top: -3px;
}
/* Reserve room on the right for the chevron only (no Skip pill in the header). */
.lp-feedback-accordion .lp-feedback-header h3,
.lp-feedback-accordion .lp-feedback-header .feedback-subtitle {
    padding-right: 44px;
}

/* Header Section */
.lp-feedback-form .lp-feedback-header {
    position: relative;          /* anchor the top-right Skip control */
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 25px 30px;
    color: white;
}

.lp-feedback-form .lp-feedback-header h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-feedback-form .lp-feedback-header h3 .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.lp-feedback-form .feedback-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1em;
}

/* Top-right Skip in the header — a quick exit so learners can bypass the
   optional (regulatory-offer) feedback without scrolling to the footer. */
.lp-feedback-form .lp-feedback-header h3,
.lp-feedback-form .lp-feedback-header .feedback-subtitle {
    padding-right: 104px;        /* reserve room for the Skip pill */
}

.lp-feedback-form .lp-feedback-skip-header {
    position: absolute;
    top: 18px;
    right: 22px;
    width: auto;               /* beat the mobile `.lp-feedback-form button{width:100%}` rule */
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;          /* solid white pill — stands out on the blue header */
    color: #1e3a5f;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.lp-feedback-form .lp-feedback-skip-header:hover {
    background: #e8eef5;
    color: #1e3a5f;
    border-color: #e8eef5;
}

.lp-feedback-form .lp-feedback-skip-header .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Fields Container */
.lp-feedback-form .lp-feedback-fields {
    padding: 30px;
}

/* Field Rows */
.lp-feedback-form .lp-feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lp-feedback-form .lp-feedback-row:last-child {
    margin-bottom: 0;
}

/* Individual Fields */
.lp-feedback-form .lp-feedback-field {
    display: flex;
    flex-direction: column;
}

.lp-feedback-form .lp-feedback-field.full-width {
    grid-column: 1 / -1;
}

.lp-feedback-form .lp-feedback-field label {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.lp-feedback-form .lp-feedback-field input[type="text"],
.lp-feedback-form .lp-feedback-field input[type="date"],
.lp-feedback-form .lp-feedback-field input[type="time"] {
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    transition: all 0.2s ease;
}

.lp-feedback-form .lp-feedback-field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lp-feedback-form .lp-feedback-field input[readonly] {
    background: #f1f5f9;
    cursor: default;
}

/* Divider */
.lp-feedback-form .lp-feedback-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 30px 0;
}

/* Star Rating Section */
.lp-feedback-form .lp-star-rating-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.lp-feedback-form .lp-star-rating {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.lp-feedback-form .lp-star-rating:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lp-feedback-form .lp-star-rating label {
    display: block;
    color: #334155;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 12px;
}

.lp-feedback-form .lp-star-rating label .required {
    color: #ef4444;
    font-weight: bold;
}

.lp-feedback-form .lp-star-rating .stars {
    display: flex;
    gap: 8px;
}

.lp-feedback-form .lp-star-rating .star {
    font-size: 2.5em;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lp-feedback-form .lp-star-rating .star:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

.lp-feedback-form .lp-star-rating .star.selected {
    color: #f59e0b !important;
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.lp-feedback-form .lp-star-rating .rating-label {
    display: inline-block;
    margin-left: 15px;
    font-size: 0.9em;
    color: #64748b;
    font-weight: 500;
}

/* Comments Section */
.lp-feedback-form .lp-feedback-comments-section {
    margin-bottom: 25px;
}

.lp-feedback-form .lp-feedback-comments-section label {
    display: block;
    color: #334155;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
}

.lp-feedback-form .lp-feedback-comments-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.lp-feedback-form .lp-feedback-comments-section textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.lp-feedback-form .lp-feedback-comments-section textarea::placeholder {
    color: #94a3b8;
}

/* Comments textarea in row structure */
.lp-feedback-form .lp-feedback-field textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.lp-feedback-form .lp-feedback-field textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.lp-feedback-form .lp-feedback-field textarea::placeholder {
    color: #94a3b8;
}

/* Buttons */
.lp-feedback-form .lp-feedback-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 30px 30px 30px;
}

.lp-feedback-form button {
    border: none;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Emphasis intentionally FLIPPED: course feedback is optional — offered only to
   satisfy a regulatory "must offer" requirement — so we steer learners to SKIP.
   Skip = prominent primary (solid, sits first/left); Submit = quiet secondary. */
.lp-feedback-form button#lp-feedback-skip {
    order: -1;                 /* sit first (left) in the actions row */
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    padding: 16px 44px;
    font-size: 16px;
}

.lp-feedback-form button#lp-feedback-skip:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    color: #fff;
    border: none;
    transform: translateY(-2px);
}

.lp-feedback-form button#lp-feedback-submit {
    background: #fff;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: none;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lp-feedback-form button#lp-feedback-submit .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lp-feedback-form button#lp-feedback-submit:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: none;
    transform: none;
}

/* Messages */
.lp-feedback-message {
    margin: 20px 30px 30px 30px;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: opacity 0.3s ease-out;
}

.lp-feedback-message.lp-feedback-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 2px solid #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.lp-feedback-message.lp-feedback-success::before {
    content: "✓ ";
}

.lp-feedback-message.lp-feedback-skipped {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
}

#lp-feedback-message {
    margin-top: 15px;
}

#lp-feedback-message p {
    margin: 0;
}

/* Error Styling */
#lp-feedback-message p[style*="color: red"] {
    color: #dc2626 !important;
    font-weight: 500;
    margin: 15px 0;
    padding: 14px 20px 14px 50px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #f87171;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    position: relative;
}

#lp-feedback-message p[style*="color: red"]::before {
    content: "⚠";
    position: absolute;
    left: 18px;
    font-size: 20px;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 600px) {
    .lp-feedback-form .lp-feedback-header {
        padding: 20px;
    }

    .lp-feedback-form .lp-feedback-fields {
        padding: 20px;
    }

    .lp-feedback-form .lp-feedback-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lp-feedback-form .lp-star-rating .star {
        font-size: 2em;
    }

    .lp-feedback-form .lp-feedback-actions {
        flex-direction: column;
    }

    .lp-feedback-form button {
        width: 100%;
    }

    .lp-feedback-message {
        margin: 15px;
    }
}