/* =============================================================================
   CDD Signup Form — cdd-signup.css
   Multi-step attorney listing signup form
   ============================================================================= */

/* Wrapper */
.cdd-signup-wrap {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 16px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #2c3e50;
}

/* ── Step Indicator ──────────────────────────────────────────────────────────── */
.cdd-steps-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 32px 0 40px;
	padding: 0 8px;
}

.cdd-step-dot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
}

.cdd-step-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #dde3ea;
	color: #6b7885;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, color 0.25s;
}

.cdd-step-dot.active .cdd-step-num {
	background: #1a3c5e;
	color: #fff;
}

.cdd-step-dot.completed .cdd-step-num {
	background: #27ae60;
	color: #fff;
}

.cdd-step-dot.completed .cdd-step-num::after {
	content: '✓';
}

.cdd-step-label {
	font-size: 12px;
	color: #6b7885;
	white-space: nowrap;
	font-weight: 500;
}

.cdd-step-dot.active .cdd-step-label {
	color: #1a3c5e;
	font-weight: 700;
}

.cdd-step-connector {
	flex: 1;
	height: 2px;
	background: #dde3ea;
	margin: 0 8px;
	margin-bottom: 22px;
	max-width: 80px;
	transition: background 0.25s;
}

.cdd-step-connector.completed {
	background: #27ae60;
}

/* ── Step Panels ─────────────────────────────────────────────────────────────── */
.cdd-signup-step {
	display: none;
}

.cdd-signup-step.active {
	display: block;
}

.cdd-step-heading {
	font-size: 26px;
	font-weight: 700;
	color: #1a3c5e;
	margin: 0 0 8px;
}

.cdd-step-sub {
	color: #6b7885;
	margin: 0 0 28px;
	font-size: 15px;
}

/* ── Tier Cards ──────────────────────────────────────────────────────────────── */
.cdd-tier-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 8px;
}

.cdd-tier-card {
	border: 2px solid #dde3ea;
	border-radius: 12px;
	padding: 24px 20px;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
	cursor: pointer;
}

.cdd-tier-card:hover {
	border-color: #1a3c5e;
	box-shadow: 0 4px 16px rgba(26,60,94,0.12);
	transform: translateY(-2px);
}

.cdd-tier-card.selected {
	border-color: #1a3c5e;
	box-shadow: 0 0 0 3px rgba(26,60,94,0.18);
}

.cdd-tier-card--free {
	border-color: #27ae60;
}

.cdd-tier-card--free:hover,
.cdd-tier-card--free.selected {
	border-color: #27ae60;
	box-shadow: 0 4px 16px rgba(39,174,96,0.15);
}

.cdd-tier-card__header {
	margin-bottom: 16px;
}

.cdd-tier-card__name {
	font-size: 20px;
	font-weight: 700;
	color: #1a3c5e;
	margin: 0 0 6px;
}

.cdd-tier-card__price {
	font-size: 28px;
	font-weight: 800;
	color: #1a3c5e;
}

.cdd-tier-period {
	font-size: 14px;
	font-weight: 400;
	color: #6b7885;
}

.cdd-tier-card--free .cdd-tier-card__price {
	color: #27ae60;
}

.cdd-tier-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	flex: 1;
}

.cdd-tier-card__features li {
	padding: 5px 0 5px 22px;
	position: relative;
	font-size: 14px;
	color: #4a5568;
}

.cdd-tier-card__features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #27ae60;
	font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.cdd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.2s, transform 0.1s;
	text-decoration: none;
	gap: 6px;
}

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

.cdd-btn--primary {
	background: #1a3c5e;
	color: #fff;
}

.cdd-btn--primary:hover {
	background: #15304d;
}

.cdd-btn--secondary {
	background: #f0f4f8;
	color: #4a5568;
}

.cdd-btn--secondary:hover {
	background: #e2e8f0;
}

.cdd-btn--select {
	width: 100%;
	padding: 10px;
	background: #1a3c5e;
	color: #fff;
	font-size: 14px;
	border-radius: 6px;
	margin-top: auto;
}

.cdd-tier-card--free .cdd-btn--select {
	background: #27ae60;
}

.cdd-tier-card--free .cdd-btn--select:hover {
	background: #219a52;
}

.cdd-btn--select:hover {
	background: #15304d;
}

.cdd-btn--large {
	padding: 14px 32px;
	font-size: 17px;
}

/* ── Form ────────────────────────────────────────────────────────────────────── */
.cdd-signup-form {
	margin: 0;
}

.cdd-form-field {
	margin-bottom: 20px;
}

.cdd-form-field label,
.cdd-field-label-block {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
	margin-bottom: 6px;
}

.cdd-form-field input[type="text"],
.cdd-form-field input[type="email"],
.cdd-form-field input[type="tel"],
.cdd-form-field input[type="url"],
.cdd-form-field select,
.cdd-form-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	font-size: 15px;
	color: #2d3748;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.cdd-form-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7885' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.cdd-form-field input:focus,
.cdd-form-field select:focus,
.cdd-form-field textarea:focus {
	outline: none;
	border-color: #1a3c5e;
	box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
}

.cdd-form-field input.cdd-error,
.cdd-form-field select.cdd-error,
.cdd-form-field textarea.cdd-error {
	border-color: #e53e3e;
}

.cdd-form-row--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.cdd-req {
	color: #e53e3e;
}

.cdd-optional {
	color: #6b7885;
	font-weight: 400;
	font-size: 13px;
}

/* Practice area checkboxes */
.cdd-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
	padding: 12px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	background: #f8fafc;
}

.cdd-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #374151;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background 0.15s;
}

.cdd-checkbox-label:hover {
	background: #edf2f7;
}

.cdd-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: #1a3c5e;
	cursor: pointer;
}

/* File upload */
.cdd-upload-area {
	border: 2px dashed #cbd5e0;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
	background: #f8fafc;
	position: relative;
	transition: border-color 0.2s;
	cursor: pointer;
}

.cdd-upload-area:hover,
.cdd-upload-area.drag-over {
	border-color: #1a3c5e;
	background: #eef4fb;
}

.cdd-file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.cdd-upload-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #6b7885;
	font-size: 14px;
	pointer-events: none;
}

.cdd-upload-icon {
	font-size: 32px;
	margin-bottom: 4px;
}

.cdd-upload-hint {
	font-size: 12px;
	color: #a0aec0;
}

.cdd-upload-preview {
	position: relative;
	display: inline-block;
}

.cdd-upload-preview img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid #cbd5e0;
}

.cdd-remove-photo {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #e53e3e;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	font-size: 11px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 3;
}

/* Form actions */
.cdd-form-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}

/* ── Step 3 Review ────────────────────────────────────────────────────────────── */
.cdd-review-panel {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 24px;
}

.cdd-review-section-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7885;
	margin: 20px 0 10px;
}

.cdd-review-section-title:first-child {
	margin-top: 0;
}

.cdd-review-tier-box {
	background: #fff;
	border: 2px solid #1a3c5e;
	border-radius: 8px;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cdd-review-tier-box .tier-name {
	font-weight: 700;
	font-size: 18px;
	color: #1a3c5e;
}

.cdd-review-tier-box .tier-price {
	font-weight: 700;
	font-size: 20px;
	color: #1a3c5e;
}

.cdd-review-table {
	width: 100%;
	border-collapse: collapse;
}

.cdd-review-table tr:nth-child(even) td {
	background: #fff;
}

.cdd-review-table td {
	padding: 7px 10px;
	font-size: 14px;
	border-bottom: 1px solid #f0f4f8;
}

.cdd-review-table td:first-child {
	font-weight: 600;
	color: #6b7885;
	width: 140px;
	white-space: nowrap;
}

/* Payment placeholder */
.cdd-payment-section {
	margin-bottom: 20px;
}

.cdd-payment-placeholder {
	background: #fffbf0;
	border: 1px solid #ffc107;
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 14px;
	color: #7d6008;
}

/* Terms */
.cdd-terms-section {
	margin: 20px 0;
}

.cdd-terms-label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
}

.cdd-terms-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
	accent-color: #1a3c5e;
}

.cdd-terms-label a {
	color: #1a3c5e;
}

/* Error box */
.cdd-error-box {
	background: #fff5f5;
	border: 1px solid #fc8181;
	border-radius: 6px;
	padding: 12px 16px;
	color: #c53030;
	font-size: 14px;
	margin-bottom: 16px;
}

/* Spinner */
.cdd-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cdd-spin 0.7s linear infinite;
	display: inline-block;
}

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

/* ── Step 4 Confirmation ─────────────────────────────────────────────────────── */
.cdd-confirmation {
	text-align: center;
	padding: 48px 24px;
}

.cdd-confirmation__icon {
	width: 72px;
	height: 72px;
	background: #27ae60;
	color: #fff;
	border-radius: 50%;
	font-size: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.cdd-confirmation__heading {
	font-size: 30px;
	font-weight: 800;
	color: #1a3c5e;
	margin: 0 0 12px;
}

.cdd-confirmation__message {
	font-size: 16px;
	color: #4a5568;
	max-width: 520px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

#cdd-confirm-actions {
	margin-bottom: 20px;
}

#cdd-confirm-actions a {
	display: inline-block;
	background: #1a3c5e;
	color: #fff;
	padding: 12px 28px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}

.cdd-confirmation__email-note {
	font-size: 13px;
	color: #6b7885;
	margin: 0;
}

.cdd-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 14px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.cdd-form-row--2 {
		grid-template-columns: 1fr;
	}

	.cdd-tier-cards {
		grid-template-columns: 1fr;
	}

	.cdd-steps-nav {
		margin: 20px 0 28px;
	}

	.cdd-step-label {
		display: none;
	}

	.cdd-step-connector {
		max-width: 40px;
	}

	.cdd-form-actions {
		flex-direction: column-reverse;
	}

	.cdd-form-actions .cdd-btn {
		width: 100%;
	}

	.cdd-checkbox-grid {
		grid-template-columns: 1fr 1fr;
	}
}
