/* Discover Peterborough — virtual tour submission form */

.dpvt-wrap {
	--dpvt-ink: #12343b;
	--dpvt-accent: #b06d2b;
	--dpvt-line: #dfe3e6;
	--dpvt-muted: #5b6770;
	--dpvt-bg: #f7f8f9;
	--dpvt-radius: 10px;

	max-width: 860px;
	margin: 0 auto;
	color: inherit;
}

.dpvt-wrap *,
.dpvt-wrap *::before,
.dpvt-wrap *::after {
	box-sizing: border-box;
}

.dpvt-title {
	margin: 0 0 0.5em;
}

.dpvt-intro p {
	margin: 0 0 0.75em;
}

.dpvt-note,
.dpvt-hint,
.dpvt-help {
	color: var(--dpvt-muted);
	font-size: 0.9em;
	line-height: 1.5;
}

.dpvt-errors {
	background: #fdf1f1;
	border: 1px solid #e6b1b1;
	border-left: 4px solid #c0392b;
	border-radius: var(--dpvt-radius);
	padding: 16px 20px;
	margin: 0 0 24px;
}

.dpvt-errors ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.dpvt-errors li {
	margin-bottom: 4px;
}

.dpvt-success {
	background: #eef7f0;
	border: 1px solid #b7ddc2;
	border-radius: var(--dpvt-radius);
	padding: 24px 28px;
}

.dpvt-success h2 {
	margin-top: 0;
}

.dpvt-ref {
	margin-bottom: 0;
}

/* Sections ------------------------------------------------------------- */

.dpvt-section {
	border: 1px solid var(--dpvt-line);
	border-radius: var(--dpvt-radius);
	padding: 24px;
	margin: 0 0 24px;
	background: #fff;
}

.dpvt-section > legend {
	font-weight: 700;
	font-size: 1.05em;
	padding: 0 8px;
	color: var(--dpvt-ink);
}

/* Fields --------------------------------------------------------------- */

.dpvt-field {
	display: block;
	margin: 0 0 18px;
}

.dpvt-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.95em;
}

.dpvt-field input[type="text"],
.dpvt-field input[type="email"],
.dpvt-field input[type="tel"],
.dpvt-field input[type="url"],
.dpvt-field textarea,
.dpvt-promo-row input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--dpvt-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 1em;
	line-height: 1.4;
}

.dpvt-field input:focus,
.dpvt-field textarea:focus,
.dpvt-promo-row input:focus {
	outline: 2px solid var(--dpvt-ink);
	outline-offset: 1px;
	border-color: var(--dpvt-ink);
}

.dpvt-field input[type="file"] {
	display: block;
	width: 100%;
	padding: 10px;
	border: 1px dashed var(--dpvt-line);
	border-radius: 6px;
	background: var(--dpvt-bg);
	font-size: 0.95em;
}

.dpvt-field textarea {
	resize: vertical;
	min-height: 90px;
}

.dpvt-req {
	color: #c0392b;
}

.dpvt-hint {
	display: block;
	margin-top: 5px;
}

.dpvt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 20px;
}

/* Points of interest --------------------------------------------------- */

.dpvt-poi {
	border: 1px solid var(--dpvt-line);
	border-radius: var(--dpvt-radius);
	padding: 20px;
	margin: 0 0 18px;
	background: var(--dpvt-bg);
}

.dpvt-poi-extra {
	border-color: var(--dpvt-accent);
	background: #fdf7f1;
}

.dpvt-poi-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.dpvt-poi-head h3 {
	margin: 0;
	font-size: 1.05em;
	display: flex;
	align-items: center;
	gap: 10px;
}

.dpvt-tag {
	font-size: 0.72em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 3px 9px;
	border-radius: 999px;
	background: #e4e9ec;
	color: var(--dpvt-muted);
	white-space: nowrap;
}

.dpvt-poi-extra .dpvt-tag {
	background: var(--dpvt-accent);
	color: #fff;
}

.dpvt-remove-poi {
	background: none;
	border: 0;
	color: #c0392b;
	cursor: pointer;
	font: inherit;
	font-size: 0.9em;
	text-decoration: underline;
	padding: 4px;
}

.dpvt-preview {
	display: block;
	margin-top: 10px;
}

.dpvt-preview img {
	max-width: 180px;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--dpvt-line);
	display: block;
}

.dpvt-file-error {
	display: block;
	margin-top: 6px;
	color: #c0392b;
	font-size: 0.9em;
}

/* Promo + summary ------------------------------------------------------ */

.dpvt-promo {
	margin: 0 0 20px;
}

.dpvt-promo > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.95em;
}

.dpvt-promo-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	max-width: 420px;
}

.dpvt-promo-row input {
	flex: 1;
	text-transform: uppercase;
}

.dpvt-promo-msg {
	margin: 8px 0 0;
	font-size: 0.9em;
	min-height: 1.2em;
}

.dpvt-promo-msg.is-ok {
	color: #1d6f3f;
}

.dpvt-promo-msg.is-error {
	color: #c0392b;
}

.dpvt-summary {
	border: 1px solid var(--dpvt-line);
	border-radius: var(--dpvt-radius);
	padding: 18px 20px;
	background: var(--dpvt-bg);
	margin: 0 0 20px;
}

.dpvt-summary h3 {
	margin: 0 0 10px;
	font-size: 1em;
}

.dpvt-summary table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.dpvt-summary th,
.dpvt-summary td {
	text-align: left;
	padding: 8px 0;
	border-bottom: 1px solid var(--dpvt-line);
	font-weight: 400;
	font-size: 0.95em;
}

.dpvt-summary td {
	text-align: right;
	white-space: nowrap;
	padding-left: 16px;
}

.dpvt-summary .dpvt-row-total th,
.dpvt-summary .dpvt-row-total td {
	font-weight: 700;
	font-size: 1.05em;
	border-bottom: 0;
	padding-top: 12px;
}

/* Checkboxes and buttons ----------------------------------------------- */

.dpvt-check {
	margin: 0 0 14px;
}

.dpvt-check label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.95em;
	line-height: 1.5;
	cursor: pointer;
}

.dpvt-check input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.dpvt-btn {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 11px 20px;
	cursor: pointer;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

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

.dpvt-btn-primary:hover,
.dpvt-btn-primary:focus {
	background: #0c2429;
	color: #fff;
}

.dpvt-btn-secondary {
	background: #fff;
	color: var(--dpvt-ink);
	border-color: var(--dpvt-ink);
}

.dpvt-btn-secondary:hover,
.dpvt-btn-secondary:focus {
	background: var(--dpvt-ink);
	color: #fff;
}

.dpvt-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.dpvt-actions {
	margin: 4px 0 0;
}

.dpvt-submit {
	margin: 20px 0 0;
}

.dpvt-submit .dpvt-btn {
	width: 100%;
	padding: 14px 20px;
	font-size: 1.05em;
}

/* Honeypot ------------------------------------------------------------- */

.dpvt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.dpvt-section {
		padding: 18px 16px;
	}

	.dpvt-promo-row {
		flex-direction: column;
	}
}

/* Media add-ons ---------------------------------------------------------- */

.dpvt-addons-block {
	margin: 18px 0 0;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--dpvt-line);
	border-radius: 8px;
}

.dpvt-addons-legend {
	margin: 0 0 12px;
	font-weight: 600;
	font-size: 0.95em;
}

.dpvt-addon-options {
	display: grid;
	gap: 10px;
}

.dpvt-addon {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid var(--dpvt-line);
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dpvt-addon:hover {
	border-color: var(--dpvt-accent);
}

.dpvt-addon:has(input:checked) {
	border-color: var(--dpvt-accent);
	background: #fdf7f1;
}

.dpvt-addon input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.dpvt-addon-body {
	flex: 1;
	min-width: 0;
}

.dpvt-addon-name {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	font-weight: 600;
	font-size: 0.95em;
}

.dpvt-addon-price {
	color: var(--dpvt-accent);
	font-weight: 700;
	white-space: nowrap;
}

.dpvt-addon-desc {
	display: block;
	margin-top: 3px;
	color: var(--dpvt-muted);
	font-size: 0.88em;
	line-height: 1.45;
	font-weight: 400;
}

.dpvt-addon-brief {
	margin: 14px 0 0;
}
