/* ===== AI Resume-JD Gap Analyzer — namespaced styles ===== */
/* All rules are scoped under .rga-wrap so this cannot leak into or clash
   with any WordPress theme's global styles. */

.rga-wrap, .rga-wrap * {
	box-sizing: border-box;
}

.rga-wrap {
	max-width: 960px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	line-height: 1.5;
}

.rga-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 18px;
}

@media (max-width: 700px) {
	.rga-grid {
		grid-template-columns: 1fr;
	}
}

.rga-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1a1a1a;
}

.rga-field textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #d5d9dd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	background: #fff;
	color: #1a1a1a;
}

.rga-field textarea:focus {
	outline: none;
	border-color: #1b6e4a;
	box-shadow: 0 0 0 3px rgba(27, 110, 74, 0.15);
}

.rga-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #1b6e4a;
	color: #ffffff !important;
	border: none;
	padding: 13px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.rga-btn:hover {
	background: #175c3d;
}

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

.rga-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.rga-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rga-spin 0.7s linear infinite;
	display: inline-block;
}

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

.rga-error {
	color: #b3261e;
	background: #fdecea;
	border: 1px solid #f6c6c2;
	padding: 10px 14px;
	border-radius: 6px;
	margin-top: 14px;
	font-size: 14px;
}

.rga-results {
	margin-top: 36px;
	border-top: 1px solid #e5e7eb;
	padding-top: 28px;
}

.rga-score-block {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.rga-score-circle {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: conic-gradient(#1b6e4a calc(var(--pct, 0) * 1%), #e9ecef 0);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
}

.rga-score-circle::before {
	content: "";
	position: absolute;
	width: 72px;
	height: 72px;
	background: #fff;
	border-radius: 50%;
}

.rga-score-circle span {
	position: relative;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

.rga-score-label h3 {
	margin: 0 0 4px;
	font-size: 18px;
}

.rga-score-label p {
	margin: 0;
	color: #555;
	font-size: 14px;
}

.rga-score-after {
	margin-top: 6px !important;
	color: #1b6e4a !important;
	font-weight: 600;
	font-size: 13.5px !important;
}

.rga-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
}

@media (max-width: 700px) {
	.rga-columns {
		grid-template-columns: 1fr;
	}
}

.rga-col h4 {
	font-size: 15px;
	margin: 0 0 10px;
}

.rga-col.rga-full {
	margin-bottom: 24px;
}

.rga-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rga-tags span {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
}

.rga-tags-good span {
	background: #e6f4ea;
	color: #1b6e4a;
	border: 1px solid #b7ddc4;
}

.rga-tags-bad span {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f3c2be;
}

.rga-list {
	margin: 0;
	padding-left: 20px;
}

.rga-list li {
	margin-bottom: 8px;
	font-size: 14px;
	color: #333;
}

.rga-empty-note {
	font-size: 13px;
	color: #888;
	font-style: italic;
}

/* ===== Steps (lead capture / locked analyze / results) ===== */

.rga-step {
	margin-bottom: 30px;
	padding: 22px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafbfa;
}

.rga-step-locked {
	opacity: 0.55;
}

.rga-step-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.rga-step-header h3 {
	margin: 0;
	font-size: 17px;
}

.rga-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #1b6e4a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.rga-grid-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 700px) {
	.rga-grid-3 {
		grid-template-columns: 1fr;
	}
}

.rga-field input[type="text"],
.rga-field input[type="email"],
.rga-field input[type="tel"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #d5d9dd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #1a1a1a;
}

.rga-field input:focus {
	outline: none;
	border-color: #1b6e4a;
	box-shadow: 0 0 0 3px rgba(27, 110, 74, 0.15);
}

.rga-success {
	color: #1b6e4a;
	background: #e6f4ea;
	border: 1px solid #b7ddc4;
	padding: 10px 14px;
	border-radius: 6px;
	margin-top: 14px;
	font-size: 14px;
}

.rga-lock-note {
	margin-top: 12px;
	font-size: 13px;
	color: #888;
	font-style: italic;
}

.rga-step-unlocked .rga-lock-note {
	display: none;
}

.rga-btn:disabled {
	background: #b9c2bd;
}

.rga-btn-secondary {
	background: #ffffff;
	color: #1b6e4a !important;
	border: 2px solid #1b6e4a;
}

.rga-btn-secondary:hover {
	background: #f0f8f3;
}

.rga-pdf-block {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.rga-pdf-block h4 {
	font-size: 16px;
	margin: 0 0 6px;
}

.rga-pdf-note {
	font-size: 13px;
	color: #666;
	margin: 0 0 14px;
}

.rga-pdf-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rga-pdf-btn-row .rga-btn {
	flex: 1 1 auto;
	min-width: 220px;
	justify-content: center;
}

/* ===== Step 4: review & confirm checklist ===== */

.rga-step-hidden {
	display: none !important;
}

.rga-review-note {
	font-size: 13.5px;
	color: #444;
	background: #f0f8f3;
	border: 1px solid #b7ddc4;
	padding: 10px 14px;
	border-radius: 6px;
	margin: 0 0 20px;
}

.rga-review-block {
	margin-bottom: 22px;
}

.rga-review-block h4 {
	font-size: 14.5px;
	margin: 0 0 8px;
}

.rga-review-subnote {
	font-size: 12.5px;
	color: #777;
	margin: 0 0 8px;
}

.rga-checklist {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rga-checklist-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13.5px;
	color: #1a1a1a;
	padding: 7px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.rga-checklist-item:hover {
	border-color: #b7ddc4;
	background: #f8fdfa;
}

.rga-checklist-item input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #1b6e4a;
}

#rga-additional-context {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #d5d9dd;
	border-radius: 8px;
	font-size: 13.5px;
	font-family: inherit;
	resize: vertical;
	background: #fff;
	color: #1a1a1a;
}

#rga-additional-context:focus {
	outline: none;
	border-color: #1b6e4a;
	box-shadow: 0 0 0 3px rgba(27, 110, 74, 0.15);
}

#rga-score-after {
	font-size: 14px;
	font-weight: 600;
	color: #1b6e4a;
	margin: 0 0 10px;
}

/* ===== Detected-from-resume info line (Step 2) ===== */

.rga-detected-info {
	font-size: 12.5px;
	color: #1b6e4a;
	background: #f0f8f3;
	border: 1px solid #b7ddc4;
	padding: 8px 12px;
	border-radius: 6px;
	margin: 0 0 18px;
}

/* ===== Template picker (Step 3) ===== */

.rga-template-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.rga-template-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.rga-template-card:hover {
	border-color: #b7ddc4;
	background: #f8fdfa;
}

.rga-template-card.rga-template-selected {
	border-color: #1b6e4a;
	background: #f0f8f3;
}

.rga-template-name {
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
}

.rga-template-desc {
	font-size: 11.5px;
	color: #666;
	line-height: 1.35;
}

/* ===== Consent checkbox (Step 1) ===== */

.rga-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 12.5px;
	color: #444;
	margin: 14px 0 16px;
	cursor: pointer;
	max-width: 640px;
}

.rga-consent-row input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #1b6e4a;
	width: 15px;
	height: 15px;
}

/* ===== Template preview thumbnails ===== */

.rga-template-card {
	align-items: center;
	text-align: center;
}

.rga-template-thumb {
	width: 100%;
	max-width: 130px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	margin-bottom: 6px;
	display: block;
}
