/* Ash u3a Safeguarding Form Styles */

.ash-sf-wrapper {
    --ash-navy:       #1a2744;
    --ash-teal:       #2a7f7f;
    --ash-teal-light: #3a9f9f;
    --ash-amber:      #e8a320;
    --ash-cream:      #f8f5ef;
    --ash-white:      #ffffff;
    --ash-red:        #c0392b;
    --ash-green:      #27ae60;
    --ash-text:       #2c3e50;
    --ash-muted:      #7f8c8d;
    --ash-border:     #ddd5c8;

    width: 100%;
    margin-bottom: 24px;
}

.ash-sf-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ash-sf-header .ash-sf-org-label {
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2271b1;
    margin-bottom: 0.4rem;
    font-family: Arial, sans-serif;
}

.ash-sf-header h2.ash-sf-title {
    color: var(--ash-navy);
    line-height: 1.25;
    font-weight: normal;
    margin: 0;
    padding: 0;
    border: none;
}

.ash-sf-card {
    background: #f8f9fa;
    overflow: hidden;
    padding:20px;
}

/* Progress Bar */
.ash-sf-progress-wrap {
    height: 5px;
    background: var(--ash-border);
}

.ash-sf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, var(--ash-teal-light));
    transition: width 0.5s ease;
    width: 5%;
}

/* Step Indicator */
.ash-sf-step-label {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash-muted);
    font-family: Arial, sans-serif;
}

/* Steps */
.ash-sf-step {
    display: none;
    animation: ashSfFadeIn 0.35s ease;
}

.ash-sf-step.ash-sf-active {
    display: block;
}

@keyframes ashSfFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Step Icon */
.ash-sf-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
}

.ash-sf-icon.q       { background: #e8f4f8; }
.ash-sf-icon.red     { background: #fdecea; }
.ash-sf-icon.green   { background: #e9f7ef; }
.ash-sf-icon.amber   { background: #fef9e7; }
.ash-sf-icon.teal    { background: #e8f4f4; }
.ash-sf-icon.navy    { background: #eaecf4; }

/* Step headings – override any theme h3 styles */
.ash-sf-step h3.ash-sf-question {
    color: var(--ash-navy);
    margin: 0 0 0.65rem;
    padding: 0;
    border: none;
    line-height: 1.3;
    font-weight: normal;
}

.ash-sf-step p.ash-sf-desc {
    color: var(--ash-muted);
    margin: 0 0 1.5rem;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

/* Alert boxes */
.ash-sf-alert {
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
    font-weight: 600;
    font-family: Arial, sans-serif;
}

.ash-sf-alert.red   { background: #fdecea; border-left: 4px solid var(--ash-red);   color: #7b241c; }
.ash-sf-alert.green { background: #e9f7ef; border-left: 4px solid var(--ash-green); color: #1e8449; }
.ash-sf-alert.amber { background: #fef9e7; border-left: 4px solid var(--ash-amber); color: #7d6608; }
.ash-sf-alert.teal  { background: #e8f4f4; border-left: 4px solid #2271b1;  color: #1a5f5f; }
.ash-sf-alert.navy  { background: #eaecf4; border-left: 4px solid var(--ash-navy);  color: var(--ash-navy); }

/* Buttons */
.ash-sf-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ash-sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 1.4rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none;
    font-size: 1em;
    line-height: 1;
}

.ash-sf-btn.yes      { background: var(--ash-green); color: #fff; }
.ash-sf-btn.yes:hover{ background: #219a52;}

.ash-sf-btn.no       { background: var(--ash-red); color: #fff; }
.ash-sf-btn.no:hover { background: #a93226;}

.ash-sf-btn.continue      { background: #2271b1; color: #fff; }
.ash-sf-btn.continue:hover{ background: #135e96;}

.ash-sf-btn.report      { background: var(--ash-navy); color: #fff; }
.ash-sf-btn.report:hover{ background: #111d38; transform: translateY(-1px); }

.ash-sf-btn.nothing      { background: #7f8c8d; color: #fff; }
.ash-sf-btn.nothing:hover{ background: #626b6c; transform: translateY(-1px); }

.ash-sf-btn.unsure      { background: var(--ash-amber); color: #fff; }
.ash-sf-btn.unsure:hover{ background: #c4890f; transform: translateY(-1px); }

.ash-sf-btn.restart {
    background: transparent;
    border: 2px solid #2271b1;
    color: #2271b1;
    margin-top: 0.5rem;
}
.ash-sf-btn.restart:hover { background: #2271b1; color: #fff; }

/* Thank You screen */
.ash-sf-thankyou {
    padding: 2rem 1.75rem 2.25rem;
}

.ash-sf-check-circle {
    width: 68px;
    height: 68px;
    background: var(--ash-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin: 0 auto 1.25rem;
    animation: ashSfPop 0.4s cubic-bezier(.4,0,.2,1);
    color: #fff;
}

@keyframes ashSfPop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}

.ash-sf-thankyou h3.ash-sf-ty-title {
    color: var(--ash-navy);
    margin: 0 0 0.65rem;
    padding: 0;
    border: none;
    font-weight: normal;
}

.ash-sf-thankyou p {
    color: var(--ash-muted);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.ash-sf-divider {
    border: none;
    border-top: 1px solid var(--ash-border);
    margin: 1.25rem 0;
}
