/* Immigration Visa — Frontend Styles
   Uses Elementor CSS variables for colors (UX-DR7) */

.iv-apply-visa-form {
	--iv-primary: var(--e-global-color-primary, #4f46e5);
	--iv-primary-hover: var(--e-global-color-primary, #4338ca);
	--iv-text: var(--e-global-color-text, #1f2937);
	--iv-border: #d1d5db;
	--iv-bg:  #d1d5db;/*var(--e-global-color-secondary, #f9fafb);*/
	--iv-error: #ef4444;
	--iv-success: #22c55e;
	--iv-font: var(--e-global-typography-text-font-family, inherit);
	font-family: var(--iv-font);
	color: var(--iv-text);
	max-width: 900px;
	margin: 0 auto;
}

/* Progress bar */
.iv-progress-bar {
	margin-bottom: 2rem;
}

.iv-progress-steps {
	display: flex;
	gap: 0;
	margin-bottom: 0.5rem;
}

.iv-step {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--iv-border);
	position: relative;
}

.iv-step--active {
	background: var(--iv-primary);
	color: #fff;
}

.iv-step--done {
	background: var(--iv-success);
	color: #fff;
}

.iv-step__number {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: rgba(255,255,255,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
}

.iv-step--active .iv-step__number,
.iv-step--done .iv-step__number {
	background: rgba(255,255,255,0.4);
}

.iv-progress-label {
	font-size: 0.85rem;
	color: var(--iv-text);
	text-align: right;
}

/* Step content */
.iv-step-content--hidden {
	display: none !important;
}

/* Form */
.iv-form {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.iv-step2-wrapper,
.iv-step3-wrapper {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.iv-step__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	color: var(--iv-primary);
}

/* Fields */
.iv-field {
	margin-bottom: 1.25rem;
}

.iv-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.iv-field input[type="text"],
.iv-field input[type="email"],
.iv-field input[type="tel"],
.iv-field input[type="number"],
.iv-field input[type="date"],
.iv-field select,
.iv-field textarea {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--iv-border);
	border-radius: 4px;
	font-size: 0.95rem;
	transition: border-color 0.2s;
}

/* Phone input with flag badge */
.iv-phone-wrapper {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--iv-bg);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.iv-phone-wrapper:focus-within {
	border-color: var(--iv-primary);
	box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.iv-phone-flag {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0 0.6rem;
	background: var(--iv-bg);
	border-right: 1px solid var(--iv-bg);
	flex-shrink: 0;
	font-size: 1.1rem;
	line-height: 1;
}

.iv-phone-flag__img {
	width: 1.5rem;
	height: auto;
	display: block;
	border-radius: 2px;
}

.iv-phone-wrapper input[type="tel"] {
	flex: 1;
	width: auto;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding-left: 0.6rem;
}

.iv-phone-wrapper input[type="tel"]:focus {
	outline: none;
	box-shadow: none !important;
}

.iv-field--invalid .iv-phone-wrapper {
	border-color: var(--iv-error);
}

.iv-field input:focus,
.iv-field select:focus,
.iv-field textarea:focus {
	outline: none;
	border-color: var(--iv-primary);
	box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.iv-field--inline {
	display: flex;
	gap: 1rem;
}

.iv-field--inline .iv-field {
	flex: 1;
}

.iv-required {
	color: var(--iv-error);
	margin-left: 2px;
}

.iv-field__error {
	color: var(--iv-error);
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

.iv-field__notice {
	color: #6b7280;
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

/* Invalid (required) fields */
.iv-field--invalid input,
.iv-field--invalid select,
.iv-field--invalid textarea {
	border-color: var(--iv-error);
}

.iv-field--invalid input:focus,
.iv-field--invalid select:focus,
.iv-field--invalid textarea:focus {
	box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.iv-field--invalid .iv-field__label,
.iv-field--invalid > label {
	color: var(--iv-error);
}

.iv-field--invalid .iv-radio-card {
	border-color: var(--iv-error);
}

/* Checkbox */
.iv-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	font-weight: 400;
}

.iv-checkbox-label input[type="checkbox"] {
	width: auto;
	margin-top: 0.1rem;
}

/* Radio groups (visa type & processing type) */
.iv-field__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.iv-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.iv-radio-card {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 calc(50% - 0.6rem);
	min-width: 180px;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--iv-border);
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.iv-radio-card:hover {
	border-color: var(--iv-primary);
}

.iv-radio-card input[type="radio"] {
	width: auto;
	margin: 0;
	accent-color: var(--iv-primary);
}

.iv-radio-card:has(input[type="radio"]:checked) {
	border-color: var(--iv-primary);
	background: rgba(79,70,229,0.06);
	box-shadow: 0 0 0 1px var(--iv-primary);
}

.iv-radio-card:has(input[type="radio"]:disabled) {
	opacity: 0.5;
	cursor: not-allowed;
}

.iv-radio-card__label {
	font-size: 0.95rem;
}

/* Step 1 layout: visa type beside the number of applicants (stacked on mobile). */
.iv-step1-row {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}
.iv-step1-row .iv-field--visa-type,
.iv-step1-row .iv-field--applicants {
	flex: 1 1 0;
	min-width: 0;
}
@media ( max-width: 640px ) {
	.iv-step1-row {
		flex-direction: column;
	}
	.iv-step1-row .iv-field--applicants {
		width: 100%;
	}
}

/* Processing type choices stacked vertically (one card per row). */
.iv-processing-group {
	flex-direction: column;
	flex-wrap: nowrap;
}
.iv-processing-group .iv-radio-card {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
}

/* ---------------------------------------------------------------------------
   Step 2 (apply form): two-column field layout.
   Fields pair up per row — First name / Last name, Nationality / Gender, …
   --------------------------------------------------------------------------- */
.iv-applicant-block .iv-fields-group,
.iv-applicant-block .iv-accordion-body {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.iv-applicant-block .iv-fields-group > .iv-field,
.iv-applicant-block .iv-accordion-body > .iv-field {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: 0;
	margin-bottom: 0;
}

/* The section heading and full-width controls span the whole row. */
.iv-applicant-block .iv-fields-group > h5,
.iv-applicant-block .iv-field--complete-later,
.iv-applicant-block .iv-field--child,
.iv-applicant-block .iv-child-parent-selector,
.iv-applicant-block .iv-passport-upload,
.iv-applicant-block .iv-accordion-body > .iv-field:has( textarea ),
.iv-applicant-block .iv-accordion-body > .iv-field:has( input[type="file"] ) {
	flex-basis: 100%;
}

.iv-applicant-block .iv-fields-group > h5 {
	margin-bottom: 0;
}

@media ( max-width: 640px ) {
	.iv-applicant-block .iv-fields-group > .iv-field,
	.iv-applicant-block .iv-accordion-body > .iv-field {
		flex-basis: 100%;
	}
}

/* ---------------------------------------------------------------------------
   Step progress indicator (number-in-circle + progress bar).
   Self-contained — works whether or not Tailwind is loaded on the theme.
   --------------------------------------------------------------------------- */
.iv-steps {
	--iv-steps-color: var(--e-global-color-primary, var(--e-global-color-accent, #0058bb));
	margin-bottom: 1.75rem;
}

.iv-steps-bar {
	position: relative;
	margin-bottom: 1rem;
}

.iv-steps-track {
	display: flex;
	height: 0.5rem;
	overflow: hidden;
	border-radius: 9999px;
	background: #e5e7eb;
}

.iv-steps-fill {
	height: 100%;
	border-radius: 9999px;
	background: var(--iv-steps-color) !important;
	transition: width 0.3s ease;
}

.iv-steps-row {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
}

.iv-step-item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.iv-step-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.5rem;
	border: 2px solid #d1d5db;
	border-radius: 9999px;
	background: #fff;
	color: #9ca3af;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.iv-step-circle.iv-step-circle--active {
	border-color: var(--iv-steps-color);
	background: var(--iv-steps-color);
	color: #fff;
}

.iv-step-text {
	display: none;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	color: #9ca3af;
}

.iv-step-text.iv-step-text--active {
	color: #1f2937;
}

@media ( min-width: 768px ) {
	.iv-step-text {
		display: block;
	}
}

/* Upsells */
.iv-upsell-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	cursor: pointer;
}

.iv-upsell-price {
	color: #6b7280;
	font-size: 0.85rem;
}

/* Price summary */
.iv-price-summary {
	background: var(--iv-bg);
	border: 1px solid var(--iv-border);
	border-radius: 6px;
	padding: 1.25rem;
	margin: 1.5rem 0;
}

.iv-price-summary__placeholder {
	color: #6b7280;
	font-style: italic;
	text-align: center;
}

.iv-price-table {
	width: 100%;
	border-collapse: collapse;
}

.iv-price-table td,
.iv-price-table th {
	padding: 0.35rem 0;
}

.iv-price-table td:last-child {
	text-align: right;
	font-weight: 500;
}

.iv-price-row-total td {
	border-top: 1px solid var(--iv-border);
	padding-top: 0.5rem;
}

/* Spinner */
.iv-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--iv-border);
	border-top-color: var(--iv-primary);
	border-radius: 50%;
	animation: iv-spin 0.7s linear infinite;
	vertical-align: middle;
}

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

/* Buttons */
.iv-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1.5rem;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	border: none;
	transition: background 0.2s, transform 0.1s;
}

.iv-btn:active {
	transform: scale(0.98);
}

.iv-btn--primary {
	background: var(--iv-primary);
	color: #fff;
}

.iv-btn--primary:hover {
	background: var(--iv-primary-hover);
}

.iv-btn--secondary {
	background: transparent;
	color: var(--iv-primary);
	border: 1px solid var(--iv-primary);
}

.iv-btn--secondary:hover {
	background: var(--iv-bg);
}

.iv-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--iv-border);
}

/* Applicant blocks */
.iv-applicant-block {
	border: 1px solid var(--iv-border);
	border-radius: 6px;
	margin-bottom: 1rem;
	overflow: hidden;
}

.iv-applicant-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	background: var(--iv-bg);
	cursor: pointer;
}

.iv-applicant-title {
	margin: 0;
	font-size: 1rem;
}

.iv-accordion-toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.85rem;
	padding: 0;
}

.iv-applicant-body {
	padding: 1.25rem;
}

/* Section accordion */
.iv-accordion-section {
	margin-bottom: 0.75rem;
	border: 1px solid var(--iv-border);
	border-radius: 4px;
}

.iv-accordion-header {
	width: 100%;
	text-align: left;
	padding: 0.65rem 1rem;
	background: var(--iv-bg);
	border: none;
	cursor: pointer;
	font-weight: 500;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.iv-accordion-body {
	padding: 1rem;
}

/* Upload area */
.iv-upload-area {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.iv-upload-status {
	font-size: 0.85rem;
	color: var(--iv-success);
}

/* Summary */
.iv-summary-block {
	margin-bottom: 1.5rem;
}

.iv-summary-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--iv-border);
}

.iv-summary-section:last-child {
	border-bottom: none;
}

.iv-summary-section h4 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.iv-summary-table {
	width: 100%;
	border-collapse: collapse;
}

.iv-summary-table th,
.iv-summary-table td {
	padding: 0.35rem 0;
	text-align: left;
}

.iv-summary-table th {
	color: #6b7280;
	font-weight: 500;
	width: 40%;
}

.iv-summary-applicants {
	list-style: none;
	padding: 0;
	margin: 0;
}

.iv-summary-applicants li {
	padding: 0.3rem 0;
	border-bottom: 1px solid var(--iv-border);
}

/* Editor preview */
.iv-editor-preview {
	padding: 2rem;
	background: var(--iv-bg);
	text-align: center;
	color: #6b7280;
}

/* Responsive */
@media (max-width: 600px) {
	.iv-progress-steps {
		flex-direction: column;
		gap: 0.5rem;
	}

	.iv-form-actions {
		flex-direction: column-reverse;
		gap: 0.75rem;
	}

	.iv-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ============================================================
   Account pages — Mon compte Visa
   ============================================================ */

.iv-account-visa-list,
.iv-account-detail,
.iv-account-complete,
.iv-account-dashboard {
	--iv-primary: var(--e-global-color-primary, #4f46e5);
	--iv-primary-hover: var(--e-global-color-primary, #4338ca);
	--iv-text: var(--e-global-color-text, #1f2937);
	--iv-border: #d1d5db;
	--iv-bg: #f9fafb;
	--iv-error: #ef4444;
	--iv-success: #22c55e;
	font-family: var(--e-global-typography-text-font-family, inherit);
	color: var(--iv-text);
}

.iv-account-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
}

.iv-account-subtitle {
	color: #6b7280;
	margin-bottom: 1.25rem;
}

.iv-account-header {
	margin-bottom: 1.5rem;
}

.iv-account-back {
	display: inline-block;
	margin-bottom: 0.5rem;
	color: var(--iv-primary);
	text-decoration: none;
	font-size: 0.9rem;
}

.iv-account-back:hover {
	text-decoration: underline;
}

.iv-account-section {
	background: #fff;
	border: 1px solid var(--iv-border);
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

.iv-account-section h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.iv-account-section--warning {
	border-color: #fbbf24;
	background: #fffbeb;
}

.iv-account-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.iv-account-table th,
.iv-account-table td {
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--iv-border);
}

.iv-account-table thead th {
	background: var(--iv-bg);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.iv-account-info-table {
	width: 100%;
	border-collapse: collapse;
}

.iv-account-info-table th,
.iv-account-info-table td {
	padding: 0.5rem 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: 0.9rem;
}

.iv-account-info-table th {
	width: 40%;
	font-weight: 600;
	color: #6b7280;
}

.iv-account-info-table--compact th {
	width: 50%;
}

.iv-applicant-summary {
	border: 1px solid var(--iv-border);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.iv-applicant-summary__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}

.iv-eta-badge {
	background: #d1fae5;
	color: #065f46;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
}

.iv-incomplete-notice {
	color: #d97706;
	font-size: 0.85rem;
	padding: 0.5rem 0;
}

.iv-account-empty {
	padding: 2rem;
	text-align: center;
	color: #6b7280;
	background: var(--iv-bg);
	border-radius: 6px;
}

.iv-account-applicant-tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.iv-applicant-tab {
	padding: 0.5rem 1rem;
	border: 1px solid var(--iv-border);
	border-radius: 4px;
	text-decoration: none;
	color: var(--iv-text);
	font-size: 0.9rem;
	position: relative;
}

.iv-applicant-tab--active {
	background: var(--iv-primary);
	color: #fff;
	border-color: var(--iv-primary);
}

.iv-tab-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--iv-error);
	color: #fff;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.iv-completion-form .iv-fields-group {
	background: #fff;
	border: 1px solid var(--iv-border);
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

.iv-completion-form .iv-fields-group h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.iv-completion-form .iv-field {
	margin-bottom: 1rem;
}

.iv-completion-form .iv-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.iv-completion-form .iv-field input,
.iv-completion-form .iv-field select,
.iv-completion-form .iv-field textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--iv-border);
	border-radius: 4px;
	font-size: 0.9rem;
	max-width: 480px;
}

.iv-completion-form .iv-field input[readonly],
.iv-completion-form .iv-field select[disabled] {
	background: var(--iv-bg);
	cursor: not-allowed;
}

.iv-doc-status {
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
}

.iv-doc-status--ok {
	color: #065f46;
}

.iv-doc-replace {
	color: #6b7280;
	margin-left: 0.5rem;
}

.iv-form-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.iv-form-message {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-top: 1rem;
	font-size: 0.9rem;
}

.iv-form-message--error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.iv-form-message--success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.iv-account-notice {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.iv-account-notice--info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

/* -------------------------------------------------------------------------
   My Account — modern visa applications dashboard
   ------------------------------------------------------------------------- */
.iv-dashboard-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}

.iv-dashboard-head .iv-account-title {
	margin: 0;
}

.iv-account-subtitle {
	margin: 0.25rem 0 0;
	color: #6b7280;
	font-size: 0.9rem;
}

.iv-btn--sm {
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
}

.iv-btn--new span {
	font-size: 1.1em;
	line-height: 1;
}

/* Empty state */
.iv-empty-state {
	text-align: center;
	padding: 3rem 1.5rem;
	border: 1px dashed var(--iv-border);
	border-radius: 12px;
	background: #fafafa;
}

.iv-empty-state__icon {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

.iv-empty-state h3 {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
}

.iv-empty-state p {
	color: #6b7280;
	margin: 0 0 1.25rem;
}

/* Application cards */
.iv-app-cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.iv-app-card {
	display: flex;
	gap: 1.25rem;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--iv-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s, border-color 0.2s;
}

.iv-app-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.07);
	border-color: #d1d5db;
}

.iv-app-card__main {
	flex: 1 1 320px;
	min-width: 0;
}

.iv-app-card__top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.iv-app-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.iv-app-card__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0.75rem 1.25rem;
	margin: 0;
}

.iv-app-card__meta div {
	margin: 0;
}

.iv-app-card__meta dt {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #9ca3af;
	margin: 0 0 0.15rem;
}

.iv-app-card__meta dd {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--iv-text, #1f2937);
}

.iv-app-card__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.iv-app-card__actions {
		flex-direction: row;
		width: 100%;
	}
	.iv-app-card__actions .iv-btn {
		flex: 1;
		justify-content: center;
	}
}

/* Status badges (frontend) */
.iv-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid transparent;
	white-space: nowrap;
}

.iv-status-badge::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentColor;
}

.iv-status--draft      { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.iv-status--pending    { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.iv-status--processing { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.iv-status--approved   { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.iv-status--rejected   { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.iv-status--cancelled  { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.iv-status--refunded   { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.iv-status--incomplete { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.iv-status--paid       { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }

/* ============================================================
   My Account — side-by-side layout (content left, nav right)
   ============================================================ */

/* Block themes (Twenty Twenty-Five, etc.) do not provide a flex
   wrapper for the WooCommerce account page, so we set it here. */
.woocommerce-account .woocommerce {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	order: 1;
	flex: 0 0 200px;
	width: 200px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	font-size: 0.85rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
	font-family: "eicons";
	font-style: normal;
	font-size: 1rem;
	flex-shrink: 0;
	speak: never;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before       { content: "\e817"; } /* eicon-apps */
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before    { content: "\e878"; } /* eicon-settings */
.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods a::before  { content: "\e991"; } /* eicon-purchase-summary */
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before  { content: "\e930"; } /* eicon-sign-out */

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--e-global-color-primary, #4f46e5);
	color: #fff;
}

/* ============================================================
   Client dashboard — finalisation UX (paid → submit flow)
   ============================================================ */

/* Make the My Account dashboard use the full available width. */
.woocommerce-account .woocommerce-MyAccount-content {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	max-width: none;
}
.iv-account-dashboard,
.iv-account-detail,
.iv-account-complete {
	width: 100%;
	max-width: none;
}

/* New-application button + extra button variants */
.iv-btn--success {
	background: var(--iv-success, #22c55e);
	color: #fff;
}
.iv-btn--success:hover { background: #16a34a; }
.iv-btn--lg {
	padding: 0.85rem 1.9rem;
	font-size: 1rem;
}

/* Detail header row (title + status badge) */
.iv-account-header__row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.iv-account-header__row .iv-account-title { margin-bottom: 0; }

/* Status banners */
.iv-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding: 1rem 1.25rem;
	border: 1px solid var(--iv-border);
	border-left-width: 4px;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	background: #fff;
}
.iv-notice p { margin: 0.25rem 0 0; color: #4b5563; font-size: 0.92rem; }
.iv-notice strong { font-size: 1rem; }
.iv-notice--warning { border-left-color: #f59e0b; background: #fffbeb; }
.iv-notice--info    { border-left-color: #3b82f6; background: #eff6ff; }
.iv-notice--success { border-left-color: #22c55e; background: #f0fdf4; }

/* Progress bar (cards) */
.iv-progress { margin-top: 0.5rem; }
.iv-progress__head {
	display: flex;
	justify-content: space-between;
	font-size: 0.82rem;
	font-weight: 600;
	color: #4b5563;
	margin-bottom: 0.35rem;
}
.iv-progress__bar {
	height: 8px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}
.iv-progress__fill {
	display: block;
	height: 100%;
	background: var(--iv-primary);
	border-radius: 999px;
	transition: width 0.3s ease;
}
.iv-progress__fill--full { background: var(--iv-success, #22c55e); }

/* Card hints */
.iv-app-card__hint {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: #6b7280;
}
.iv-app-card__hint--warning { color: #b45309; }

/* Per-applicant "sections to complete" breakdown on the applications list. */
.iv-applicant-todos {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.85rem;
}
.iv-applicant-todo {
	padding: 0.6rem 0.75rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}
.iv-applicant-todo__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.4rem;
}
.iv-applicant-todo__name {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--iv-text);
}
.iv-applicant-todo__link {
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--iv-primary);
	text-decoration: none;
}
.iv-applicant-todo__link:hover {
	text-decoration: underline;
}
.iv-applicant-todo__sections {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.iv-applicant-todo__sections li {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	color: #4b5563;
}
.iv-todo-dot {
	color: #f59e0b;
	font-size: 0.55rem;
	line-height: 1;
}
.iv-todo-count {
	color: #9ca3af;
	font-size: 0.75rem;
}

/* Applicant completion blocks (detail page) */
.iv-applicant-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.9rem 1.25rem;
	background: var(--iv-bg);
	border-bottom: 1px solid var(--iv-border);
}
.iv-applicant-block__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}
.iv-applicant-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: var(--iv-primary);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
}
.iv-completion-pill {
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
}
.iv-completion-pill--ok   { background: #dcfce7; color: #15803d; }
.iv-completion-pill--todo { background: #fff7ed; color: #c2410c; }

.iv-section-list {
	list-style: none;
	margin: 0;
	padding: 0.5rem 1.25rem;
}
.iv-section-row {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid #f1f1f3;
}
.iv-section-row:last-child { border-bottom: none; }
.iv-section-row__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 0.1rem;
}
.iv-section-row--ok .iv-section-row__icon   { background: #dcfce7; color: #15803d; }
.iv-section-row--todo .iv-section-row__icon { background: #ffedd5; color: #c2410c; }
.iv-section-row__body { display: flex; flex-direction: column; }
.iv-section-row__label { font-weight: 600; font-size: 0.92rem; }
.iv-section-row__missing { font-size: 0.82rem; color: #c2410c; margin-top: 0.15rem; }

.iv-applicant-block__actions {
	padding: 0.9rem 1.25rem;
	border-top: 1px solid var(--iv-border);
	display: flex;
	justify-content: flex-end;
}

.iv-missing { color: #c2410c; font-weight: 600; }

/* Submit panel */
.iv-submit-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}
.iv-submit-panel h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.iv-submit-panel p  { margin: 0; color: #4b5563; font-size: 0.92rem; }
.iv-submit-panel--ready {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
}
.iv-submit-panel--ready h3 { color: #15803d; }
.iv-submit-panel--blocked {
	border: 1px solid var(--iv-border);
	background: var(--iv-bg);
}
.iv-submit-panel--blocked p {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #6b7280;
}

@media (max-width: 600px) {
	.iv-notice,
	.iv-submit-panel {
		flex-direction: column;
		align-items: stretch;
	}
	.iv-submit-panel .iv-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Completion form — per-section inline editing
   ============================================================ */

.iv-edit-section {
	border: 1px solid var(--iv-border);
	border-radius: 8px;
	margin-bottom: 1rem;
	overflow: hidden;
	background: #fff;
}
.iv-edit-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.9rem 1.25rem;
	background: var(--iv-bg);
	border-bottom: 1px solid var(--iv-border);
}
.iv-edit-section__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}
.iv-edit-section__title h4 { margin: 0; font-size: 1rem; }

.iv-section-row__icon.iv-icon--ok   { background: #dcfce7; color: #15803d; }
.iv-section-row__icon.iv-icon--todo { background: #ffedd5; color: #c2410c; }

.iv-edit-section__body { padding: 1.25rem; }

.iv-edit-section__actions {
	display: none;
	align-items: center;
	gap: 0.6rem;
	padding: 0 1.25rem 1.25rem;
	flex-wrap: wrap;
}
.iv-edit-section.iv-editing .iv-edit-section__actions { display: flex; }
.iv-edit-section.iv-editing .iv-section-edit-btn { display: none; }

/* Fields are read-only (disabled) until the section is being edited. */
.iv-edit-section__body input:disabled,
.iv-edit-section__body select:disabled,
.iv-edit-section__body textarea:disabled {
	background: #f3f4f6;
	color: #4b5563;
	cursor: default;
	border-color: #e5e7eb;
	opacity: 1;
	-webkit-text-fill-color: #4b5563;
}

/* Show file upload / hints only while editing. */
.iv-edit-only { display: none; }
.iv-edit-section.iv-editing .iv-edit-only { display: block; }

.iv-field__lock { font-size: 0.85rem; margin-left: 0.25rem; }

/* Applicant tab completion badges */
.iv-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	margin-left: 0.35rem;
}
.iv-tab-badge--ok   { background: #dcfce7; color: #15803d; }
.iv-tab-badge--todo { background: #ffedd5; color: #c2410c; }

/* -------------------------------------------------------------------------
   Order Summary block (visa-order-summary widget)
   ------------------------------------------------------------------------- */
.iv-order-summary {
	--iv-primary: var(--e-global-color-primary, #4f46e5);
	--iv-text: var(--e-global-color-text, #1f2937);
	--iv-border: #e5e7eb;
	--iv-muted: #6b7280;
	font-family: var(--e-global-typography-text-font-family, inherit);
	color: var(--iv-text);
	border: 1px solid var(--iv-border);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	background: #fff;
}

.iv-order-summary--sticky {
	position: sticky;
	top: 1.5rem;
}

.iv-order-summary__title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 700;
}

.iv-order-summary__empty {
	margin: 0;
	color: var(--iv-muted);
	font-size: 0.95rem;
}

.iv-order-summary__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.9rem;
	color: var(--iv-muted);
	margin-bottom: 0.75rem;
}

.iv-order-summary__meta-value {
	font-weight: 600;
	color: var(--iv-text);
}

.iv-order-summary__lines {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	border-top: 1px solid var(--iv-border);
}

.iv-order-summary__line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--iv-border);
}

.iv-order-summary__line-label {
	font-size: 0.95rem;
}

.iv-order-summary__line-value {
	font-weight: 600;
	white-space: nowrap;
}

.iv-order-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.5rem 0;
	font-size: 0.95rem;
	color: var(--iv-muted);
}

.iv-order-summary__row-value {
	font-weight: 600;
	color: var(--iv-text);
	white-space: nowrap;
}

.iv-order-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-top: 0.5rem;
	padding-top: 0.85rem;
	border-top: 2px solid var(--iv-text);
	font-size: 1.1rem;
	font-weight: 700;
}

.iv-order-summary__total-value {
	color: var(--iv-primary);
	white-space: nowrap;
}

/* ===========================================================================
   Epic 7 — Custom fields (Field Builder) front rendering
   The base .iv-field rules already style labels, text inputs, selects and
   textareas; these add layout for the choice groups and document uploads so
   custom fields look consistent with the core form.
   =========================================================================== */
.iv-field--custom .iv-radio-group,
.iv-field--custom .iv-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.iv-field--custom .iv-radio-label,
.iv-field--custom .iv-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
	font-size: 0.95rem;
	cursor: pointer;
}

.iv-field--custom .iv-radio-label input[type="radio"],
.iv-field--custom .iv-checkbox-group input[type="checkbox"] {
	width: auto;
	margin: 0;
	accent-color: var(--iv-primary);
}

.iv-field--custom .iv-custom-doc-upload {
	margin: 0;
}

.iv-field--custom .iv-custom-doc-upload input[type="file"] {
	width: 100%;
	font-size: 0.9rem;
}

.iv-field--custom .iv-field__notice {
	margin: 0.3rem 0 0;
	font-size: 0.8rem;
	color: #6b7280;
}

/* "Complete the information later": optional fields are hidden until the
   applicant comes back to fill them. */
.iv-field.iv-defer-hidden {
	display: none !important;
}

/* Disabled custom inputs in the Dashboard Account (read-only until "Edit"). */
.iv-edit-section .iv-field--custom input:disabled,
.iv-edit-section .iv-field--custom select:disabled,
.iv-edit-section .iv-field--custom textarea:disabled {
	background: #f3f4f6;
	color: #6b7280;
	cursor: not-allowed;
}
