/* Reimbursement Collector - front-end form styles */

.rc-form-wrap {
	max-width: 820px;
	margin: 0 auto;
}
.rc-form-wrap *,
.rc-form-wrap *::before,
.rc-form-wrap *::after {
	box-sizing: border-box;
}

.rc-section-title {
	margin: 20px 0 10px;
	padding-bottom: 5px;
	border-bottom: 2px solid #e3e6ea;
	font-size: 1.05em;
}

/* ------- 2-column field grid ------- */
.rc-fields-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 16px 20px;
}
.rc-w-full { grid-column: 1 / -1; }
.rc-w-half { grid-column: span 1; }

.rc-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}
.rc-field > label,
.rc-label {
	font-weight: 600;
}
.rc-field input[type="text"],
.rc-field input[type="email"],
.rc-field input[type="tel"],
.rc-field input[type="number"],
.rc-field input[type="date"],
.rc-field textarea,
.rc-field select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #c4c9d0;
	border-radius: 6px;
	font: inherit;
	background: #fff;
}
.rc-field textarea { min-height: 90px; resize: vertical; }
.rc-field input:focus,
.rc-field textarea:focus,
.rc-field select:focus {
	border-color: #2271b1;
	outline: 2px solid rgba( 34, 113, 177, .25 );
	outline-offset: 0;
}
.rc-field .description,
.rc-field small {
	color: #646970;
	font-size: .85em;
}
.rc-req { color: #c0392b; }

/* ------- display-text (content) blocks ------- */
.rc-field-content { gap: 0; }
.rc-content {
	line-height: 1.55;
}
.rc-content > :first-child { margin-top: 0; }
.rc-content > :last-child { margin-bottom: 0; }

.rc-has-error input,
.rc-has-error textarea,
.rc-has-error select {
	border-color: #c0392b !important;
	background: #fff7f7;
}

/* ------- text radio / dropdown choices ------- */
.rc-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}
.rc-choice {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 400;
	cursor: pointer;
}

/* ------- image radio buttons ------- */
.rc-image-choices {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 130px, 1fr ) );
	gap: 12px;
}
.rc-image-choice {
	position: relative;
	display: block;
	cursor: pointer;
}
.rc-image-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.rc-image-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border: 2px solid #d4d8dd;
	border-radius: 10px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	height: 100%;
}
.rc-image-card img {
	width: 100%;
	height: 96px;
	object-fit: contain;
	display: block;
}
.rc-image-placeholder {
	width: 100%;
	height: 96px;
	border-radius: 6px;
	background: repeating-linear-gradient( 45deg, #f0f0f1, #f0f0f1 10px, #e6e6e8 10px, #e6e6e8 20px );
}
.rc-image-name {
	font-size: .92em;
	font-weight: 600;
	text-align: center;
}
.rc-image-choice input:checked + .rc-image-card {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba( 34, 113, 177, .18 );
}
.rc-image-choice input:focus-visible + .rc-image-card {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* ------- single checkbox + signature ------- */
.rc-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-weight: 400;
	cursor: pointer;
}
.rc-checkbox input { margin-top: 3px; }

.rc-signature {
	margin: 22px 0;
	padding: 14px 16px;
	background: #f6f7f9;
	border: 1px solid #e0e3e8;
	border-radius: 8px;
}
.rc-signature.rc-has-error {
	border-color: #c0392b;
	background: #fff7f7;
}

/* ------- expenses repeater (compact, for narrow theme columns) ------- */
.rc-expenses { margin-top: 6px; font-size: .9em; }
.rc-expense-row {
	position: relative;
	padding: 10px 12px;
	margin-bottom: 10px;
	background: #fff;
	border: 1px solid #d9dde2;
	border-radius: 8px;
}
.rc-expense-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 6px 10px;
}
.rc-expense-grid .rc-w-half { grid-column: span 1; }
.rc-expense-grid .rc-w-full { grid-column: 1 / -1; }
.rc-expense-grid label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: .82em;
	font-weight: 600;
	line-height: 1.25;
}
.rc-exp-cap { display: block; }
.rc-exp-cap .rc-req { margin-left: 1px; }
/* keep the Amount field clear of the Remove control */
.rc-expense-grid > label:nth-child(2) { padding-right: 60px; }
.rc-expense-grid input,
.rc-expense-row input[type="file"] {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #c4c9d0;
	border-radius: 5px;
	font: inherit;
	font-size: .95em;
	background: #fff;
}
.rc-expense-row input[type="file"] { padding: 5px 6px; font-size: .9em; }
.rc-expense-row small.rc-desc { font-size: .82em; margin-top: 2px; }
.rc-remove-expense {
	position: absolute;
	top: 9px;
	right: 10px;
	border: 0;
	background: transparent;
	color: #b0413e;
	font-size: .78em;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1;
	padding: 2px;
	cursor: pointer;
}
.rc-remove-expense:hover { text-decoration: underline; }

.rc-actions { margin: 10px 0 4px; }
.rc-btn {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid #2271b1;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.rc-btn:hover { background: #195e96; }
.rc-add-expense {
	background: #fff;
	color: #2271b1;
	font-size: .9em;
	padding: 7px 13px;
}
.rc-add-expense:hover { background: #f0f6fc; }

.rc-total-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-top: 8px;
	padding: 10px 14px;
	background: #102a43;
	color: #fff;
	border-radius: 8px;
}
.rc-total-label { font-weight: 600; font-size: .95em; }
.rc-total-amount { font-size: 1.2em; font-weight: 700; }

/* ------- email confirmation ------- */
.rc-confirm-status {
	display: block;
	margin-top: 4px;
	font-size: .9em;
	font-weight: 600;
	min-height: 1em;
}
.rc-confirm-status.is-ok  { color: #1e7e34; }
.rc-confirm-status.is-err { color: #c0392b; }

/* ------- submit ------- */
.rc-submit {
	margin-top: 10px;
	padding: 12px 26px;
	border: 0;
	border-radius: 8px;
	background: #1e7e34;
	color: #fff;
	font: inherit;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
}
.rc-submit:hover { background: #19682b; }
.rc-submit:disabled {
	background: #9aa0a6;
	cursor: not-allowed;
}
.rc-submit-hint {
	margin: 8px 0 0;
	color: #646970;
	font-size: .88em;
}

/* ------- messages ------- */
.rc-errors,
.rc-success,
.rc-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
}
.rc-errors {
	background: #fcebea;
	border: 1px solid #f0b4b1;
	color: #8a1f1b;
}
.rc-errors ul { margin: 6px 0 0 18px; }
.rc-success {
	background: #e6f4ea;
	border: 1px solid #a6d8b5;
	color: #14692a;
}
.rc-notice {
	background: #fff8e5;
	border: 1px solid #f0d98a;
	color: #6b5400;
}

/* ------- honeypot (hidden from humans) ------- */
.rc-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------- responsive ------- */
@media ( max-width: 600px ) {
	.rc-fields-grid { grid-template-columns: 1fr; }
	.rc-w-half { grid-column: 1 / -1; }
	.rc-expense-grid { grid-template-columns: 1fr; }
}
