/* TrustHandled theme styles */

:root {
	--th-orange: #e6824e;
	--th-blue: #3a8abe;
	--th-navy: #14295a;
	--th-navy-hover: #213870;
	--th-light-bg: #eaeef5;
	--th-text: #1a1a1a;
	--th-muted: #6b7280;
	--th-border: #e5e7eb;
	--th-sidebar-width: 250px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', sans-serif;
	color: var(--th-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html { background-color: #142A5A; }
body { background: #fff; }

a { color: var(--th-navy); }
a:hover { color: var(--th-blue); }

img { max-width: 100%; height: auto; display: block; }

.th-site {
	display: flex;
	min-height: 100vh;
	align-items: stretch;
}

.th-main {
	flex: 1 1 auto;
	padding: 40px;
	min-width: 0;
}

body.logged-in .th-main { margin-left: 0; }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
	width: var(--th-sidebar-width);
	flex: 0 0 var(--th-sidebar-width);
	padding: 20px 0;
	background: var(--th-navy);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	align-self: flex-start;
	min-height: 100vh;
}

.sidebar-logo {
	padding: 10px 20px 30px;
	text-align: center;
}

.sidebar-logo img { margin: 0 auto; max-width: 180px; height: auto; }

.sidebar-welcome {
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	text-align: center;
	padding: 0 20px 20px;
}

.sidebar-menu {
	list-style: none !important;
	padding: 0;
	margin: 0;
}

.sidebar-menu li {
	margin: 5px 0;
	list-style: none !important;
}

.sidebar-menu a {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: 16px;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
	background-color: var(--th-navy-hover);
	color: #fff;
}

.sidebar-menu i {
	margin-right: 15px;
	width: 20px;
	text-align: center;
	font-size: 18px;
}

.sidebar-footer {
	margin-top: auto;
	padding: 20px;
	text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.th-btn {
	display: inline-block;
	padding: 14px 38px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	border-radius: 999px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.th-btn--primary {
	background-color: var(--th-orange);
	color: #fff;
}

.th-btn--primary:hover {
	background-color: #d46d3a;
	color: #fff;
}

.th-btn--primary:active { transform: translateY(1px); }

/* ==========================================================================
   Welcome (front-page)
   ========================================================================== */

.th-welcome {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

.th-welcome-logo {
	text-align: center;
	margin-bottom: 50px;
}

.th-welcome-logo img { max-width: 260px; margin: 0 auto; }

.th-welcome-wordmark {
	font-size: 32px;
	font-weight: 700;
	color: var(--th-text);
}

.th-welcome-title {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--th-text);
	font-family: 'Montserrat', sans-serif;
}

.th-welcome-sub {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: var(--th-text);
	margin: 0 0 50px;
}

.th-welcome-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
}

.th-welcome-card {
	border-radius: 10px;
	padding: 60px 40px;
	text-align: center;
	min-height: 230px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 30px;
}

.th-welcome-card--dark {
	background-color: var(--th-navy);
	color: #fff;
}

.th-welcome-card--light {
	background-color: var(--th-light-bg);
	color: var(--th-text);
}

.th-welcome-card-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

@media (max-width: 768px) {
	.th-site { flex-direction: column; }
	.sidebar { width: 100%; flex-basis: auto; min-height: 0; position: static; }
	.th-main { padding: 24px; }
	.th-welcome-cards { grid-template-columns: 1fr; gap: 20px; }
	.th-welcome-title { font-size: 26px; }
	.th-welcome-card { padding: 40px 20px; min-height: auto; }
}

/* ==========================================================================
   404
   ========================================================================== */

.th-404 { max-width: 600px; margin: 80px auto; text-align: center; }
.th-404 h1 { font-size: 32px; margin-bottom: 10px; }

/* ==========================================================================
   Managed pages (inc/pages.php -> page-views/)
   ========================================================================== */

.th-page-inner { max-width: 1100px; margin: 0 auto; }

.th-center { text-align: center; }
.th-underline { text-decoration: underline; }

/* Navy button variant (orange is .th-btn--primary). */
.th-btn--navy { background-color: var(--th-navy); color: #fff; }
.th-btn--navy:hover { background-color: var(--th-navy-hover); color: #fff; }
.th-btn--navy:active { transform: translateY(1px); }

/* Centered, sidebar-less pages: login, register, confirm-account, forgot-password. */
.th-chrome-minimal .th-main {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 60px;
}
.th-chrome-minimal .th-page-inner { width: 100%; max-width: 560px; }

/* --------------------------------------------------------------------------
   Login / Confirm card (Cognito)
   -------------------------------------------------------------------------- */

#cognito-login-form {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 30px;
	width: 350px;
	max-width: 90%;
	margin: auto;
}

#cognito-login-form p { margin-bottom: 20px; }

#cognito-login-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

#cognito-login-form input[type="email"],
#cognito-login-form input[type="password"],
#cognito-login-form input[type="text"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.3s;
}

#cognito-login-form input[type="email"]:focus,
#cognito-login-form input[type="password"]:focus,
#cognito-login-form input[type="text"]:focus {
	border-color: #14295A;
	outline: none;
	box-shadow: 0 0 0 2px rgba(20, 41, 90, 0.1);
}

#cognito-login-form input[type="submit"],
#cognito-login-form button[type="submit"] {
	background-color: #14295A;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 12px 20px;
	font-size: 15px;
	cursor: pointer;
	width: 100%;
	transition: background-color 0.3s, transform 0.2s;
}

#cognito-login-form input[type="submit"]:hover,
#cognito-login-form button[type="submit"]:hover { background-color: #1a3470; }

#cognito-login-form input[type="submit"]:active,
#cognito-login-form button[type="submit"]:active { transform: scale(0.98); }

#cognito-login-form input[readonly] { background-color: #f5f5f5; color: #666; }

.login-error {
	background-color: #fdecea;
	color: #a02622;
	border: 1px solid #f5c2c0;
	border-radius: 4px;
	padding: 10px 14px;
	margin-bottom: 18px;
	font-size: 14px;
	text-align: center;
}

.th-login-confirmed { text-align: center; }

.th-login-forgot { text-align: center; margin-top: 20px; }
.forgot-password a { border-bottom: 1px dotted; text-decoration: none; }
.forgot-password:hover a { border-bottom: 1px solid; }

#resend-code {
	width: 350px;
	max-width: 90%;
	margin: 20px auto 0;
	text-align: center;
	font-size: 14px;
}
#resend-code button { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Account dashboard / completed / notarize
   -------------------------------------------------------------------------- */

.th-dashboard-intro { max-width: 720px; margin: 0 auto; }
.th-dashboard-hero { margin: 0 auto 24px; border-radius: 8px; }

.th-completed { max-width: 760px; }
.th-completed ol { line-height: 1.8; }

.th-notarize { max-width: 760px; }

/* Stacked, equal-weight call-to-action buttons (notarize page). */
.th-notarize-ctas {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
}

.th-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 340px;
	padding: 18px 28px;
	background-color: var(--th-navy);
	color: #fff;
	border-radius: 12px;
	font-weight: 700;
	font-size: 17px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(20, 41, 90, 0.25);
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.th-cta:hover {
	background-color: var(--th-navy-hover);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(20, 41, 90, 0.32);
}

.th-cta i { font-size: 18px; }

.th-cta-or {
	color: var(--th-muted);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Centered brand logo on the sidebar-less auth pages. */
.th-auth-logo { text-align: center; margin-bottom: 30px; }
.th-auth-logo img { max-width: 240px; margin: 0 auto; }

/* ==========================================================================
   Site footer (legal disclaimer — appears on every page)
   ========================================================================== */

.th-site-footer {
	border-top: 1px solid var(--th-border);
	background: #fff;
	padding: 44px 60px;
}

.th-site-footer-inner { max-width: 900px; margin: 0 auto; }

.th-disclaimer {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	line-height: 1.8;
	color: var(--th-muted);
	text-align: center;
}

.th-disclaimer a { color: var(--th-navy); text-decoration: underline; }
.th-disclaimer a:hover { color: var(--th-blue); }

@media (max-width: 768px) {
	.th-site-footer { padding: 28px 24px; }
}
