/* ============================================================
   CU Declaration - Frontend Styles
   Complements Bootstrap 4.3.1 (loaded by the theme)
   Only plugin-specific styles that Bootstrap doesn't cover.
   ============================================================ */

.cu-declaration-form-wrap {
    max-width: 100%;
    margin: 0 auto;
}

/* ---- Step indicator (wizard progress) ---- */
.cu-wizard-steps {
    display: flex;
    gap: 12px;
}

.cu-step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
    flex: 1;
    transition: background-color 0.2s, color 0.2s;
}

.cu-step-indicator.active {
    background-color: #007bff;
    color: #fff;
}

.cu-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cu-step-indicator.active .cu-step-number {
    background-color: rgba(255, 255, 255, 0.25);
}

.cu-step-label {
    font-weight: 500;
}

/* ---- Checkbox list ---- */
.cu-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cu-checkbox-item {
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: background-color 0.15s;
}

.cu-checkbox-item:hover {
    background-color: #f8f9fa;
}

.cu-checkbox-item .custom-control-label {
    cursor: pointer;
    line-height: 1.5;
}

/* ---- Declaration preview (Step 2 rendered deed) ---- */
#cu-declaration-preview {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
    padding: 2rem 2.5rem;
    max-height: 600px;
    overflow-y: auto;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #212529;
}

#cu-declaration-preview h1,
#cu-declaration-preview h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: #212529;
    letter-spacing: 0.02em;
}

#cu-declaration-preview h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

#cu-declaration-preview h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #343a40;
}

#cu-declaration-preview p {
    margin-bottom: 0.75rem;
    text-align: justify;
}

#cu-declaration-preview strong {
    font-weight: 700;
    color: #212529;
}

#cu-declaration-preview em {
    font-style: italic;
}

#cu-declaration-preview ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
}

#cu-declaration-preview ul li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

#cu-declaration-preview ul li:before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #6c757d;
}

#cu-declaration-preview ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
}

#cu-declaration-preview ol li {
    padding: 0.25rem 0;
}

#cu-declaration-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

#cu-declaration-preview hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 1.5rem 0;
}

.cu-programmes-list {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
}

.cu-programmes-list li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

/* ---- Signature pad ---- */
.cu-signature-wrap {
    border: 2px dashed #adb5bd;
    border-radius: 0.25rem;
    background: #fff;
    display: block;
    width: 500px;
    max-width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

#cu-signature-canvas {
    display: block;
    cursor: crosshair;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* ---- Status screens (already submitted / success) ---- */
.cu-status-screen {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 2rem 1rem;
}

.cu-status-card {
    text-align: center;
    max-width: 520px;
    width: 100%;
    background: #fff;
    /* border: 1px solid #dee2e6; */
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); */
}

.cu-status-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.cu-status-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.cu-status-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ---- Form actions row ---- */
.form-actions {
    display: flex;
    gap: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    .cu-wizard-steps {
        flex-direction: column;
        gap: 6px;
    }

    .cu-step-indicator {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .cu-signature-wrap {
        width: 100%;
    }
}
