/**
 * VCF Registration Form Styles
 *
 * Scoped to .vcf-registration-form to avoid conflicts.
 */

/* ==========================================================================
   Variables (CSS custom properties for easy theming)
   ========================================================================== */
:root {
	/* Brand colors from Figma Component Library */
	--vcf-color-primary: #113C63;       /* navy-700 — buttons, focus, accents */
	--vcf-color-primary-hover: #2A567D; /* navy-600 */
	--vcf-color-primary-active: #0E3253;/* navy-800 */
	--vcf-color-primary-bg: rgba(17, 60, 99, 0.05);
	--vcf-color-primary-disabled-bg: #D6D3CF;   /* neutral-300 */
	--vcf-color-primary-disabled-text: #646A70; /* neutral-600 */
	--vcf-color-accent: #9F1D21;        /* red-700 — section titles, badges */
	--vcf-color-accent-dark: #84171B;   /* red-800 */
	--vcf-color-overlay-hover: rgba(17, 60, 99, 0.12);
	--vcf-color-overlay-active: rgba(17, 60, 99, 0.16);
	--vcf-color-success: #117A65;       /* green-700 */
	--vcf-color-success-dark: #0E6251;
	--vcf-color-success-bg: rgba(17, 122, 101, 0.1);
	--vcf-color-success-bg-light: rgba(17, 122, 101, 0.05);
	--vcf-color-error: #9F1D21;         /* red-700 */
	--vcf-color-error-bg: rgba(159, 29, 33, 0.05);
	--vcf-color-error-border: #E38A8D;  /* red-400 */
	--vcf-color-warning: #C9A24D;       /* gold-700 */
	--vcf-color-text: #161A1E;          /* neutral-900 */
	--vcf-color-text-muted: #7E858B;    /* neutral-500 */
	--vcf-color-border: #D6D3CF;        /* neutral-300 */
	--vcf-color-border-focus: #113C63;  /* navy-700 */
	--vcf-color-focus-ring: rgba(17, 60, 99, 0.1);
	--vcf-color-bg: #FFFFFF;            /* white */
	--vcf-color-bg-muted: #F7F6F5;     /* neutral-50 */
	--vcf-font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--vcf-border-radius: 0;  /* Figma: sharp corners on all components */
	--vcf-spacing: 1rem;
	--vcf-spacing-xs: 0.375rem;  /* 6px - label to input */
	--vcf-spacing-sm: 0.75rem;   /* 12px - card gap */
	--vcf-spacing-md: 1rem;      /* 16px - field gap, card padding */
	--vcf-spacing-lg: 1.5rem;    /* 24px - section gap */
	--vcf-progress-active: #113C63;     /* navy-700 */
	--vcf-progress-complete: #117A65;   /* green-700 */
	--vcf-progress-inactive: #B5B8BB;   /* neutral-400 */
	--vcf-icon-checkmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base Form Styles
   ========================================================================== */
.vcf-registration-form {
	font-family: var(--vcf-font-family);
	color: var(--vcf-color-text);
	max-width: 640px;
	margin: 0 auto;
}

/* ==========================================================================
   Progress Indicator
   ========================================================================== */
.vcf-progress {
	margin-bottom: calc(var(--vcf-spacing) * 2);
}

.vcf-progress__steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vcf-progress__step {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: default;
}

.vcf-progress__step--clickable {
	cursor: pointer;
}

.vcf-progress__step--clickable:hover .vcf-progress__label {
	text-decoration: underline;
}

.vcf-progress__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--vcf-progress-inactive);
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	transition: background-color 0.2s;
}

.vcf-progress__step--active .vcf-progress__number {
	background: var(--vcf-progress-active);
}

.vcf-progress__step--complete .vcf-progress__number {
	background: var(--vcf-progress-complete);
}

/* Checkmark for completed step */
.vcf-progress__step--complete .vcf-progress__number::before {
	content: '';
	width: 12px;
	height: 12px;
	background-image: var(--vcf-icon-checkmark);
	background-repeat: no-repeat;
	background-position: center;
}

.vcf-progress__step--complete .vcf-progress__number {
	font-size: 0; /* Hide number text when showing checkmark */
}

.vcf-progress__label {
	font-weight: 500;
	color: var(--vcf-progress-inactive);
	font-size: 0.875rem;
	transition: color 0.2s;
}

.vcf-progress__step--active .vcf-progress__label {
	color: var(--vcf-progress-active);
}

.vcf-progress__step--complete .vcf-progress__label {
	color: var(--vcf-progress-complete);
}

.vcf-progress__connector {
	width: 40px;
	height: 2px;
	background: var(--vcf-progress-inactive);
	transition: background-color 0.2s;
}

.vcf-progress__connector--complete {
	background: var(--vcf-progress-complete);
}

@media (max-width: 639px) {
	.vcf-progress__label {
		display: none;
	}

	.vcf-progress__connector {
		width: 24px;
	}
}

/* ==========================================================================
   Step Containers
   ========================================================================== */
.vcf-step {
	display: none;
}

.vcf-step--active {
	display: block;
	animation: vcf-fade-in 0.2s ease-out;
}

@keyframes vcf-fade-in {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Reverse animation for going back */
.vcf-step--active.vcf-step--reverse {
	animation: vcf-fade-in-reverse 0.2s ease-out;
}

@keyframes vcf-fade-in-reverse {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Step Navigation */
.vcf-step-nav {
	margin-top: calc(var(--vcf-spacing) * 2);
	text-align: center;
}

.vcf-button--primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background: var(--vcf-color-primary);
	color: #ffffff;
	font-family: 'IBM Plex Sans Condensed', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 0.75rem 1.5rem;
	min-height: 48px;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.1s;
}

.vcf-button--primary:hover:not(:disabled) {
	background: var(--vcf-color-primary-hover);
}

.vcf-button--primary:active:not(:disabled) {
	background: var(--vcf-color-primary-active);
}

.vcf-button--primary:focus-visible {
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 2px;
}

.vcf-button--primary:disabled {
	background: var(--vcf-color-primary-disabled-bg);
	color: var(--vcf-color-primary-disabled-text);
	cursor: not-allowed;
	opacity: 1;
}

/* ==========================================================================
   Selection Summary Card
   ========================================================================== */
.vcf-selection-summary {
	background: var(--vcf-color-bg-muted);
	border: 1px solid var(--vcf-color-border);
	border-radius: var(--vcf-border-radius);
	padding: var(--vcf-spacing-md);
	margin-bottom: var(--vcf-spacing-lg);
}

.vcf-selection-summary__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--vcf-spacing-sm);
}

.vcf-selection-summary__title {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vcf-color-text-muted);
}

.vcf-selection-summary__edit {
	background: none;
	border: none;
	color: var(--vcf-color-accent);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	padding: 0;
}

.vcf-selection-summary__edit:hover {
	text-decoration: underline;
}

.vcf-selection-summary__content {
	margin-bottom: 0.5rem;
}

.vcf-selection-summary__event {
	font-weight: 600;
	color: var(--vcf-color-text);
	margin-bottom: 0.25rem;
}

.vcf-selection-summary__type {
	font-size: 0.875rem;
	color: var(--vcf-color-text-muted);
}

.vcf-selection-summary__price {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--vcf-color-success);
}

/* ==========================================================================
   Error Summary
   ========================================================================== */
.vcf-error-summary {
	background: var(--vcf-color-error-bg);
	border: 1px solid var(--vcf-color-error-border);
	border-radius: var(--vcf-border-radius);
	padding: var(--vcf-spacing-md);
	margin-bottom: var(--vcf-spacing-lg);
}

.vcf-error-summary__title {
	color: var(--vcf-color-error);
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.vcf-error-summary__list {
	color: var(--vcf-color-error);
	margin: 0;
	padding-left: 1.25rem;
}

.vcf-error-summary__list li {
	margin-bottom: 0.25rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.vcf-section {
	border: none;
	padding: 0;
	margin: 0 0 var(--vcf-spacing-lg);
}

.vcf-section__title {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vcf-color-accent);
	padding-bottom: 0.5rem;
	margin-bottom: var(--vcf-spacing);
	border-bottom: 2px solid var(--vcf-color-accent);
}

/* ==========================================================================
   Fields
   ========================================================================== */
.vcf-field {
	margin-bottom: var(--vcf-spacing);
}

.vcf-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: var(--vcf-spacing-xs);
	color: var(--vcf-color-text);
}

.vcf-label--required::after {
	content: ' *';
	color: var(--vcf-color-error);
}

.vcf-field__hint {
	display: block;
	font-size: 0.8125rem;
	color: var(--vcf-color-text-muted);
	margin-top: 0.375rem;
	transition: opacity 0.2s;
}

.vcf-field__hint.vcf-hint--error {
	color: var(--vcf-color-error);
}

/* Progressive disclosure — types section.
   The [hidden] attribute already provides display:none.
   Only the .vcf-field--reveal class is needed to override it for the slide-in animation.
   The padding/negative-margin pair moves the clip edge 6px outward (layout-neutral,
   horizontal margins don't collapse) so the radio cards' focus ring — 2px outline +
   2px offset drawn outside the card — isn't cut off where the first/last card sits
   flush with this container (HH-254 QA: ring was missing on the outer edges). */
.vcf-field--types {
	overflow: hidden;
	padding-inline: 6px;
	margin-inline: -6px;
}

.vcf-field--types.vcf-field--reveal {
	display: block;
	animation: vcf-slide-in 0.3s ease-out;
}

@keyframes vcf-slide-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/*
 * Form inputs - minimal overrides to fix Astra's height:40px clipping issue
 * Theme handles most styling; we only fix what breaks
 */
.vcf-registration-form input[type="text"],
.vcf-registration-form input[type="email"],
.vcf-registration-form input[type="tel"],
.vcf-registration-form select,
.vcf-registration-form textarea {
	/* Fix Astra's fixed height:40px that clips text */
	height: auto !important;
	min-height: 48px;
	font-family: var(--vcf-font-family);
	font-size: 1rem;
	line-height: 26px;
	border: 2px solid var(--vcf-color-text-muted);
	border-radius: 0;
	padding: 11px 12px;
	color: var(--vcf-color-text);
	background: #FFFFFF;
	transition: border-color 0.15s;
}

.vcf-registration-form input[type="text"]:focus,
.vcf-registration-form input[type="email"]:focus,
.vcf-registration-form input[type="tel"]:focus,
.vcf-registration-form select:focus,
.vcf-registration-form textarea:focus {
	border-color: var(--vcf-color-primary-active);
	/* Visible focus indicator (WCAG 2.4.7 / 1.4.11) — matches the 2px treatment
	   used on the radio cards and buttons. Replaces the previous outline:none. */
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 1px;
	box-shadow: none;
}

.vcf-registration-form input::placeholder,
.vcf-registration-form textarea::placeholder {
	color: var(--vcf-color-text-muted);
}

/* Respect reduced-motion preferences (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
	.vcf-registration-form *,
	.vcf-registration-form *::before,
	.vcf-registration-form *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.vcf-registration-form input:disabled,
.vcf-registration-form select:disabled,
.vcf-registration-form textarea:disabled {
	background: var(--vcf-color-primary-disabled-bg);
	cursor: not-allowed;
}

/* Select dropdowns - custom arrow since we need appearance:none */
.vcf-registration-form select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237E858B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px;
	padding-right: 2.5rem;
	cursor: pointer;
}

.vcf-field--error .vcf-input {
	border-color: var(--vcf-color-error);
}

.vcf-field--error .vcf-input:focus {
	border-color: var(--vcf-color-error); /* keep error visible on focus */
	box-shadow: none;
}

.vcf-field__error {
	display: block;
	font-size: 0.875rem;
	color: var(--vcf-color-error);
	margin-top: var(--vcf-spacing-xs);
	min-height: 1.25em;
}

/* ==========================================================================
   Field Groups (for address layout)
   ========================================================================== */
.vcf-field-group {
	display: grid;
	gap: var(--vcf-spacing);
}

.vcf-field-group--address {
	grid-template-columns: 2fr 1fr 1fr;
}

.vcf-field-group--company-details {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 639px) {
	.vcf-field-group--address,
	.vcf-field-group--company-details {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Radio Cards
   ========================================================================== */
.vcf-radio-cards {
	display: flex;
	align-items: stretch; /* Equal height cards */
	gap: var(--vcf-spacing-md);
}

.vcf-radio-card {
	flex: 1;
	display: flex; /* Enable flexbox for inner content */
	position: relative;
	cursor: pointer;
}

.vcf-radio-card__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.vcf-radio-card__content {
	display: flex;
	flex-direction: column;
	flex: 1; /* Fill card height */
	padding: var(--vcf-spacing-md);
	border: 2px solid var(--vcf-color-border);
	border-radius: var(--vcf-border-radius);
	transition: border-color 0.15s, background-color 0.15s;
}

.vcf-radio-card__input:focus-visible + .vcf-radio-card__content {
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 2px;
}

.vcf-radio-card:hover .vcf-radio-card__content {
	border-color: var(--vcf-color-text-muted);
}

.vcf-radio-card__input:checked + .vcf-radio-card__content {
	border-color: var(--vcf-color-primary);
	background: var(--vcf-color-primary-bg);
}

.vcf-radio-card--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.vcf-radio-card--disabled .vcf-radio-card__content {
	background: var(--vcf-color-bg-muted);
	border-color: var(--vcf-color-border);
	border-style: dashed;
}

.vcf-radio-card__title {
	display: block;
	font-weight: 600;
	margin-bottom: 0.125rem;
}

.vcf-radio-card__description {
	display: block;
	font-size: 0.8125rem;
	color: var(--vcf-color-text-muted);
	font-weight: 400;
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.vcf-radio-card__qualifier {
	display: block;
	font-size: 0.75rem;
	color: var(--vcf-color-text-muted);
	font-weight: 400;
}

.vcf-radio-card__price {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.vcf-radio-card__amount {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--vcf-color-success);
}

@media (max-width: 639px) {
	.vcf-radio-cards {
		flex-direction: column;
	}
}

/* ==========================================================================
   Badges
   ========================================================================== */
.vcf-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

/* The .vcf-badge rule above sets display:inline-block, which overrides the
   browser's default [hidden] { display:none } because a class selector beats
   an attribute selector in specificity. The !important here restores hidden
   behavior when the attribute is present. */
.vcf-badge[hidden] {
	display: none !important;
}

.vcf-badge--early-bird {
	background: var(--vcf-color-success-bg);
	color: var(--vcf-color-success);
}

.vcf-badge--available {
	background: var(--vcf-color-success-bg);
	color: var(--vcf-color-success);
}

.vcf-badge--sold-out {
	background: var(--vcf-color-error-bg);
	color: var(--vcf-color-error);
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.vcf-submit {
	margin-top: calc(var(--vcf-spacing) * 2);
}

.vcf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	font-family: 'IBM Plex Sans Condensed', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 0.75rem 1.5rem;
	min-height: 48px;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.1s;
}

.vcf-button--submit {
	width: 100%;
	background: var(--vcf-color-primary);
	color: #ffffff;
}

.vcf-button--submit:hover:not(:disabled) {
	background: var(--vcf-color-primary-hover);
}

.vcf-button--submit:active:not(:disabled) {
	background: var(--vcf-color-primary-active);
}

.vcf-button--submit:focus-visible {
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 2px;
}

.vcf-button--submit:disabled {
	background: var(--vcf-color-primary-disabled-bg);
	color: var(--vcf-color-primary-disabled-text);
	cursor: not-allowed;
	opacity: 1;
}

.vcf-button__spinner {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: vcf-spin 0.8s linear infinite;
}

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

.vcf-submit__helper {
	text-align: center;
	font-size: 0.875rem;
	color: var(--vcf-color-text-muted);
	margin-top: 0.75rem;
}

/* ==========================================================================
   Confirmation Page Styles
   ========================================================================== */
.vcf-confirmation {
	font-family: var(--vcf-font-family);
	color: var(--vcf-color-text);
	max-width: 640px;
	margin: 0 auto;
	padding: calc(var(--vcf-spacing) * 2);
}

/* Success Header */
.vcf-confirmation__header {
	text-align: center;
	margin-bottom: calc(var(--vcf-spacing) * 2);
}

.vcf-confirmation__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: rgba(17, 122, 101, 0.1);
	border-radius: 50%;
	margin-bottom: var(--vcf-spacing);
}

.vcf-confirmation__success-icon svg {
	color: var(--vcf-color-success);
}

.vcf-confirmation__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--vcf-color-text);
	margin: 0 0 0.5rem;
}

.vcf-confirmation__subtitle {
	font-size: 1rem;
	color: var(--vcf-color-text-muted);
	margin: 0;
}

.vcf-confirmation__subtitle strong {
	color: var(--vcf-color-text);
}

/* Sections */
.vcf-confirmation__section {
	background: var(--vcf-color-bg);
	border: 1px solid var(--vcf-color-border);
	border-radius: var(--vcf-border-radius);
	padding: var(--vcf-spacing-md);
	margin-bottom: var(--vcf-spacing-md);
}

.vcf-confirmation__section--payment {
	background: var(--vcf-color-bg-muted);
}

.vcf-confirmation__section--next-steps {
	background: rgba(17, 60, 99, 0.05);
	border-color: var(--vcf-color-primary-hover);
}

.vcf-confirmation__section-title {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vcf-color-accent);
	margin: 0 0 var(--vcf-spacing);
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--vcf-color-accent);
}

.vcf-confirmation__section--next-steps .vcf-confirmation__section-title {
	color: var(--vcf-color-primary);
	border-bottom-color: var(--vcf-color-primary);
}

/* Detail Rows */
.vcf-confirmation__details {
	display: flex;
	flex-direction: column;
	gap: var(--vcf-spacing-sm);
}

.vcf-confirmation__detail-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--vcf-spacing);
}

.vcf-confirmation__detail-label {
	font-size: 0.875rem;
	color: var(--vcf-color-text-muted);
	flex-shrink: 0;
}

.vcf-confirmation__detail-value {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--vcf-color-text);
	text-align: right;
	word-break: break-word;
}

.vcf-confirmation__detail-value--amount {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--vcf-color-success);
}

.vcf-confirmation__detail-value--mono {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 0.75rem;
	background: var(--vcf-color-bg-muted);
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

/* Next Steps List */
.vcf-confirmation__steps {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--vcf-color-text);
}

.vcf-confirmation__steps li {
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

.vcf-confirmation__steps li:last-child {
	margin-bottom: 0;
}

/* Actions */
.vcf-confirmation__actions {
	display: flex;
	gap: var(--vcf-spacing);
	justify-content: center;
	margin-top: calc(var(--vcf-spacing) * 1.5);
	flex-wrap: wrap;
}

.vcf-confirmation .vcf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.75rem 1.5rem;
	border-radius: var(--vcf-border-radius);
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
	text-decoration: none;
}

.vcf-confirmation .vcf-button--secondary {
	background: var(--vcf-color-primary);
	color: #ffffff;
	border: none;
}

.vcf-confirmation .vcf-button--secondary:hover {
	background: var(--vcf-color-primary-hover);
}

.vcf-confirmation .vcf-button--secondary:active {
	background: var(--vcf-color-primary-active);
}

.vcf-confirmation .vcf-button--secondary:focus-visible {
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 2px;
}

.vcf-confirmation .vcf-button--outline {
	background: transparent;
	color: var(--vcf-color-primary);
	border: 2px solid var(--vcf-color-primary);
}

.vcf-confirmation .vcf-button--outline:hover {
	background: var(--vcf-color-overlay-hover);
	border-color: var(--vcf-color-primary);
}

.vcf-confirmation .vcf-button--outline:active {
	background: var(--vcf-color-overlay-active);
}

.vcf-confirmation .vcf-button--outline:focus-visible {
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 2px;
}

.vcf-confirmation .vcf-button__icon {
	display: flex;
	align-items: center;
}

/* Contact Info */
.vcf-confirmation__contact {
	text-align: center;
	margin-top: calc(var(--vcf-spacing) * 1.5);
	font-size: 0.875rem;
	color: var(--vcf-color-text-muted);
}

.vcf-confirmation__contact a {
	color: var(--vcf-color-primary);
	text-decoration: none;
}

.vcf-confirmation__contact a:hover {
	text-decoration: underline;
}

/* Error State */
.vcf-confirmation--error {
	text-align: center;
}

.vcf-confirmation__error {
	padding: calc(var(--vcf-spacing) * 2);
}

.vcf-confirmation__error-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: rgba(159, 29, 33, 0.05);
	border-radius: 50%;
	margin-bottom: var(--vcf-spacing);
}

.vcf-confirmation__error-icon svg {
	color: var(--vcf-color-error);
}

.vcf-confirmation__error-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--vcf-color-text);
	margin: 0 0 0.75rem;
}

.vcf-confirmation__error-message {
	font-size: 1rem;
	color: var(--vcf-color-text-muted);
	margin: 0 0 var(--vcf-spacing);
}

.vcf-confirmation__error-help {
	font-size: 0.875rem;
	color: var(--vcf-color-text-muted);
	margin: 0;
}

.vcf-confirmation__error-help a {
	color: var(--vcf-color-primary);
	text-decoration: none;
}

.vcf-confirmation__error-help a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Bundle Options
   ========================================================================== */
.vcf-bundle-options {
	margin-top: var(--vcf-spacing);
	padding-top: var(--vcf-spacing);
	border-top: 1px solid var(--vcf-color-border);
}

/* Bundle Size Selector */
.vcf-bundle-sizes {
	display: flex;
	align-items: stretch; /* Equal height cards */
	gap: var(--vcf-spacing-sm);
}

.vcf-bundle-size {
	flex: 1;
	display: flex; /* Enable flexbox */
	position: relative;
	cursor: pointer;
}

.vcf-bundle-size__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.vcf-bundle-size__content {
	display: flex;
	flex-direction: column;
	flex: 1; /* Fill card height */
	align-items: center;
	padding: var(--vcf-spacing-sm);
	border: 2px solid var(--vcf-color-border);
	border-radius: var(--vcf-border-radius);
	transition: border-color 0.15s, background-color 0.15s;
	text-align: center;
}

.vcf-bundle-size__input:focus-visible + .vcf-bundle-size__content {
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 2px;
}

.vcf-bundle-size__input:checked + .vcf-bundle-size__content {
	border-color: var(--vcf-color-primary);
	background: var(--vcf-color-primary-bg);
}

.vcf-bundle-size__input:disabled + .vcf-bundle-size__content {
	opacity: 0.5;
	cursor: not-allowed;
	background: var(--vcf-color-bg-muted);
}

.vcf-bundle-size__title {
	font-weight: 600;
	font-size: 0.875rem;
}

.vcf-bundle-size__price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--vcf-color-success);
	margin-top: 0.25rem;
}

@media (max-width: 639px) {
	.vcf-bundle-sizes {
		flex-direction: column;
	}
}

/* Event Cards Grid */
.vcf-field--bundle-events {
	margin-top: var(--vcf-spacing);
}

.vcf-bundle-counter {
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: var(--vcf-color-bg-muted);
	border-radius: var(--vcf-border-radius);
	font-size: 0.875rem;
	font-weight: 500;
}

.vcf-bundle-counter--incomplete {
	background: var(--vcf-color-error-bg);
	color: var(--vcf-color-error);
}

.vcf-bundle-counter--complete {
	background: var(--vcf-color-success-bg);
	color: var(--vcf-color-success-dark);
}

.vcf-event-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 1fr; /* Equal height rows */
	gap: var(--vcf-spacing-sm);
}

@media (max-width: 639px) {
	.vcf-event-cards {
		grid-template-columns: 1fr;
	}
}

/* Individual Event Card */
.vcf-event-card {
	display: flex;
	flex-direction: column;
	position: relative;
	padding: var(--vcf-spacing-md);
	border: 2px solid var(--vcf-color-border);
	border-radius: var(--vcf-border-radius);
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.vcf-event-card:hover {
	border-color: var(--vcf-color-text-muted);
}

.vcf-event-card:focus-visible {
	outline: 2px solid var(--vcf-color-primary);
	outline-offset: 2px;
}

.vcf-event-card--selected {
	border-color: var(--vcf-color-primary);
	background: var(--vcf-color-primary-bg);
}

.vcf-event-card--locked {
	border-color: var(--vcf-color-success);
	background: var(--vcf-color-success-bg-light);
	cursor: default;
}

.vcf-event-card--locked::after {
	content: '';
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--vcf-color-success);
	border-radius: 50%;
	background-image: var(--vcf-icon-checkmark);
	background-repeat: no-repeat;
	background-position: center;
}

.vcf-event-card__checkbox {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid var(--vcf-color-border);
	border-radius: 4px;
	background: var(--vcf-color-bg);
	transition: border-color 0.15s, background-color 0.15s;
}

.vcf-event-card--selected .vcf-event-card__checkbox {
	border-color: var(--vcf-color-primary);
	background: var(--vcf-color-primary);
	background-image: var(--vcf-icon-checkmark);
	background-repeat: no-repeat;
	background-position: center;
}

.vcf-event-card--locked .vcf-event-card__checkbox {
	display: none;
}

.vcf-event-card__title {
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 0.25rem;
	padding-right: 1.5rem;
	color: var(--vcf-color-text);
}

.vcf-event-card__date {
	font-size: 0.875rem;
	color: var(--vcf-color-text-muted);
}

.vcf-event-card__badges {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.vcf-event-card__locked-label {
	display: none;
	font-size: 0.75rem;
	color: var(--vcf-color-success);
	font-weight: 500;
	margin-top: 0.5rem;
}

.vcf-event-card--locked .vcf-event-card__locked-label {
	display: block;
}

/* Booth Owner Report add-on (HH-391) */
.vcf-addon {
	margin-top: 16px;
}

.vcf-addon__label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--vcf-color-border);
	border-radius: 8px;
	background: var(--vcf-color-bg);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vcf-addon__label:hover {
	border-color: var(--vcf-color-border-focus);
	background: var(--vcf-color-primary-bg);
}

.vcf-addon__input {
	margin-top: 2px;
	flex: 0 0 auto;
}

.vcf-addon__input:focus-visible {
	outline: 2px solid var(--vcf-color-border-focus);
	outline-offset: 2px;
}

.vcf-addon__content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
}

.vcf-addon__title {
	font-weight: 600;
	color: var(--vcf-color-text);
}

.vcf-addon__description {
	font-size: 0.875rem;
	color: var(--vcf-color-text-muted);
}

.vcf-addon__price {
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--vcf-color-text);
}

/* Print Styles */
@media print {
	.vcf-confirmation__actions {
		display: none;
	}

	.vcf-confirmation {
		max-width: 100%;
		padding: 0;
	}

	.vcf-confirmation__section {
		break-inside: avoid;
	}
}
