/* ==========================================================================
   Become Calvary Institute - Front End
   ========================================================================== */

.become-calvary-frontend {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    box-sizing: border-box;
    text-align: center;
}

/* Main content card */
.become-calvary-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Main heading */
.become-calvary-card h1 {
    margin: 0 0 12px;
    color: #123d70;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
}

/* Intro text */
.become-calvary-card p {
    margin: 0 0 30px;
    color: #5f6f82;
    font-size: 18px;
    line-height: 1.6;
}

/* Labels */
.become-calvary-card label {
    display: block;
    margin: 0 0 8px;
    color: #123d70;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
}

/* Text fields */
.become-calvary-card input[type="text"],
.become-calvary-card input[type="email"],
.become-calvary-card input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d5dce5;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

.become-calvary-card input[type="text"]:focus,
.become-calvary-card input[type="email"]:focus,
.become-calvary-card input[type="password"]:focus {
    border-color: #198754;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.12);
}

/* Buttons */
.become-calvary-card button,
.become-calvary-card input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    background: #198754;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.become-calvary-card button:hover,
.become-calvary-card input[type="submit"]:hover {
    background: #157347;
}

/* Error / notice messages */
.become-calvary-card .error,
.become-calvary-card .notice {
    margin: 20px 0;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 15px;
}

/* Mobile */
@media (max-width: 700px) {

    .become-calvary-frontend {
        padding: 15px;
    }

    .become-calvary-card {
        margin: 25px auto;
        padding: 28px 22px;
    }

    .become-calvary-card h1 {
        font-size: 30px;
    }

    .become-calvary-card p {
        font-size: 16px;
    }
}

/* Access Code Attempt Messages */
.become-calvary-access-message {
	font-size: 14px;
	text-align: center;
	padding: 10px 14px;
	margin: 0 0 20px;
	border-radius: 4px;
}

.become-calvary-access-message.warning {
	background: #e8f5e9;
	border: 1px solid #198754;
	color: #198754;
}

.become-calvary-access-message.locked {
	background: #f8d7da;
	border: 1px solid #dc3545;
	color: #842029;
}

.become-calvary-participation-summary {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #b7d8c5;
	border-left: 5px solid #198754;
	border-radius: 6px;
	background: #f4fbf7;
}

.become-calvary-participation-summary h2 {
	margin-top: 0;
}

.become-calvary-participation-check {
	display: grid !important;
	grid-template-columns: 24px 1fr;
	gap: 10px;
	align-items: start;
	margin: 22px 0 !important;
	padding: 16px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	font-weight: 600;
}

.become-calvary-participation-check input {
	width: 20px !important;
	height: 20px !important;
	margin: 2px 0 0 !important;
}

.become-calvary-frontend button:disabled {
	cursor: not-allowed;
	opacity: .5;
}

.become-calvary-response-reminder {
	margin: 16px 0;
	padding: 12px 14px;
	border-left: 4px solid #198754;
	background: #f4fbf7;
	font-size: 14px;
}

.become-calvary-participation-link {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid #dcdcde;
	text-align: center;
	font-size: 14px;
}

/* PDF resources remain comfortably large on desktop. Phone screens show a
 * simple download choice instead of an unreadably small embedded document. */
.become-calvary-pdf-details {
	margin-top: 22px;
	border: 1px solid #b9d9c9;
	border-radius: 6px;
	background: #f4fbf6;
}
.become-calvary-pdf-details > summary {
	padding: 13px 18px;
	color: #0b6b3a;
	font-weight: 700;
	cursor: pointer;
}
.become-calvary-pdf-details[open] > summary {
	border-bottom: 1px solid #b9d9c9;
}
.become-calvary-pdf-details-content { padding: 18px; }
.become-calvary-end-of-lesson-pdf .become-calvary-pdf-desktop-viewer {
	width: 100%;
	height: calc(100vh - 130px);
	min-height: 720px;
	max-height: 1100px;
}
.become-calvary-pdf-mobile-download { display: none; margin: 18px 0 0; text-align: center; }
.become-calvary-pdf-download-button {
	display: inline-block;
	padding: 12px 20px;
	background: #198754;
	border-radius: 5px;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}
.become-calvary-pdf-download-button:hover { background: #146c43; color: #fff !important; }
@media (max-width: 700px) {
	.become-calvary-end-of-lesson-pdf .become-calvary-pdf-desktop-viewer { display: none; }
	.become-calvary-end-of-lesson-pdf .become-calvary-pdf-mobile-download { display: block; }
}

.become-calvary-card input[type="tel"] {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid #d5dce5;
	border-radius: 6px;
	background: #ffffff;
	color: #333333;
	font-size: 16px;
	box-sizing: border-box;
}

.become-calvary-card input[type="tel"]:focus {
	border-color: #198754;
	box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.12);
	outline: none;
}

.become-calvary-access-message.success {
	background: #e8f5e9;
	border: 1px solid #198754;
	color: #146c43;
}

.become-calvary-answers label {
	padding: 14px;
	margin-bottom: 10px;
	border: 1px solid #d5dce5;
	border-radius: 6px;
	cursor: pointer;
}

.become-calvary-answers input[type="radio"] {
	width: auto;
	margin-right: 9px;
}

.become-calvary-status {
	padding: 18px;
	border: 1px solid #b8d8c5;
	border-radius: 6px;
	background: #f0f9f3;
	text-align: left;
}

/* Wide lesson reading experience. */
.become-calvary-lesson-mode { max-width: 1240px; }
.become-calvary-card.become-calvary-lesson-layout { max-width: 1120px; padding: 28px; text-align: left; }
.become-calvary-lesson-layout > h1, .become-calvary-lesson-layout > .become-calvary-intro { text-align: center; }
.become-calvary-journey-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.become-calvary-journey-overview h2, .become-calvary-journey-overview > p { grid-column: 1 / -1; text-align: center; margin: 0; }
.become-calvary-lesson-progress { color: #146c43; font-weight: 600; }
.become-calvary-teaching-panel, .become-calvary-questions-panel { max-width: 920px; margin: 22px auto; padding: 34px; background: #ffffff; border: 1px solid #dce5ed; border-radius: 10px; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.become-calvary-teaching-panel h3, .become-calvary-questions-panel h3 { color: #123d70; text-align: center; font-size: 30px; margin-top: 0; }
.become-calvary-lesson-introduction { margin: 0 0 28px; padding: 20px 22px; border-left: 4px solid #198754; border-radius: 6px; background: #f0f9f3; color: #263746; font-size: 18px; line-height: 1.7; }
.become-calvary-lesson-introduction p:last-child, .become-calvary-pdf-introduction p:last-child { margin-bottom: 0; }
.become-calvary-conversation-prompt { margin: 0 0 28px; padding: 22px; border: 1px solid #b8d8c5; border-radius: 8px; background: #f7fcf8; }
.become-calvary-step-review { margin: 0 0 14px; border: 1px solid #c8dfd0; border-radius: 7px; background: #f7fcf8; overflow: hidden; }
.become-calvary-step-review summary { padding: 14px 18px; color: #0e714b; font-weight: 700; cursor: pointer; list-style-position: inside; }
.become-calvary-step-review[open] summary { border-bottom: 1px solid #c8dfd0; }
.become-calvary-step-review-content { padding: 4px 18px 18px; }
.become-calvary-step-review .become-calvary-video-frame { margin: 0 18px 18px; }
.become-calvary-saved-responses { padding: 12px; border-left: 3px solid #178756; background: #fff; color: #263746; line-height: 1.55; }
.become-calvary-conversation-prompt h4 { margin: 0 0 10px; color: #123d70; font-size: 22px; }
.become-calvary-conversation-prompt p { margin: 0 0 18px; color: #263746; font-size: 18px; line-height: 1.6; }
.become-calvary-conversation-prompt label { display: block; margin-bottom: 8px; color: #123d70; font-weight: 600; }
.become-calvary-conversation-prompt textarea { display: block; box-sizing: border-box; width: 100%; min-height: 150px; margin-bottom: 18px; padding: 12px; border: 1px solid #aebfce; border-radius: 5px; color: #263746; font: inherit; line-height: 1.5; }
.become-calvary-conversation-saved { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #b8d8c5; border-radius: 6px; background: #f0f9f3; color: #146c43; }
.become-calvary-open-bible-prompt { margin: 30px 0 0; padding: 24px; border: 1px solid #b8d8c5; border-radius: 8px; background: #f7fcf8; }
.become-calvary-open-bible-prompt h4 { margin: 0 0 12px; color: #123d70; font-size: 24px; }
.become-calvary-open-bible-prompt p { color: #263746; font-size: 18px; line-height: 1.65; }
.become-calvary-open-bible-prompt label { display: block; margin: 22px 0 8px; color: #123d70; font-size: 17px; font-weight: 600; }
.become-calvary-open-bible-prompt textarea { display: block; box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #aebfce; border-radius: 5px; color: #263746; font: inherit; line-height: 1.5; }
.become-calvary-step-ready { margin: 30px auto 0; padding: 24px; border: 1px solid #b8d8c5; border-radius: 8px; background: #f7fcf8; text-align: center; }
.become-calvary-step-ready h3 { margin: 0 0 10px; color: #123d70; font-size: 24px; }
.become-calvary-step-ready p { margin: 0 auto 20px; max-width: 680px; color: #263746; line-height: 1.6; }
.become-calvary-step-choice-actions { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 18px; }
.become-calvary-step-choice-actions > button,
.become-calvary-step-choice-actions > form {
	box-sizing: border-box;
	flex: 0 0 250px !important;
	width: 250px !important;
	height: 80px;
	min-height: 80px;
	max-width: 250px;
	margin: 0 !important;
	padding: 0 !important;
}
.become-calvary-step-choice-actions > form { display: flex !important; }
.become-calvary-step-choice-actions > button,
.become-calvary-step-choice-actions > form > button {
	box-sizing: border-box;
	width: 100%;
	height: 80px;
	min-height: 80px;
	margin: 0 !important;
	padding: 10px 16px !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
@media (max-width: 760px) {
	.become-calvary-step-choice-actions { flex-direction: column; }
}
.become-calvary-question-button { background: #ffffff !important; color: #146c43 !important; border: 1px solid #198754 !important; }
.become-calvary-optional-quiz { text-align: left; }
.become-calvary-optional-quiz .become-calvary-lesson-form { text-align: center; }
.become-calvary-quiz-return { margin: 16px 0 0; text-align: center; }
.become-calvary-optional-quiz h3, .become-calvary-optional-quiz-results h3 { text-align: center; }
.become-calvary-quiz-score { font-size: 19px; text-align: center; color: #123d70; }
.become-calvary-quiz-result { margin: 16px 0; padding: 16px 18px; border: 1px solid #c8ded1; border-left: 4px solid #198754; border-radius: 7px; background: #f7fcf8; }
.become-calvary-quiz-result.is-incorrect { border-color: #e4c6c6; border-left-color: #c34a4a; background: #fff8f8; }
.become-calvary-quiz-result h4 { margin: 0 0 8px; color: #123d70; font-size: 18px; }
.become-calvary-quiz-result p { margin: 0; }
.become-calvary-quiz-next { text-align: center; font-weight: 600; color: #146c43; }
.become-calvary-question-dialog { width: min(620px, calc(100vw - 40px)); padding: 0; border: 1px solid #b8d8c5; border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.become-calvary-question-dialog::backdrop { background: rgba(16,43,78,.45); }
.become-calvary-question-dialog form { padding: 28px; }
.become-calvary-question-dialog h3 { margin: 0 0 10px; color: #123d70; }
.become-calvary-question-dialog textarea { box-sizing: border-box; width: 100%; margin: 8px 0 18px; padding: 12px; border: 1px solid #aebfce; border-radius: 5px; font: inherit; }
.become-calvary-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.become-calvary-dialog-cancel { background: #ffffff !important; color: #146c43 !important; border: 1px solid #198754 !important; }
.become-calvary-lesson-video, .become-calvary-lesson-material, .become-calvary-lesson-pdf { margin-top: 30px; padding-top: 24px; border-top: 1px solid #dce5ed; }
.become-calvary-lesson-video h4, .become-calvary-lesson-material h4, .become-calvary-lesson-pdf h4 { color: #123d70; font-size: 22px; margin: 0 0 16px; }
.become-calvary-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #102b4e; }
.become-calvary-video-frame iframe { position: absolute; width: 100%; height: 100%; border: 0; inset: 0; }
.become-calvary-video-replay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: #000000; }
.become-calvary-video-replay[hidden] { display: none; }
.become-calvary-video-replay button { padding: 14px 24px; border: 1px solid #ffffff; border-radius: 5px; background: #198754; color: #ffffff; font-size: 17px; font-weight: 600; cursor: pointer; }
.become-calvary-video-replay button:hover, .become-calvary-video-replay button:focus { background: #146c43; }
.become-calvary-lesson-content, .become-calvary-lesson-content p, .become-calvary-lesson-content li { color: #263746; font-size: 18px; line-height: 1.75; text-align: left; }
.become-calvary-lesson-content h2:first-child { display: none; }
.become-calvary-lesson-content h3 { color: #123d70; margin-top: 34px; }
.become-calvary-lesson-content p { margin: 0 0 18px; }
.become-calvary-lesson-content em { color: #546a7d; }
.become-calvary-pdf-introduction, .become-calvary-pdf-introduction p { margin: 0 0 18px; padding: 16px 18px; border-radius: 6px; background: #f7fafc; color: #263746 !important; font-size: 17px; line-height: 1.65; }
.become-calvary-pdf-introduction p { padding: 0; background: transparent; }
.become-calvary-pdf-reader { position: relative; height: 700px; overflow: hidden; border: 1px solid #cbd9e3; border-radius: 6px; background: #ffffff; }
.become-calvary-pdf-reader iframe { width: 100%; height: 100%; border: 0; background: #ffffff; }
.become-calvary-lesson-pdf p { margin: 16px 0 0; }
.become-calvary-question { margin: 18px 0; padding: 18px; border: 1px solid #cbd9e3; border-radius: 8px; }
.become-calvary-question legend { padding: 0 8px; color: #123d70; font-weight: 600; font-size: 18px; }
.become-calvary-question label { margin: 12px 0; }
.become-calvary-question textarea, .become-calvary-question input[type="text"] { width: 100%; box-sizing: border-box; padding: 12px; }
.become-calvary-lesson-complete { max-width: 620px; margin: 44px auto 22px; padding: 44px 36px; text-align: center; border: 1px solid #b8d8c5; border-radius: 10px; background: #f4fbf6; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.become-calvary-lesson-complete h2 { margin: 4px 0 14px; color: #123d70; font-size: 32px; }
.become-calvary-complete-kicker { margin: 0; color: #198754; font-weight: 600; }
.become-calvary-complete-next { margin: 22px 0 28px; }
.become-calvary-complete-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.become-calvary-action-button { display: inline-block; padding: 12px 20px; border: 1px solid #198754; border-radius: 5px; background: #198754; color: #ffffff !important; font-weight: 600; text-decoration: none; }
.become-calvary-action-button:hover, .become-calvary-action-button:focus { background: #146c43; color: #ffffff !important; }
.become-calvary-action-button.secondary { background: #ffffff; color: #146c43 !important; }
.become-calvary-action-button.secondary:hover, .become-calvary-action-button.secondary:focus { background: #e8f5e9; color: #146c43 !important; }

/* Keep the BECOME reading experience from being narrowed or lightened by a site theme. */
body .become-calvary-frontend.become-calvary-lesson-mode { position: relative !important; left: 50% !important; width: min(1240px, calc(100vw - 48px)) !important; max-width: none !important; margin: 0 !important; transform: translateX(-50%) !important; }
body .become-calvary-frontend .become-calvary-card.become-calvary-lesson-layout { box-sizing: border-box !important; width: calc(100% - 48px) !important; max-width: 1120px !important; margin-right: auto !important; margin-left: auto !important; }
body .become-calvary-frontend .become-calvary-teaching-panel, body .become-calvary-frontend .become-calvary-questions-panel { box-sizing: border-box !important; width: calc(100% - 48px) !important; max-width: 920px !important; }
body .become-calvary-frontend .become-calvary-lesson-content, body .become-calvary-frontend .become-calvary-lesson-content p, body .become-calvary-frontend .become-calvary-lesson-content li, body .become-calvary-frontend .become-calvary-pdf-introduction, body .become-calvary-frontend .become-calvary-pdf-introduction p { color: #263746 !important; }

/* Account-access controls. Keep the invitation and password actions easy to use. */
.become-calvary-invitation-form button {
	margin-top: 22px;
}

.become-calvary-account-links {
	margin-top: 28px !important;
	margin-bottom: 0 !important;
}

.become-calvary-password-field {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: 0 !important;
	margin-bottom: 18px;
	padding-top: 0 !important;
}

.become-calvary-password-group {
	margin: 26px 0 0;
	padding: 0;
}

.become-calvary-password-group label {
	margin: 0 0 8px !important;
}

.become-calvary-password-group .become-calvary-password-field {
	margin: 0 0 18px !important;
}

body .become-calvary-card form > label + .become-calvary-password-field {
	margin-top: 0 !important;
}

.become-calvary-password-field input[type="password"],
.become-calvary-password-field input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: 0;
}

.become-calvary-password-field .become-calvary-password-toggle {
	flex: 0 0 auto;
	margin: 0;
	padding: 10px 15px;
	border: 1px solid #198754;
	border-radius: 6px;
	background: #ffffff;
	color: #146c43;
	font-size: 15px;
	font-weight: 600;
}

.become-calvary-password-field .become-calvary-password-toggle:hover,
.become-calvary-password-field .become-calvary-password-toggle:focus {
	background: #e8f5e9;
	color: #146c43;
}

.become-calvary-reset-submit {
	margin-top: 12px;
}

@media (max-width: 700px) { .become-calvary-card.become-calvary-lesson-layout { padding: 18px; } .become-calvary-journey-overview { display: block; } .become-calvary-journey-overview .become-calvary-status { margin: 12px 0; } .become-calvary-teaching-panel, .become-calvary-questions-panel, .become-calvary-lesson-complete { padding: 20px; } .become-calvary-pdf-reader { height: 460px; } .become-calvary-complete-actions { display: block; } .become-calvary-action-button { display: block; margin: 10px 0; } }

/*
 * Mobile lesson reader.
 * The desktop layout intentionally escapes narrow theme content areas, but
 * its three nested 48px gutters left too little room on phones. Keep the
 * viewport escape while reducing the mobile gutters to a single 8px edge.
 */
@media (max-width: 700px) {
	body .become-calvary-frontend.become-calvary-lesson-mode {
		position: relative !important;
		left: 50% !important;
		width: calc(100vw - 16px) !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 8px 0 36px !important;
		transform: translateX(-50%) !important;
		box-sizing: border-box !important;
	}

	body .become-calvary-frontend .become-calvary-card.become-calvary-lesson-layout {
		width: 100% !important;
		max-width: none !important;
		margin: 8px 0 !important;
		padding: 14px 12px !important;
		border-radius: 10px;
		box-sizing: border-box !important;
	}

	body .become-calvary-frontend .become-calvary-teaching-panel,
	body .become-calvary-frontend .become-calvary-questions-panel {
		width: 100% !important;
		max-width: none !important;
		margin: 14px 0 !important;
		padding: 20px 16px !important;
		border-radius: 8px;
		box-sizing: border-box !important;
	}

	.become-calvary-journey-overview {
		display: block;
		margin-bottom: 16px;
	}

	.become-calvary-journey-overview .become-calvary-status {
		margin: 10px 0;
		padding: 15px;
	}

	.become-calvary-teaching-panel h3,
	.become-calvary-questions-panel h3 {
		font-size: 27px;
		line-height: 1.2;
		margin-bottom: 20px;
	}

	.become-calvary-lesson-introduction {
		margin-bottom: 22px;
		padding: 16px;
		font-size: 16px;
		line-height: 1.6;
	}

	.become-calvary-lesson-video,
	.become-calvary-lesson-material,
	.become-calvary-lesson-pdf {
		margin-top: 24px;
		padding-top: 20px;
	}

	.become-calvary-lesson-video h4,
	.become-calvary-lesson-material h4,
	.become-calvary-lesson-pdf h4 {
		font-size: 21px;
		line-height: 1.25;
		margin-bottom: 14px;
	}

	.become-calvary-video-frame {
		width: 100%;
		min-width: 0;
		aspect-ratio: 16 / 9;
	}

	.become-calvary-lesson-content,
	.become-calvary-lesson-content p,
	.become-calvary-lesson-content li {
		font-size: 17px;
		line-height: 1.65;
	}

	.become-calvary-question {
		padding: 14px;
	}

	.become-calvary-question legend {
		font-size: 17px;
	}

	.become-calvary-pdf-reader {
		height: 440px;
	}

.become-calvary-lesson-complete {
		width: 100%;
		margin: 24px 0 14px;
		padding: 28px 18px;
		box-sizing: border-box;
	}

	.become-calvary-complete-actions {
		display: block;
	}

	.become-calvary-action-button {
		display: block;
		margin: 10px 0;
		text-align: center;
	}
}
