/* ShineCare Patient Agreement Manager — Public Styles */

.sc-public-wrap {
	max-width: 720px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	color: #1b2733;
}

/* ---------- Login ---------- */
.sc-login-wrap { max-width: 420px; }
.sc-login-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 30px rgba(11,111,176,0.12);
	padding: 36px 30px;
	text-align: center;
	border-top: 5px solid #0b6fb0;
}
.sc-public-logo { max-height: 60px; margin-bottom: 14px; }
.sc-login-card h2 { color: #0b6fb0; margin: 0 0 4px; font-size: 22px; }
.sc-login-sub { color: #5b6b79; margin-bottom: 20px; }
.sc-login-form { text-align: left; }
.sc-field { margin-bottom: 16px; }
.sc-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #34424f; }
.sc-field input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d7e2ea;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
}
.sc-field input:focus { outline: none; border-color: #0b6fb0; box-shadow: 0 0 0 3px rgba(11,111,176,0.12); }
.sc-login-help { margin-top: 18px; font-size: 13px; color: #5b6b79; }
.sc-login-help a { color: #0b6fb0; }

/* ---------- Buttons ---------- */
.sc-btn-primary {
	background: #0b6fb0;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	transition: background .15s ease;
}
.sc-btn-primary:hover { background: #095a8f; color: #fff; }
.sc-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.sc-btn-block { width: 100%; }
.sc-btn-lg { padding: 15px; font-size: 16px; margin-top: 10px; }
.sc-btn-outline {
	background: #fff;
	color: #0b6fb0 !important;
	border: 1px solid #0b6fb0;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
.sc-btn-outline:hover { background: #eaf4fc; }
.sc-btn-sm { padding: 6px 12px; font-size: 13px; margin-top: 8px; }

/* ---------- Alerts ---------- */
.sc-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.sc-alert-error { background: #fdeceb; color: #c9463c; border: 1px solid #f6c9c4; }
.sc-alert-success { background: #eafaf3; color: #1a9e6d; border: 1px solid #b9ecd6; }

/* ---------- Locked view ---------- */
.sc-locked-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 30px rgba(11,111,176,0.12);
	padding: 40px 30px;
	text-align: center;
	border-top: 5px solid #1a9e6d;
}
.sc-locked-icon {
	width: 64px; height: 64px; border-radius: 50%;
	background: #eafaf3; color: #1a9e6d;
	font-size: 30px; line-height: 64px;
	margin: 0 auto 18px;
}
.sc-locked-card h2 { color: #1a9e6d; font-size: 20px; margin-bottom: 8px; }
.sc-locked-sub { color: #5b6b79; margin-bottom: 24px; }
.sc-locked-details {
	background: #f5f8fb;
	border-radius: 10px;
	padding: 16px 20px;
	text-align: left;
	margin-bottom: 24px;
}
.sc-locked-details div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e6edf2; font-size: 14px; }
.sc-locked-details div:last-child { border-bottom: none; }
.sc-locked-details span { color: #5b6b79; }
.sc-locked-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Agreement form ---------- */
.sc-agreement-wrap { max-width: 760px; }
.sc-agreement-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 30px rgba(11,111,176,0.12);
	padding: 30px;
	position: relative;
}
.sc-agreement-header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.sc-public-logo-small { max-height: 46px; }
.sc-agreement-header h2 { color: #0b6fb0; margin: 0; font-size: 20px; }
.sc-agreement-header p { margin: 2px 0 0; color: #5b6b79; font-size: 13px; }
.sc-logout-corner { margin-left: auto; }
.sc-agreement-title { text-align: center; color: #1b2733; font-size: 22px; margin: 18px 0 4px; }
.sc-agreement-subtitle { text-align: center; color: #5b6b79; font-weight: 600; margin: 0 0 18px; }
.sc-welcome { color: #34424f; margin: 14px 0 22px; }

.sc-service-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.sc-service-table th, .sc-service-table td { border: 1px solid #d7e2ea; padding: 8px 10px; text-align: left; }
.sc-service-table th { background: #eaf4fc; color: #0b6fb0; font-size: 12px; }
.sc-fee-summary { background: #f5f8fb; border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.sc-grid-span-2 { grid-column: span 2; }
@media (max-width: 600px) { .sc-grid-span-2 { grid-column: span 1; } }

.sc-section { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #eef3f7; }
.sc-section:last-of-type { border-bottom: none; }
.sc-section h3 { color: #0b6fb0; font-size: 15px; margin-bottom: 14px; }

.sc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .sc-grid-2 { grid-template-columns: 1fr; } }
.sc-grid-2 label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #34424f; }
.sc-grid-2 input[type="text"], .sc-grid-2 input[type="file"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d7e2ea;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}
.sc-grid-2 input:disabled { background: #f5f8fb; color: #5b6b79; }

.sc-hint { color: #8a97a3; font-size: 12px; margin: -6px 0 12px; }

.sc-terms-box {
	background: #f5f8fb;
	border: 1px solid #e6edf2;
	border-radius: 8px;
	padding: 16px;
	max-height: 320px;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.6;
	color: #34424f;
}
.sc-terms-box .sc-clause { margin-bottom: 12px; overflow: hidden; }
.sc-terms-box .sc-clause > .sc-num { float: left; width: 22px; font-weight: 700; }
.sc-terms-box .sc-clause > .sc-clause-body { display: block; margin-left: 22px; }
.sc-terms-box .sc-subclause { margin: 6px 0 6px 22px; overflow: hidden; }
.sc-terms-box .sc-subclause > .sc-subnum { float: left; width: 18px; }
.sc-terms-box .sc-subclause > .sc-clause-body { display: block; margin-left: 18px; }
.sc-terms-box ul.sc-diamond-list { list-style: none; margin: 0 0 10px; padding: 0; }
.sc-terms-box ul.sc-diamond-list > li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.sc-terms-box ul.sc-diamond-list > li:before { content: "\2756"; position: absolute; left: 0; top: 0; color: #0b6fb0; }
.sc-terms-box ul.sc-arrow-list { list-style: none; margin: 4px 0 4px 18px; padding: 0; }
.sc-terms-box ul.sc-arrow-list > li { position: relative; padding-left: 16px; margin-bottom: 3px; }
.sc-terms-box ul.sc-arrow-list > li:before { content: "\27A2"; position: absolute; left: 0; top: 0; font-size: 10px; color: #0b6fb0; }

.sc-upload-field { margin-bottom: 4px; }

.sc-signature-wrap {
	border: 2px dashed #c6d6e2;
	border-radius: 10px;
	background: #fbfcfe;
	overflow: hidden;
	touch-action: none;
}
#scSignaturePad { width: 100%; height: 180px; display: block; cursor: crosshair; }

.sc-checkbox-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #34424f;
	cursor: pointer;
}
.sc-checkbox-row input { width: 18px; height: 18px; }

@media (max-width: 600px) {
	.sc-agreement-card { padding: 20px; }
	.sc-agreement-header { flex-wrap: wrap; }
	.sc-logout-corner { margin-left: 0; }
}
