/* FWA Petroleum Licensing Support */
:root {
	--fwa-license-navy: var(--fwa-navy, #071d33);
	--fwa-license-blue: var(--fwa-blue, #0b4f83);
	--fwa-license-sky: var(--fwa-sky, #eaf4fa);
	--fwa-license-ink: var(--fwa-ink, #13283a);
	--fwa-license-muted: var(--fwa-muted, #617486);
	--fwa-license-line: var(--fwa-line, #d8e2e9);
	--fwa-license-soft: var(--fwa-soft, #f5f8fa);
	--fwa-license-gold: var(--fwa-accent, #d9a52e);
	--fwa-license-success: var(--fwa-success, #17764b);
	--fwa-license-danger: var(--fwa-danger, #a52d2d);
}

.fwa-license-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 34px 24px 80px;
	color: var(--fwa-license-ink);
}

.fwa-license-shell * { box-sizing: border-box; }
.fwa-license-shell h1,
.fwa-license-shell h2,
.fwa-license-shell h3 { color: var(--fwa-license-navy); letter-spacing: -.025em; }

.fwa-license-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, .72fr);
	gap: 42px;
	align-items: center;
	padding: 46px;
	margin-bottom: 22px;
	border-radius: 24px;
	overflow: hidden;
	background: radial-gradient(circle at 88% 18%, rgba(217,165,46,.24), transparent 28%), linear-gradient(135deg, #061c31 0%, #0a385c 62%, #0e5d8c 100%);
	box-shadow: 0 20px 60px rgba(7,29,51,.11);
	color: rgba(255,255,255,.82);
}

.fwa-license-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -130px;
	width: 340px;
	height: 340px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50%;
	box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.02);
}

.fwa-license-hero > * { position: relative; z-index: 2; }
.fwa-license-hero h1 { margin: 0 0 14px; max-width: 760px; font-size: clamp(36px, 5vw, 58px); line-height: .98; color: #fff; }
.fwa-license-hero p { margin: 0; max-width: 760px; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.78); }
.fwa-license-hero aside,
.fwa-license-case-id { padding: 23px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.fwa-license-hero aside strong,
.fwa-license-case-id strong { display: block; margin-bottom: 8px; color: #fff; font-size: 19px; }
.fwa-license-case-id span,
.fwa-license-case-id small { display: block; color: rgba(255,255,255,.72); }
.fwa-license-case-id strong { font-size: 22px; letter-spacing: .02em; }

.fwa-license-panel {
	padding: 28px;
	border: 1px solid var(--fwa-license-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(7,29,51,.06);
}

.fwa-license-panel + .fwa-license-panel { margin-top: 18px; }
.fwa-license-panel h2 { margin: 0 0 10px; font-size: 29px; }
.fwa-license-panel h3 { margin: 0 0 8px; }
.fwa-license-panel p { color: var(--fwa-license-muted); line-height: 1.65; }
.fwa-license-panel ul { padding-left: 20px; }
.fwa-license-panel li { margin: 7px 0; }

.fwa-license-pending { border-left: 5px solid var(--fwa-license-gold); }
.fwa-license-pending dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.fwa-license-pending dl div { padding: 14px; border-radius: 10px; background: var(--fwa-license-soft); }
.fwa-license-pending dt { color: var(--fwa-license-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fwa-license-pending dd { margin: 5px 0 0; font-weight: 800; color: var(--fwa-license-navy); }

.fwa-license-scope { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 18px; background: linear-gradient(135deg, #f8fbfd, #eef6fa); }
.fwa-license-scope h2 { margin-bottom: 7px; }
.fwa-license-scope .fwa-primary-button { flex: 0 0 auto; }

.fwa-license-section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: start; margin-bottom: 22px; }
.fwa-license-section-heading > p { max-width: 510px; margin: 0; }

.fwa-license-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.fwa-license-form-grid label { display: grid; gap: 7px; color: var(--fwa-license-navy); font-weight: 800; }
.fwa-license-form-grid label.is-wide { grid-column: 1 / -1; }
.fwa-license-form-grid label em { margin-left: 5px; color: var(--fwa-license-muted); font-size: 10px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.fwa-license-form-grid input,
.fwa-license-form-grid textarea,
.fwa-license-message-form textarea {
	width: 100%;
	padding: 12px 13px;
	border: 1px solid #cbd7df;
	border-radius: 9px;
	background: #fff;
	color: var(--fwa-license-ink);
	font: inherit;
	font-weight: 400;
}
.fwa-license-form-grid input:focus,
.fwa-license-form-grid textarea:focus,
.fwa-license-message-form textarea:focus { outline: 3px solid rgba(11,79,131,.12); border-color: var(--fwa-license-blue); }
.fwa-license-intake > .fwa-primary-button,
.fwa-license-activation-form > .fwa-primary-button { margin-top: 20px; }

.fwa-license-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.fwa-license-package { position: relative; cursor: pointer; }
.fwa-license-package input { position: absolute; opacity: 0; }
.fwa-license-package span { display: grid; gap: 5px; min-height: 142px; padding: 22px; border: 1px solid var(--fwa-license-line); border-radius: 14px; background: #fff; transition: .2s ease; }
.fwa-license-package small { color: var(--fwa-license-blue); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.fwa-license-package strong { color: var(--fwa-license-navy); font-size: 28px; }
.fwa-license-package b { color: var(--fwa-license-muted); font-size: 13px; line-height: 1.45; }
.fwa-license-package input:checked + span { border-color: var(--fwa-license-blue); background: var(--fwa-license-sky); box-shadow: inset 0 -4px 0 var(--fwa-license-blue); }

.fwa-license-confirm { display: flex; gap: 11px; align-items: flex-start; padding: 15px; border-radius: 10px; background: var(--fwa-license-soft); color: var(--fwa-license-ink); font-weight: 600; }
.fwa-license-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fwa-license-blue); }

.fwa-license-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0 0 18px; }
.fwa-license-metrics article { min-height: 122px; padding: 20px; border: 1px solid var(--fwa-license-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(7,29,51,.045); }
.fwa-license-metrics span,
.fwa-license-metrics small { display: block; color: var(--fwa-license-muted); }
.fwa-license-metrics span { margin-bottom: 8px; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.fwa-license-metrics strong { display: block; margin-bottom: 6px; color: var(--fwa-license-navy); font-size: 21px; line-height: 1.15; }
.fwa-license-meter { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e6edf2; }
.fwa-license-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fwa-license-blue), #1e86bd); }

.fwa-license-tabs { display: flex; gap: 6px; padding: 6px; margin-bottom: 18px; overflow-x: auto; border: 1px solid var(--fwa-license-line); border-radius: 12px; background: #fff; }
.fwa-license-tabs button { min-height: 42px; padding: 9px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--fwa-license-muted); font-weight: 800; white-space: nowrap; cursor: pointer; }
.fwa-license-tabs button.is-active { background: var(--fwa-license-navy); color: #fff; }
.fwa-license-tab { display: none; }
.fwa-license-tab.is-active { display: block; animation: fwaLicenseReveal .22s ease-out both; }
@keyframes fwaLicenseReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.fwa-license-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.fwa-license-grid--wide { grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); }
.fwa-license-grid .fwa-license-panel + .fwa-license-panel { margin-top: 0; }

.fwa-license-stage-line { display: grid; grid-template-columns: repeat(10, minmax(80px,1fr)); gap: 0; overflow-x: auto; padding: 12px 0 3px; }
.fwa-license-stage-line > div { position: relative; min-width: 90px; padding: 40px 6px 0; text-align: center; color: #8998a5; }
.fwa-license-stage-line > div::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: #dbe4ea; }
.fwa-license-stage-line > div:first-child::before { left: 50%; }
.fwa-license-stage-line > div:last-child::before { right: 50%; }
.fwa-license-stage-line > div > span { position: absolute; z-index: 2; top: 3px; left: 50%; display: grid; place-items: center; width: 26px; height: 26px; transform: translateX(-50%); border: 2px solid #dbe4ea; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 900; }
.fwa-license-stage-line > div.is-complete,
.fwa-license-stage-line > div.is-current { color: var(--fwa-license-blue); }
.fwa-license-stage-line > div.is-complete::before,
.fwa-license-stage-line > div.is-current::before { background: var(--fwa-license-blue); }
.fwa-license-stage-line > div.is-complete > span,
.fwa-license-stage-line > div.is-current > span { border-color: var(--fwa-license-blue); background: var(--fwa-license-blue); color: #fff; }
.fwa-license-stage-line small { display: block; font-size: 10px; font-weight: 800; line-height: 1.25; }

.fwa-license-entitlements { margin: 14px 0 0; padding: 0 !important; list-style: none; }
.fwa-license-entitlements li { position: relative; padding-left: 24px; }
.fwa-license-entitlements li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--fwa-license-success); font-weight: 900; }
.fwa-license-governance { border-left: 5px solid var(--fwa-license-gold); background: #fffbef; }

.fwa-license-document-list { display: grid; gap: 12px; }
.fwa-license-document { display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(220px,.55fr); gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--fwa-license-line); border-radius: 13px; background: #fff; }
.fwa-license-document-state span { display: inline-flex; justify-content: center; min-width: 108px; padding: 7px 9px; border-radius: 999px; background: #edf1f4; color: #637684; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.fwa-license-document.is-accepted .fwa-license-document-state span,
.fwa-license-document.is-waived .fwa-license-document-state span { background: #e6f4ec; color: var(--fwa-license-success); }
.fwa-license-document.is-uploaded .fwa-license-document-state span,
.fwa-license-document.is-under-review .fwa-license-document-state span { background: var(--fwa-license-sky); color: var(--fwa-license-blue); }
.fwa-license-document.is-action-required { border-color: #e6c4c4; background: #fffafa; }
.fwa-license-document.is-action-required .fwa-license-document-state span { background: #fbe7e7; color: var(--fwa-license-danger); }
.fwa-license-document-copy h3 { margin: 0 0 5px; font-size: 17px; }
.fwa-license-document-copy p { margin: 0 0 6px; font-size: 13px; }
.fwa-license-document-copy small { color: var(--fwa-license-muted); }
.fwa-license-review-note { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--fwa-license-gold); background: #fff9e9; }
.fwa-license-review-note p { margin: 3px 0 0; }
.fwa-license-upload { display: grid; gap: 8px; }
.fwa-license-upload input[type="file"] { width: 100%; font-size: 12px; }

.fwa-license-message-form { display: grid; gap: 11px; margin-bottom: 20px; }
.fwa-license-message-form .fwa-primary-button { justify-self: start; }
.fwa-license-messages { display: grid; gap: 10px; }
.fwa-license-messages article { padding: 14px; border: 1px solid var(--fwa-license-line); border-radius: 11px; background: var(--fwa-license-soft); }
.fwa-license-messages article.is-staff { border-left: 4px solid var(--fwa-license-blue); background: var(--fwa-license-sky); }
.fwa-license-messages header { display: flex; justify-content: space-between; gap: 12px; }
.fwa-license-messages header strong { color: var(--fwa-license-navy); }
.fwa-license-messages header small { color: var(--fwa-license-muted); }
.fwa-license-messages p { margin: 8px 0 0; color: var(--fwa-license-ink); }
.fwa-license-empty { padding: 16px; border-radius: 9px; background: var(--fwa-license-soft); }

.fwa-license-login { max-width: 680px; margin: 50px auto; text-align: center; }

@media (max-width: 980px) {
	.fwa-license-hero,
	.fwa-license-grid--wide { grid-template-columns: 1fr; }
	.fwa-license-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.fwa-license-document { grid-template-columns: 110px minmax(0,1fr); }
	.fwa-license-upload { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	.fwa-license-shell { padding: 22px 14px 70px; }
	.fwa-license-hero { padding: 30px 22px; gap: 24px; border-radius: 18px; }
	.fwa-license-hero h1 { font-size: 38px; }
	.fwa-license-panel { padding: 22px 18px; }
	.fwa-license-section-heading,
	.fwa-license-scope { flex-direction: column; align-items: flex-start; }
	.fwa-license-scope .fwa-primary-button { flex: 0 0 auto; }
	.fwa-license-form-grid,
	.fwa-license-package-grid,
	.fwa-license-grid,
	.fwa-license-metrics,
	.fwa-license-pending dl { grid-template-columns: 1fr; }
	.fwa-license-document { grid-template-columns: 1fr; }
	.fwa-license-stage-line { grid-template-columns: repeat(10, 105px); }
}
