/* Flinders Tax - New ITR Client Form styles */

.fitr-wrap {
	max-width: 780px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #222;
	line-height: 1.5;
	box-sizing: border-box;
}

.fitr-wrap *, .fitr-wrap *::before, .fitr-wrap *::after {
	box-sizing: border-box;
}

.fitr-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.fitr-header h1 {
	font-size: 26px;
	color: #1c3f60;
	margin: 0 0 8px;
}

.fitr-header p {
	color: #555;
	margin: 0 0 20px;
}

.fitr-section {
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	padding: 22px 20px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fitr-section h2 {
	font-size: 19px;
	color: #1c3f60;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.fitr-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #f5a623;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: bold;
	flex: 0 0 auto;
}

.fitr-help {
	color: #666;
	font-size: 14px;
	margin: 0 0 16px;
}

.fitr-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

.fitr-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fitr-full   { grid-column: span 6; }
.fitr-half   { grid-column: span 3; }
.fitr-third  { grid-column: span 2; }
.fitr-two-third { grid-column: span 4; }

@media (max-width: 640px) {
	.fitr-grid { grid-template-columns: 1fr; }
	.fitr-full, .fitr-half, .fitr-third, .fitr-two-third { grid-column: 1; }
	.fitr-wrap { padding: 0 4px; }
}

.fitr-field label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.fitr-optional {
	font-weight: 400;
	color: #888;
	font-size: 12.5px;
}

.req {
	color: #c0392b;
}

.fitr-field input[type="text"],
.fitr-field input[type="email"],
.fitr-field input[type="tel"],
.fitr-field input[type="date"],
.fitr-field select,
.fitr-field textarea {
	width: 100%;
	padding: 11px 12px;
	font-size: 16px;
	border: 1px solid #ccd3da;
	border-radius: 7px;
	background: #fff;
	color: #222;
	font-family: inherit;
}

.fitr-field input:focus,
.fitr-field select:focus,
.fitr-field textarea:focus {
	outline: none;
	border-color: #1c3f60;
	box-shadow: 0 0 0 3px rgba(28,63,96,0.12);
}

.fitr-field textarea {
	resize: vertical;
}

.fitr-note {
	font-size: 12.5px;
	color: #888;
	margin: 2px 0 0;
}

.fitr-checkbox-inline {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 14px;
	cursor: pointer;
}

.fitr-checkbox-inline input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* Engagement letter */
.fitr-letter {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafbfc;
	max-height: 340px;
	overflow-y: auto;
	padding: 16px 18px;
	margin-bottom: 16px;
}

.fitr-letter-inner h3 {
	color: #1c3f60;
	font-size: 16px;
	margin-top: 0;
}

.fitr-letter-inner h4 {
	color: #1c3f60;
	font-size: 14.5px;
	margin: 16px 0 6px;
}

.fitr-letter-inner ul {
	margin: 0 0 4px;
	padding-left: 20px;
}

.fitr-letter-inner li {
	font-size: 13.5px;
	color: #333;
	margin-bottom: 8px;
}

.fitr-letter-inner p {
	font-size: 13.5px;
	color: #333;
}

.fitr-letter-footer {
	font-size: 12px;
	color: #888;
	border-top: 1px solid #e0e0e0;
	padding-top: 10px;
	margin-top: 14px;
}

.fitr-agree-row {
	background: #fff8ea;
	border: 1px solid #f5deac;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.fitr-agree {
	font-weight: 500 !important;
}

/* Signature pad */
.fitr-sig-wrap {
	position: relative;
	border: 2px dashed #b9c2cc;
	border-radius: 8px;
	background: #fff;
	touch-action: none;
}

#fitr-sig-pad {
	width: 100%;
	height: 200px;
	display: block;
	border-radius: 8px;
	cursor: crosshair;
	touch-action: none;
}

.fitr-sig-line {
	position: absolute;
	bottom: 14px;
	left: 20px;
	right: 20px;
	border-top: 1px solid #b9c2cc;
	font-size: 11px;
	color: #999;
	text-align: center;
	padding-top: 2px;
	pointer-events: none;
}

.fitr-btn-secondary {
	margin-top: 10px;
	background: #fff;
	border: 1px solid #ccd3da;
	color: #444;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
}

.fitr-btn-secondary:hover {
	background: #f2f2f2;
}

/* ID upload */
.fitr-file {
	width: 100%;
	padding: 14px 12px;
	font-size: 15px;
	border: 2px dashed #b9c2cc;
	border-radius: 8px;
	background: #fafbfc;
	cursor: pointer;
	font-family: inherit;
}

.fitr-file:hover {
	border-color: #1c3f60;
}

.fitr-file-ok {
	color: #1e7e34 !important;
	font-weight: 600;
}

.fitr-file-bad {
	color: #c0392b !important;
	font-weight: 600;
}

/* Submit */
.fitr-submit-row {
	text-align: center;
	padding: 10px 0 30px;
}

.fitr-btn-primary {
	background: #1c3f60;
	color: #fff;
	border: none;
	padding: 15px 34px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	width: 100%;
	max-width: 420px;
}

.fitr-btn-primary:hover {
	background: #16324c;
}

.fitr-btn-primary:disabled {
	background: #9aa7b3;
	cursor: not-allowed;
}

.fitr-message {
	min-height: 20px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
}

.fitr-message.fitr-error {
	color: #c0392b;
}

.fitr-message.fitr-success-text {
	color: #1e7e34;
}

.fitr-success {
	text-align: center;
	background: #eefaf0;
	border: 1px solid #b7e4c0;
	border-radius: 10px;
	padding: 40px 20px;
}

.fitr-success h2 {
	color: #1e7e34;
	margin-top: 0;
}
