﻿/* DentalFocus Frontend Form Styles v2.1.0 */

/* ── Click-to-Call ──────────────────────────── */
.dk-call-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #e53935;
	color: #fff;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}
.dk-call-btn:hover { background: #c62828; color: #fff; text-decoration: none; }
.dk-call-link { color: #e53935; text-decoration: underline; }

/* ── Opening Hours ──────────────────────────── */
.dk-opening-hours { margin: 16px 0; }
.dk-hours-table { width: 100%; border-collapse: collapse; }
.dk-hours-table td, .dk-hours-list li { padding: 6px 12px; }
.dk-hours-table tr:nth-child(even) { background: #f9f9f9; }
.dk-hours-list { list-style: none; margin: 0; padding: 0; }
.dk-hours-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.dk-hours-today .dk-hours-day, .dk-hours-today td { font-weight: 700; color: #1a73e8; }
.dk-hours-day { font-weight: 500; }

/* ── Team Social Links ──────────────────────── */
.dk-team-socials { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.dk-team-social-link { font-size: 12px; padding: 3px 8px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #555; }
.dk-team-social-link:hover { background: #f5f5f5; }

/* ── Google Map ─────────────────────────────── */
.dk-map-wrap { margin: 16px 0; line-height: 0; }

/* ── Before / After Slider ──────────────────── */
.dk-ba-slider {
	position: relative;
	overflow: hidden;
	cursor: col-resize;
	-webkit-user-select: none;
	user-select: none;
	border-radius: 8px;
	margin: 16px 0;
	line-height: 0;
}
.dk-ba-after-img {
	display: block;
	width: 100%;
	height: auto;
}
.dk-ba-before-wrap {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
}
.dk-ba-before-img {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: auto;
	max-width: none;
}
.dk-ba-handle {
	position: absolute;
	top: 0;
	height: 100%;
	width: 2px;
	background: #fff;
	transform: translateX(-50%);
	box-shadow: 0 0 6px rgba(0,0,0,.4);
	z-index: 10;
	cursor: col-resize;
}
.dk-ba-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
	font-size: 18px;
	color: #333;
	line-height: 1;
}
.dk-ba-label {
	position: absolute;
	bottom: 12px;
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	pointer-events: none;
	line-height: 1.4;
}
.dk-ba-label--before { left: 12px; }
.dk-ba-label--after  { right: 12px; }

/* ── Treatment Price ────────────────────────── */
.dk-treatment-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 10px 0;
}
.dk-price-value {
	font-size: 20px;
	font-weight: 700;
	color: #1a73e8;
	line-height: 1;
}
.dk-price-note {
	font-size: 12px;
	color: #888;
}

/* ── WhatsApp ───────────────────────────────── */
.dk-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25d366;
	color: #fff;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}
.dk-whatsapp-btn::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 2.122.554 4.118 1.522 5.855L0 24l6.29-1.49A11.945 11.945 0 0 0 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 22c-1.898 0-3.673-.524-5.189-1.432l-.371-.22-3.733.884.931-3.636-.242-.381A9.946 9.946 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}
.dk-whatsapp-btn:hover {
	background: #1ebe57;
	color: #fff;
	text-decoration: none;
}
.dk-whatsapp-link {
	color: #25d366;
	text-decoration: underline;
}
.dk-whatsapp-link:hover {
	color: #1ebe57;
}

/* ── Treatment Enquiry Field ────────────────── */
.dk-treatment-name-field {
	background: #f0f7ff;
	border: 1px solid #c8e0ff;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 16px;
}
.dk-treatment-name-field .dk-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-bottom: 2px;
}
.dk-treatment-name-value {
	font-weight: 600;
	color: #1a73e8;
	font-size: 15px;
}

/* ── GDPR Consent ───────────────────────────── */
.dk-gdpr-field {
	border-top: 1px solid #e0e0e0;
	padding-top: 16px;
	margin-top: 4px;
}
.dk-gdpr-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	line-height: 1.5;
}
.dk-gdpr-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}
.dk-gdpr-label a {
	color: #0073aa;
	text-decoration: underline;
}

/* ── Star Ratings ───────────────────────────── */
.dk-star-rating {
	display: flex;
	gap: 2px;
	margin-bottom: 8px;
	font-size: 20px;
	line-height: 1;
}
.dk-star--filled {
	color: #f5a623;
}
.dk-star--empty {
	color: #d0d0d0;
}

.dk-form-wrap {
	max-width: 680px;
	margin: 0 auto;
}

.dk-form {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 32px;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Fields */
.dk-form-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.dk-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dk-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.dk-required {
	color: #d63638;
	margin-left: 2px;
}

.dk-input,
.dk-select,
.dk-textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	color: #333;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	box-sizing: border-box;
}

.dk-input:focus,
.dk-select:focus,
.dk-textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34,113,177,.2);
	outline: none;
}

.dk-input.dk-error,
.dk-select.dk-error,
.dk-textarea.dk-error {
	border-color: #d63638;
}

.dk-textarea {
	resize: vertical;
	min-height: 120px;
}

/* Checkbox & Radio */
.dk-checkbox-group,
.dk-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dk-checkbox-label,
.dk-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.dk-checkbox,
.dk-radio {
	width: 16px;
	height: 16px;
	margin: 0;
	cursor: pointer;
	accent-color: #2271b1;
}

/* Validation errors */
.dk-field-error {
	font-size: 12px;
	color: #d63638;
	margin-top: 2px;
}

/* Submit */
.dk-form-footer {
	margin-top: 24px;
}

.dk-submit-btn {
	display: inline-block;
	padding: 12px 28px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.dk-submit-btn:hover {
	background: #135e96;
}

.dk-submit-btn:disabled {
	background: #aaa;
	cursor: not-allowed;
}

/* Success / Error messages */
.dk-form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
}

.dk-form-message.dk-success {
	background: #edfaef;
	border: 1px solid #00a32a;
	color: #1a6320;
}

.dk-form-message.dk-error {
	background: #fef7f7;
	border: 1px solid #d63638;
	color: #8a1f1f;
}

/* Responsive */
@media (max-width: 600px) {
	.dk-form {
		padding: 20px;
	}
}

/* ── CPT Grids ─────────────────────────────── */
.dk-cpt-grid {
	display: grid;
	gap: 24px;
	margin: 24px 0;
}
.dk-cols-1 { grid-template-columns: 1fr; }
.dk-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dk-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dk-cols-4 { grid-template-columns: repeat(4, 1fr); }
.dk-cols-5 { grid-template-columns: repeat(5, 1fr); }
.dk-cols-6 { grid-template-columns: repeat(6, 1fr); }

.dk-cpt-item {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	transition: box-shadow .2s, transform .2s;
}
.dk-cpt-item:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.1);
	transform: translateY(-2px);
}
.dk-cpt-thumbnail img.dk-cpt-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.dk-cpt-content {
	padding: 18px 20px;
}
.dk-cpt-title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.4;
}
.dk-cpt-title a {
	color: inherit;
	text-decoration: none;
}
.dk-cpt-title a:hover {
	color: #2271b1;
}
.dk-cpt-excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 12px;
}
.dk-cpt-link {
	font-size: 14px;
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
}
.dk-cpt-link:hover {
	text-decoration: underline;
}

/* Testimonial */
.dk-testimonial-quote {
	font-style: italic;
	color: #444;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 12px;
	position: relative;
	padding-left: 16px;
	border-left: 3px solid #2271b1;
}
.dk-testimonial-author {
	font-weight: 600;
	font-size: 14px;
	color: #555;
	margin: 0;
}

/* Portfolio */
.dk-portfolio-item .dk-cpt-thumbnail img.dk-cpt-img {
	height: 220px;
}

/* Banner */
.dk-banner-item {
	position: relative;
}
.dk-banner-item .dk-cpt-thumbnail img.dk-cpt-img {
	height: 320px;
}

/* ── Social Links ───────────────────────────── */
.dk-social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.dk-social-item {
	margin: 0;
}
.dk-social-link {
	display: inline-block;
	padding: 6px 14px;
	background: #2271b1;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	transition: background .2s;
}
.dk-social-link:hover {
	background: #135e96;
	color: #fff;
}

/* Responsive CPT */
@media (max-width: 900px) {
	.dk-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.dk-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.dk-cols-2,
	.dk-cols-3,
	.dk-cols-4,
	.dk-cols-5,
	.dk-cols-6 {
		grid-template-columns: 1fr;
	}
}
