/* ==========================================================================
   JiJ Japanese Resume — creator form styles
   ========================================================================== */

.jij-jr-app {
	max-width: 980px;
	margin: 32px auto;
	padding: 0 16px;
	font-family: inherit;
	color: #222;
}

.jij-jr-header h2 {
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 8px;
}

.jij-jr-lead {
	color: #555;
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 12px;
	max-width: 760px;
}

.jij-jr-existing-note,
.jij-jr-status {
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.45;
	padding: 10px 14px;
}

.jij-jr-existing-note {
	background: #fff8e6;
	border: 1px solid #f0d77a;
	color: #5a4500;
	margin: 12px 0 0;
}

.jij-jr-status {
	background: #f4faf2;
	border: 1px solid #c2dfb6;
	color: #2c5a1e;
	margin-top: 14px;
}

.jij-jr-status.is-error {
	background: #fff0f0;
	border-color: #f3b9b9;
	color: #8a1f1f;
}

.jij-jr-link {
	color: #d56b00;
	text-decoration: underline;
}

.jij-jr-panel,
.jij-jr-section {
	background: #fff;
	border: 1px solid #e3e3e8;
	border-radius: 8px;
	padding: 20px 22px;
}

.jij-jr-panel {
	margin: 20px 0 18px;
}

.jij-jr-prefill-panel {
	background: #fbfcff;
	border-color: #d8dfeb;
}

.jij-jr-panel-head,
.jij-jr-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.jij-jr-panel-head h3,
.jij-jr-section-head h3 {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.jij-jr-panel-head p,
.jij-jr-help {
	color: #666;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.jij-jr-panel-head p {
	flex: 1 1 auto;
	max-width: 660px;
}

.jij-jr-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 0;
}

.jij-jr-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.jij-jr-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jij-jr-field {
	min-width: 0;
}

.jij-jr-field-wide {
	grid-column: 1 / -1;
}

.jij-jr-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 6px;
}

.jij-jr-control,
.jij-jr-select,
.jij-jr-input {
	background: #fff;
	border: 1px solid #d0d0d8;
	border-radius: 6px;
	box-sizing: border-box;
	color: #222;
	font-size: 14px;
	line-height: 1.4;
	min-height: 38px;
	padding: 7px 10px;
	width: 100%;
}

textarea.jij-jr-control {
	min-height: 84px;
	resize: vertical;
}

.jij-jr-control:focus,
.jij-jr-select:focus,
.jij-jr-input:focus {
	border-color: #d56b00;
	box-shadow: 0 0 0 2px rgba(213, 107, 0, 0.12);
	outline: none;
}

.jij-jr-control.is-invalid {
	border-color: #c93434;
	box-shadow: 0 0 0 2px rgba(201, 52, 52, 0.08);
}

.jij-jr-field-error {
	color: #9a2424;
	font-size: 12px;
	line-height: 1.35;
	margin-top: 5px;
}

.jij-jr-row-field-error {
	grid-column: 1 / -1;
	margin-top: 0;
}

.jij-jr-prefill-form {
	margin: 0;
}

.jij-jr-prefill-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-top: 18px;
}

.jij-jr-check,
.jij-jr-row-check {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	line-height: 1.35;
}

.jij-jr-check {
	color: #444;
	font-size: 13px;
	margin-right: auto;
}

.jij-jr-row-check {
	color: #555;
	font-size: 12px;
	justify-content: center;
	min-height: 38px;
	white-space: nowrap;
}

.jij-jr-photo-field {
	display: flow-root;
}

.jij-jr-photo-preview {
	align-items: center;
	background: #f7f7f9;
	border: 1px solid #dedee5;
	border-radius: 6px;
	display: flex;
	height: 96px;
	justify-content: center;
	margin-bottom: 8px;
	overflow: hidden;
	width: 96px;
}

.jij-jr-photo-preview img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.jij-jr-file-control {
	padding: 7px;
}

.jij-jr-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jij-jr-row {
	align-items: start;
	display: grid;
	grid-template-columns: minmax(88px, 0.7fr) minmax(88px, 0.7fr) minmax(150px, 1.25fr) minmax(140px, 1.1fr) minmax(104px, 0.75fr) 34px;
	gap: 8px;
}

.jij-jr-row-work {
	grid-template-columns: minmax(88px, 0.7fr) minmax(100px, 0.75fr) minmax(140px, 1.1fr) minmax(128px, 1fr) minmax(150px, 1.1fr) minmax(74px, 0.55fr) 34px;
}

.jij-jr-row-compact {
	grid-template-columns: minmax(100px, 0.35fr) minmax(220px, 1fr) 34px;
}

.jij-jr-icon-btn {
	align-items: center;
	background: #f7f7f9;
	border: 1px solid #d9d9e0;
	border-radius: 6px;
	color: #555;
	display: inline-flex;
	font-size: 18px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 34px;
}

.jij-jr-icon-btn:hover {
	background: #eeeef2;
	color: #222;
}

.jij-jr-small-btn {
	font-size: 13px;
	padding: 7px 14px;
	white-space: nowrap;
}

.jij-jr-submit-row {
	align-items: center;
	display: flex;
	gap: 14px;
	margin-top: 2px;
}

.jij-jr-submit {
	font-size: 16px;
	padding: 10px 28px;
}

.jij-jr-spinner {
	border: 2px solid #e0e0e0;
	border-radius: 50%;
	border-top-color: #555;
	display: none;
	height: 20px;
	width: 20px;
	animation: jij-jr-spin 0.8s linear infinite;
}

.jij-jr-spinner.is-active {
	display: inline-block;
}

@keyframes jij-jr-spin {
	to { transform: rotate(360deg); }
}

.jij-jr-result {
	background: #f4faf2;
	border: 1px solid #c2dfb6;
	border-radius: 8px;
	margin-top: 18px;
	padding: 22px 24px;
}

.jij-jr-result h3 {
	color: #2c5a1e;
	font-size: 18px;
	margin: 0 0 8px;
}

.jij-jr-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0 0;
}

.jij-jr-error {
	background: #fff0f0;
	border: 1px solid #f3b9b9;
	border-radius: 6px;
	color: #8a1f1f;
	margin-top: 12px;
	padding: 12px 14px;
}

.jij-jr-gate {
	background: #fafafc;
	border: 1px solid #e3e3e8;
	border-radius: 8px;
	margin: 60px auto;
	max-width: 560px;
	padding: 30px;
	text-align: center;
}

@media (max-width: 900px) {
	.jij-jr-grid-2,
	.jij-jr-row,
	.jij-jr-row-work,
	.jij-jr-row-compact {
		grid-template-columns: 1fr;
	}

	.jij-jr-panel-head,
	.jij-jr-section-head {
		align-items: stretch;
		flex-direction: column;
	}

	.jij-jr-icon-btn {
		justify-self: start;
	}

	.jij-jr-row-check {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	.jij-jr-app {
		margin: 20px auto;
		padding: 0 12px;
	}

	.jij-jr-header h2 {
		font-size: 23px;
	}

	.jij-jr-panel,
	.jij-jr-section {
		padding: 16px;
	}

	.jij-jr-prefill-actions,
	.jij-jr-submit-row,
	.jij-jr-result-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.jij-jr-check {
		margin-right: 0;
	}
}

/* CTA banner on manage-resume page */
.jij-jr-cta-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: #fff;
	border: 2px solid #d56b00;
	border-radius: 8px;
	padding: 20px 28px;
	margin: 0 0 28px;
	box-shadow: 0 1px 0 rgba(213, 107, 0, 0.08), 0 4px 14px rgba(213, 107, 0, 0.06);
	position: relative;
}

.jij-jr-cta-banner::before {
	content: "履";
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 38px;
	color: #d56b00;
	opacity: 0.12;
	font-weight: bold;
	line-height: 1;
	pointer-events: none;
}

.jij-jr-cta-banner-text {
	flex: 1 1 auto;
	padding-left: 32px;
}

.jij-jr-cta-banner-text strong {
	display: block;
	font-size: 17px;
	color: #2a2a2a;
	margin: 0 0 4px;
	letter-spacing: 0.01em;
}

.jij-jr-cta-banner-text span {
	display: block;
	color: #5a5a5a;
	font-size: 13px;
	line-height: 1.5;
}

.jij-jr-cta-banner .btn,
.jij-jr-cta-banner a.btn {
	flex: 0 0 auto;
	background: #d56b00;
	color: #fff;
	border: 1px solid #d56b00;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 14px;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
	text-decoration: none;
}

.jij-jr-cta-banner .btn:hover,
.jij-jr-cta-banner a.btn:hover {
	background: #b85b00;
	border-color: #b85b00;
	color: #fff;
}

.jij-jr-cta-banner .btn:active {
	transform: translateY(1px);
}

@media (max-width: 600px) {
	.jij-jr-cta-banner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 18px 20px;
	}
	.jij-jr-cta-banner-text {
		padding-left: 28px;
	}
	.jij-jr-cta-banner::before {
		left: 14px;
		font-size: 30px;
	}
	.jij-jr-cta-banner .btn {
		width: 100%;
		text-align: center;
	}
}

/* Photo notice text replacing the old checkbox */
.jij-jr-photo-notice {
	margin: 0;
	font-size: 12.5px;
	color: #777;
	font-style: italic;
	line-height: 1.4;
}

/* Apply-form integration */
.jij-jr-apply-attach {
	margin: 10px 0;
	padding: 10px 12px;
	background: #fff8e6;
	border: 1px solid #f0d77a;
	border-radius: 6px;
}

.jij-jr-apply-cta {
	margin: 10px 0;
}

.jij-jr-apply-cta-link {
	display: inline-block;
	color: #d56b00;
	text-decoration: underline;
	font-size: 13px;
}

/* ==========================================================================
   Manage-resume page — Japanese Resume section
   ========================================================================== */

.jij-jr-manage-section {
	display: flow-root;
	margin-top: 0;
	padding-top: 56px;
	border-top: 1px solid #e8e8ee;
}

.jij-jr-manage-section > h3 {
	font-size: 18px;
	margin-top: 0;
	margin-bottom: 16px;
}

/* Mini-table: inherits .noo-datatable spacing/borders */

/* CTA pill — empty state */
.jij-jr-cta-pill {
	display: flex;
	align-items: center;
	gap: 18px;
	border: 1px solid #e3e3e8;
	border-radius: 8px;
	padding: 18px 22px;
	background: #fafafc;
}

.jij-jr-cta-pill-glyph {
	font-size: 36px;
	color: #d56b00;
	opacity: 0.35;
	font-weight: bold;
	line-height: 1;
	flex: 0 0 auto;
}

.jij-jr-cta-pill-body {
	flex: 1 1 auto;
}

.jij-jr-cta-pill-btn {
	display: inline-block;
	margin-bottom: 6px;
}

.jij-jr-cta-pill-note {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.jij-jr-cta-pill {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.jij-jr-cta-pill-btn {
		width: 100%;
		text-align: center;
	}
}
