.cdv-open-btn {
	background: #2952ee;
	color: #fff;
	border: none;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}
.cdv-open-btn:hover { background: #1e40cc; }
.cdv-open-btn:active { transform: scale(.98); }

.cdv-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 20, 35, .55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
}
.cdv-overlay.cdv-open { display: flex; }

.cdv-modal {
	background: #fff;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	border-radius: 16px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	display: flex;
	flex-direction: column;
	transition: max-width .2s ease;
}
/* Applied by JS while the "plan", "methods" or "details" steps are active.
   Widened by 100px on the left and 100px on the right vs. the previous pass. */
.cdv-modal.cdv-modal-wide { max-width: 940px; }

.cdv-modal-scroll {
	overflow-y: auto;
	padding: 32px;
}
.cdv-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #f3f4f6;
	border: none;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	cursor: pointer;
	z-index: 2;
	color: #6b7280;
	box-shadow: 0 2px 8px rgba(15,20,35,.08);
}
.cdv-close svg { display: block; margin: auto; }

.cdv-title { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 8px; }
/* "Add Confirmation Statement filing?" — smaller title as requested */
.cdv-step[data-step="plan"] .cdv-title { font-size: 16px; }
.cdv-subtitle { font-size: 14.5px; color: #6b7280; margin: 0 0 22px; line-height: 1.5; }
.cdv-center { text-align: center; }
.cdv-pricing-eyebrow { text-align: center; color: #2952ee; font-weight: 700; font-size: 12px; letter-spacing: .06em; margin-bottom: 6px; }

/* Plan boxes */
.cdv-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.cdv-plan-box {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	cursor: pointer;
	position: relative;
	transition: border-color .15s ease, box-shadow .15s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.cdv-plan-box:hover { border-color: #b9c4f5; }
.cdv-plan-box.cdv-selected { border-color: #2952ee; background: #f5f7ff; box-shadow: 0 0 0 1px #2952ee; }
.cdv-plan-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.cdv-plan-box h3 { font-size: 16px; margin: 0; color: #111827; }
.cdv-plan-price { font-size: 20px; font-weight: 700; color: #111827; white-space: nowrap; }
.cdv-price-strike { text-decoration: line-through; color: #9ca3af; font-size: 14px; font-weight: 500; margin-right: 4px; }
.cdv-plan-save { color: #059669; font-size: 13px; font-weight: 600; margin: 2px 0; }
.cdv-plan-desc { color: #6b7280; font-size: 13.5px; margin: 4px 0 0; }
.cdv-badge {
	position: absolute; top: -12px; right: 16px;
	background: #059669; color: #fff; font-size: 11px; font-weight: 700;
	padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}

/* Selected plan panel */
.cdv-selected-plan-panel { border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.cdv-sel-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cdv-sel-icon { background: #e8edff; color: #2952ee; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.cdv-sel-info { flex: 1; }
.cdv-sel-info h4 { margin: 0 0 2px; font-size: 15px; color: #111827; }
.cdv-sel-info p { margin: 0 0 6px; font-size: 13.5px; color: #6b7280; }
.cdv-sel-time { font-size: 12.5px; color: #9ca3af; }
.cdv-sel-price { font-weight: 700; font-size: 18px; color: #111827; white-space: nowrap; }
.cdv-sel-bullets { list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid #eee; }
.cdv-sel-bullets li { font-size: 13.5px; color: #374151; padding: 5px 0 5px 26px; position: relative; }
.cdv-sel-bullets li:before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 700; }
.cdv-link-btn { background: none; border: none; color: #2952ee; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; }

/* Method table */
.cdv-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 10px; }
.cdv-method-card { border: 2px solid #e5e7eb; border-radius: 12px; padding: 18px 16px; position: relative; text-align: left; display: flex; flex-direction: column; }
.cdv-method-card.cdv-popular { border-color: #2952ee; }
.cdv-method-icon { font-size: 20px; background: #f2f3f5; width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cdv-method-card h3 { margin: 0 0 4px; font-size: 15px; }
.cdv-method-price { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.cdv-method-desc { font-size: 12.5px; color: #6b7280; margin: 0 0 12px; min-height: 32px; }
.cdv-method-card ul { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.cdv-method-card ul li { font-size: 12.5px; color: #374151; padding: 4px 0 4px 20px; position: relative; }
.cdv-method-card ul li:before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 700; }

/* Buttons */
.cdv-btn { padding: 11px 22px; border-radius: 8px; font-size: 14.5px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .15s ease; }
.cdv-btn-primary { background: #2952ee; color: #fff; }
.cdv-btn-primary:hover { background: #1e40cc; }
.cdv-btn-primary:disabled { background: #c7cef6; cursor: not-allowed; }
.cdv-btn-outline { background: #fff; border-color: #2952ee; color: #2952ee; width: 100%; }
.cdv-btn-outline:hover { background: #f2f5ff; }
.cdv-btn-ghost { background: #fff; border-color: #e5e7eb; color: #374151; }
.cdv-btn-ghost:hover { background: #f7f7f8; }
.cdv-step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* Form fields */
.cdv-field { margin-bottom: 16px; flex: 1; }
.cdv-field-row { display: flex; gap: 14px; }
.cdv-field label { display: block; font-size: 13.5px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.cdv-field label small { font-weight: 400; color: #9ca3af; }
.cdv-field input[type=text],
.cdv-field input[type=email],
.cdv-field input[type=tel],
.cdv-field input[type=file],
.cdv-field select {
	width: 100%; padding: 10px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 14px; color: #111827; box-sizing: border-box;
}
.cdv-field input:focus, .cdv-field select:focus { outline: none; border-color: #2952ee; }
.cdv-error { color: #dc2626; font-size: 12.5px; display: block; margin-top: 4px; min-height: 15px; }
.cdv-hint { color: #9ca3af; font-size: 12.5px; display: block; margin-top: 6px; }
.cdv-file-status { font-size: 12.5px; color: #059669; display: block; margin-top: 4px; }
.cdv-dob-row { display: flex; gap: 10px; }
.cdv-dob-row select { flex: 1; }
.cdv-checkbox-field { margin-bottom: 16px; }
.cdv-checkbox-field label { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 500; color: #374151; cursor: pointer; }
.cdv-checkbox-field input[type=checkbox] { margin-top: 3px; }
.cdv-conditional { margin-top: 12px; padding: 14px; background: #f9fafb; border-radius: 8px; }

/* Additional director repeater */
.cdv-additional-directors { margin-bottom: 6px; }
.cdv-director-card {
	border: 1.5px dashed #d7dce5;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 16px;
	background: #fafbfc;
}
.cdv-director-card h4 {
	margin: 0 0 14px;
	font-size: 14px;
	color: #2952ee;
	display: flex;
	align-items: center;
	gap: 8px;
}
.cdv-director-card h4:before {
	content: "";
	width: 22px; height: 22px;
	border-radius: 50%;
	background: #e8edff;
	display: inline-block;
}

/* Facial verification */
.cdv-facial-box { background: #111827; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; max-width: 360px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.cdv-facial-box video, .cdv-facial-box img { width: 100%; height: 100%; object-fit: cover; }
.cdv-facial-status { text-align: center; font-size: 13.5px; color: #6b7280; margin-bottom: 16px; }
.cdv-facial-actions { justify-content: center; }

/* Summary */
.cdv-order-title { font-size: 14px; color: #6b7280; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.cdv-summary-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.cdv-summary-table td { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; color: #374151; }
.cdv-summary-table td:last-child { text-align: right; font-weight: 600; color: #111827; }
.cdv-summary-total-row td { font-size: 17px; font-weight: 700; color: #111827; border-bottom: none; padding-top: 14px; }
.cdv-payment-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 10px; }

/* Success / pending */
.cdv-success-box { text-align: center; padding: 20px 0; }
.cdv-success-icon { width: 56px; height: 56px; background: #ecfdf3; color: #059669; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 18px; }
.cdv-tracking-id { display: inline-block; background: #f2f5ff; color: #1a56db; font-weight: 700; font-size: 20px; padding: 12px 22px; border-radius: 8px; margin-top: 10px; letter-spacing: .02em; }
.cdv-spinner { width: 44px; height: 44px; border: 4px solid #e5e7eb; border-top-color: #2952ee; border-radius: 50%; margin: 0 auto 18px; animation: cdv-spin 1s linear infinite; }
@keyframes cdv-spin { to { transform: rotate(360deg); } }

/* Tracker shortcode */
.cdv-tracker-wrap { max-width: 480px; margin: 0 auto; padding: 24px; border: 1px solid #e5e7eb; border-radius: 12px; }
.cdv-tracker-title { margin: 0 0 14px; }
.cdv-tracker-form { display: flex; gap: 10px; }
.cdv-tracker-form input { flex: 1; padding: 10px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.cdv-tracker-form button { background: #2952ee; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.cdv-track-result { margin-top: 16px; font-size: 14.5px; }
.cdv-track-status-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.cdv-status-pending_payment, .cdv-status-draft { background: #fef3c7; color: #92400e; }
.cdv-status-submitted { background: #dbeafe; color: #1e40af; }
.cdv-status-submitted_to_gov { background: #e0e7ff; color: #3730a3; }
.cdv-status-approved { background: #d1fae5; color: #065f46; }
.cdv-status-rejected { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 720px) {
	.cdv-method-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.cdv-modal-scroll { padding: 22px 16px; }
	.cdv-plan-grid { grid-template-columns: 1fr; }
	.cdv-method-grid { grid-template-columns: 1fr; }
	.cdv-field-row { flex-direction: column; gap: 0; }
	.cdv-step-actions { flex-direction: column-reverse; }
	.cdv-step-actions .cdv-btn { width: 100%; }
	.cdv-tracker-form { flex-direction: column; }
}
