.phf-dt-form-wrap {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
}

.phf-dt-connected-as {
	background: #eef2f7;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
}

.phf-dt-message {
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.phf-dt-message.success { background: #e6f4ea; color: #1e4620; }
.phf-dt-message.error { background: #fdecea; color: #611a15; }

.phf-dt-step legend {
	font-weight: 600;
	font-size: 1.1em;
	margin-bottom: 12px;
}

.phf-dt-step {
	border: none;
	padding: 0;
	margin: 0 0 24px 0;
}

.phf-dt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}

.phf-dt-card {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px 14px;
	cursor: pointer;
}
.phf-dt-card:has(input:checked) {
	border-color: #1d4ed8;
	background: #eff6ff;
}

.phf-dt-field {
	margin-bottom: 16px;
}
.phf-dt-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}
.phf-dt-field input[type="text"],
.phf-dt-field input[type="date"],
.phf-dt-field input[type="number"],
.phf-dt-field input[type="email"],
.phf-dt-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-sizing: border-box;
	font: inherit;
}
.phf-dt-field textarea {
	min-height: 90px;
}

.phf-dt-inline-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.phf-dt-inline-option {
	font-weight: normal !important;
	display: flex;
	align-items: center;
	gap: 6px;
}

.phf-dt-help {
	font-size: 0.8em;
	font-style: italic;
	color: #64748b;
	margin-top: 4px;
}

.phf-dt-event-picker {
	position: relative;
}
.phf-dt-event-results {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	margin-top: 4px;
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
}
.phf-dt-event-result-item {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	border-bottom: 1px solid #e2e8f0;
	padding: 8px 10px;
	font: inherit;
	cursor: pointer;
}
.phf-dt-event-result-item:last-child {
	border-bottom: none;
}
.phf-dt-event-result-item:hover,
.phf-dt-event-result-item:focus {
	background: #eff6ff;
}
.phf-dt-event-selected {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 8px 10px;
	margin-top: 4px;
}
.phf-dt-event-selected-text {
	font-weight: 600;
}
.phf-dt-event-change {
	background: none;
	border: 1px solid #1d4ed8;
	color: #1d4ed8;
	border-radius: 6px;
	padding: 4px 10px;
	font: inherit;
	cursor: pointer;
}
.phf-dt-event-empty {
	margin-top: 8px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 6px;
	padding: 10px 12px;
}
.phf-dt-event-empty p {
	margin: 0 0 8px 0;
}
.phf-dt-event-empty .phf-dt-help {
	margin-top: 8px;
	margin-bottom: 0;
}

.phf-dt-cost-estimate {
	font-size: 0.9em;
	color: #1e3a5f;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 8px 0 16px 0;
}

.phf-dt-sms-counter {
	font-size: 0.85em;
	color: #475569;
	margin-top: 4px;
	background: #f1f5f9;
	border-radius: 6px;
	padding: 6px 10px;
}

.phf-dt-instruction {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 16px;
	color: #1e3a5f;
}

.phf-dt-quantity-grid {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 16px;
}

.phf-dt-quantity-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #fff;
}

.phf-dt-quantity-row:nth-child(even) {
	background: #f8fafc;
}

.phf-dt-quantity-row + .phf-dt-quantity-row {
	border-top: 1px solid #e2e8f0;
}

.phf-dt-quantity-row-label {
	font-size: 0.95em;
	color: #1e293b;
}

.phf-dt-quantity-row-label em {
	color: #64748b;
	font-style: normal;
	font-size: 0.9em;
}

.phf-dt-quantity-input {
	width: 48px;
	flex: 0 0 auto;
	text-align: center;
}

.phf-dt-photo-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.phf-dt-btn {
	background: #1d4ed8;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	font: inherit;
	cursor: pointer;
}
.phf-dt-btn.phf-dt-back {
	background: #64748b;
	margin-right: 10px;
}
.phf-dt-add-photo,
.phf-dt-remove-photo {
	background: #e2e8f0;
	color: #1e293b;
	padding: 6px 12px;
	font-size: 0.9em;
}

.phf-dt-nav {
	margin-top: 24px;
}

[hidden] {
	display: none !important;
}
