#ce-gate-app {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 20px;
}

.ce-gate-card {
    background: #ffffff;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(7,24,39,.08);
    border: 1px solid rgba(7,24,39,.08);
    margin-bottom: 26px;
}

.ce-gate-welcome-card h2,
.ce-gate-card h2,
.ce-gate-card h3 {
    color: #071827;
    margin-top: 0;
    line-height: 1.25;
}

.ce-gate-label {
    color: #c99a4a;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ce-gate-intro-list {
    margin: 22px 0;
    padding-left: 22px;
    line-height: 1.7;
}

.ce-gate-small-note,
.ce-gate-result-note {
    color: #475569;
    font-size: .98rem;
    line-height: 1.6;
}

.ce-gate-button,
.ce-gate-answer {
    display: block;
    width: 100%;
    margin: 13px 0;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: #071827;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
}

.ce-gate-button:hover,
.ce-gate-answer:hover {
    background: #c99a4a;
    color: #071827;
    transform: translateY(-1px);
}

.ce-gate-inline-button {
    width: auto;
    display: inline-block;
    text-decoration: none;
    padding: 13px 24px;
}

.ce-gate-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #475569;
    font-size: .92rem;
    margin-bottom: 10px;
}

.ce-gate-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 28px;
}

.ce-gate-progress-fill {
    height: 100%;
    background: #c99a4a;
    border-radius: 999px;
    transition: width .25s ease;
}

#ce-gate-reflection {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(7,24,39,.18);
    border-radius: 12px;
    font-size: 1rem;
    margin: 12px 0 18px;
}

.ce-gate-results-header {
    text-align: center;
}

.ce-gate-results-header h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    margin-bottom: 14px;
}

.ce-gate-styles {
    color: #334155;
}

.ce-gate-divider {
    display: inline-block;
    margin: 0 12px;
    color: #94a3b8;
}

.ce-gate-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ce-gate-card ul {
    margin-bottom: 0;
    padding-left: 22px;
    line-height: 1.7;
}

.ce-gate-email-card label {
    display: block;
    font-weight: 700;
    margin: 16px 0 6px;
    color: #071827;
}

.ce-gate-email-card input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(7,24,39,.18);
    border-radius: 10px;
    font-size: 1rem;
}

.ce-gate-email-message {
    padding: 14px 16px;
    border-radius: 10px;
    background: #f7f3ec;
    color: #071827;
    margin: 16px 0;
}

.ce-gate-email-success {
    background: #ecfdf5;
    color: #065f46;
}

.ce-gate-email-error {
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 760px) {
    #ce-gate-app {
        margin: 24px auto;
        padding: 0 14px;
    }

    .ce-gate-card {
        padding: 24px;
    }

    .ce-gate-two-column {
        grid-template-columns: 1fr;
    }

    .ce-gate-divider {
        display: block;
        opacity: 0;
        height: 6px;
    }
}


.ce-gate-after-email {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(7,24,39,.1);
}


.ce-gate-intro-list + .ce-gate-small-note {
    margin-top: 20px;
}


/* Softer answer buttons */
.ce-gate-answer {
    background: #f7f3ec;
    color: #071827;
    border: 1px solid rgba(201,154,74,.45);
    box-shadow: 0 4px 12px rgba(7,24,39,.04);
}

.ce-gate-answer:hover {
    background: #eadfcf;
    color: #071827;
    border-color: rgba(201,154,74,.85);
    transform: translateY(-1px);
}

/* Score details */
.ce-gate-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ce-gate-score-grid div {
    background: #f7f3ec;
    border: 1px solid rgba(201,154,74,.35);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.ce-gate-score-grid span {
    display: block;
    color: #64748b;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.ce-gate-score-grid strong {
    display: block;
    color: #071827;
    font-size: 1.8rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .ce-gate-score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Score percentage bars */
.ce-gate-score-bars {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.ce-gate-score-bar {
    background: #f7f3ec;
    border: 1px solid rgba(201,154,74,.35);
    border-radius: 14px;
    padding: 16px 18px;
}

.ce-gate-score-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 9px;
}

.ce-gate-score-bar-label span {
    color: #071827;
    font-weight: 800;
}

.ce-gate-score-bar-label strong {
    color: #071827;
    font-size: 1.1rem;
}

.ce-gate-score-track {
    height: 12px;
    background: #e8dfd3;
    border-radius: 999px;
    overflow: hidden;
}

.ce-gate-score-fill {
    height: 100%;
    background: #c99a4a;
    border-radius: 999px;
}


/* Persistent result link */
.ce-gate-result-link-card {
    background: #fbfaf7;
}

.ce-gate-result-url {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(7,24,39,.18);
    border-radius: 10px;
    font-size: .95rem;
    color: #334155;
    background: #ffffff;
    margin: 8px 0 10px;
}

.ce-gate-special-recognition {
    border-left: 6px solid #c99a4a;
    background: #fbfaf7;
}

.ce-gate-special-recognition h3 {
    margin-top: 0;
}




/* Radar graph */
.ce-gate-radar-card {
    overflow: hidden;
}

.ce-gate-radar-wrap {
    position: relative;
    width: min(100%, 520px);
    min-height: 360px;
    margin: 20px auto 4px;
}

.ce-gate-radar-svg {
    display: block;
    width: 330px;
    max-width: 76%;
    height: auto;
    margin: 0 auto;
}

.ce-gate-radar-grid {
    fill: none;
    stroke: rgba(7,24,39,.18);
    stroke-width: 1.4;
}

.ce-gate-radar-grid-mid,
.ce-gate-radar-grid-inner {
    stroke: rgba(7,24,39,.12);
}

.ce-gate-radar-axis {
    stroke: rgba(7,24,39,.16);
    stroke-width: 1.2;
}

.ce-gate-radar-fill {
    fill: rgba(201,154,74,.20);
    stroke: none;
}

.ce-gate-radar-line {
    fill: none;
    stroke: #c99a4a;
    stroke-width: 4;
    stroke-linejoin: round;
}

.ce-gate-radar-point {
    fill: #071827;
    stroke: #c99a4a;
    stroke-width: 3;
}

.ce-gate-radar-label {
    position: absolute;
    text-align: center;
    color: #071827;
    line-height: 1.15;
}

.ce-gate-radar-label strong,
.ce-gate-radar-label span {
    display: block;
}

.ce-gate-radar-label strong {
    font-size: .95rem;
}

.ce-gate-radar-label span {
    color: #c99a4a;
    font-weight: 900;
    font-size: 1.2rem;
    margin-top: 3px;
}

.ce-gate-radar-label-g {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ce-gate-radar-label-a {
    right: 0;
    top: 46%;
    transform: translateY(-50%);
    text-align: left;
}

.ce-gate-radar-label-t {
    left: 0;
    top: 46%;
    transform: translateY(-50%);
    text-align: right;
}

.ce-gate-radar-label-e {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 640px) {
    .ce-gate-radar-wrap {
        min-height: 320px;
    }

    .ce-gate-radar-svg {
        max-width: 70%;
    }

    .ce-gate-radar-label strong {
        font-size: .82rem;
    }

    .ce-gate-radar-label span {
        font-size: 1rem;
    }
}

/* Result actions and print/PDF support */
.ce-gate-result-actions {
    margin-top: 22px;
}

.ce-gate-print-button {
    margin-top: 0;
}

.ce-gate-print-note {
    margin: 8px 0 0;
}

@media print {
    #wpadminbar,
    .ce-gate-no-print,
    .ce-gate-email-card,
    .ce-gate-after-email,
    .ce-gate-result-actions,
    .ce-gate-button {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    #ce-gate-app,
    .ce-gate-results {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #071827 !important;
        background: #ffffff !important;
    }

    .ce-gate-card {
        box-shadow: none !important;
        border: 1px solid #d8dee8 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        margin-bottom: 18px !important;
        padding: 22px !important;
    }

    .ce-gate-two-column {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .ce-gate-results-header h2 {
        font-size: 32px !important;
    }

    .ce-gate-score-fill,
    .ce-gate-special-recognition,
    .ce-gate-radar-fill,
    .ce-gate-radar-line,
    .ce-gate-radar-point {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Participant and church information fields */
.ce-gate-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ce-gate-form-full {
  grid-column: 1 / -1;
}

.ce-gate-email-card select,
.ce-gate-email-card input[type="url"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(7,24,39,.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
}

.ce-gate-optional {
  font-size: .85em;
  font-weight: 400;
  color: #64748b;
}

.ce-gate-checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  font-weight: 600;
  line-height: 1.45;
}

.ce-gate-checkbox-label input {
  margin-top: 4px;
}

.ce-gate-church-id-wrap {
  margin: 14px 0 18px;
  padding: 18px;
  border-radius: 16px;
  background: #f7f3ec;
  border: 1px solid rgba(201,154,74,.35);
}

.ce-gate-participant-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(7,24,39,.10);
  font-size: .96rem;
  color: #334155;
}

@media (max-width: 700px) {
  .ce-gate-form-grid {
    grid-template-columns: 1fr;
  }
}


.ce-gate-journey-card ul {
  margin: 15px 0 20px 20px;
  line-height: 1.9;
}

.ce-gate-journey-card li {
  margin-bottom: 8px;
}
