/**
 * Webstudio Albania — stilet e formularit
 * Version: 1.0.0
 */

.wsa-wrap {
	--wsa-accent: #6c5ce7;
	--wsa-accent-dark: #574bd0;
	--wsa-text: #1f2333;
	--wsa-muted: #6b7280;
	--wsa-border: #e3e6ef;
	--wsa-bg: #ffffff;
	--wsa-field-bg: #f8f9fc;
	--wsa-radius: 12px;
	--wsa-error: #e03131;
	--wsa-success: #14964f;
	max-width: 860px;
	margin: 0 auto 28px;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wsa-text);
	-webkit-font-smoothing: antialiased;
}

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

/* ---------- Form ---------- */
.wsa-form {
	background: var(--wsa-bg);
	border: 1px solid var(--wsa-border);
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 10px 40px rgba(20, 25, 55, 0.07);
}

.wsa-plain .wsa-form {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.wsa-form-head {
	margin: 0 0 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wsa-border);
}

.wsa-form-title {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--wsa-text);
}

.wsa-form-title::after {
	content: "";
	display: block;
	width: 52px;
	height: 3px;
	margin-top: 12px;
	border-radius: 3px;
	background: var(--wsa-accent);
}

.wsa-form-subtitle {
	margin: 0;
	font-size: 15px;
	color: var(--wsa-muted);
}

/* ---------- Grid ---------- */
.wsa-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.wsa-field {
	margin-bottom: 18px;
	min-width: 0;
}

.wsa-grid .wsa-field {
	margin-bottom: 0;
}

.wsa-field-full {
	grid-column: 1 / -1;
	margin-top: 18px;
}

.wsa-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wsa-text);
}

.wsa-req {
	color: var(--wsa-error);
	font-weight: 700;
}

.wsa-optional {
	font-weight: 400;
	color: var(--wsa-muted);
	font-size: 13px;
}

/* ---------- Inputs ---------- */
.wsa-input-wrap {
	position: relative;
}

.wsa-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	color: var(--wsa-muted);
	pointer-events: none;
	transition: color 0.18s ease;
}

.wsa-wrap .wsa-input {
	width: 100%;
	margin: 0;
	padding: 13px 15px;
	font-size: 15px;
	font-family: inherit;
	color: var(--wsa-text);
	background: var(--wsa-field-bg);
	border: 1.5px solid var(--wsa-border);
	border-radius: var(--wsa-radius);
	outline: none;
	box-shadow: none;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
	line-height: 1.4;
	height: auto;
	min-height: 50px;
}

.wsa-input-wrap .wsa-input {
	padding-left: 44px;
}

.wsa-wrap .wsa-input::placeholder {
	color: #9aa1b1;
	opacity: 1;
}

.wsa-wrap .wsa-input:focus {
	background: #fff;
	border-color: var(--wsa-accent);
	box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.wsa-input-wrap:focus-within .wsa-input-icon {
	color: var(--wsa-accent);
}

.wsa-wrap .wsa-textarea {
	resize: vertical;
	min-height: 130px;
	line-height: 1.65;
}

.wsa-counter {
	margin-top: 6px;
	font-size: 12px;
	color: var(--wsa-muted);
	text-align: right;
}

/* Errors */
.wsa-error {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	color: var(--wsa-error);
	font-weight: 500;
}

.wsa-error.is-visible {
	display: block;
}

.wsa-field.has-error .wsa-input,
.wsa-field.has-error .wsa-dd-toggle,
.wsa-field.has-error .wsa-dropzone {
	border-color: var(--wsa-error);
	background: #fff6f6;
}

/* ---------- Services dropdown ---------- */
.wsa-select-wrap {
	position: relative;
}

.wsa-native-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 42px !important;
	cursor: pointer;
}

.wsa-select-wrap.is-enhanced .wsa-native-select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	min-height: 0;
}

.wsa-dd {
	position: relative;
}

.wsa-dd-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	padding: 11px 14px;
	font-size: 15px;
	font-family: inherit;
	font-weight: 500;
	text-align: left;
	color: var(--wsa-text);
	background: var(--wsa-field-bg);
	border: 1.5px solid var(--wsa-border);
	border-radius: var(--wsa-radius);
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wsa-dd-toggle:hover {
	border-color: #c9cee0;
}

.wsa-dd.is-open .wsa-dd-toggle,
.wsa-dd-toggle:focus-visible {
	background: #fff;
	border-color: var(--wsa-accent);
	box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
	outline: none;
}

.wsa-dd-current {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	overflow: hidden;
}

.wsa-dd-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wsa-dd-toggle .wsa-dd-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 8px;
	color: var(--wsa-accent);
	background: rgba(108, 92, 231, 0.1);
}

.wsa-dd-toggle .wsa-dd-ico:empty {
	display: none;
}

.wsa-dd-arrow {
	flex: 0 0 auto;
	color: var(--wsa-muted);
	transition: transform 0.2s ease;
}

.wsa-dd.is-open .wsa-dd-arrow {
	transform: rotate(180deg);
	color: var(--wsa-accent);
}

.wsa-dd-list {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	max-height: 330px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #14161d;
	border: 1px solid #23262f;
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(10, 12, 20, 0.35);
	-webkit-overflow-scrolling: touch;
}

.wsa-dd-list::-webkit-scrollbar {
	width: 8px;
}

.wsa-dd-list::-webkit-scrollbar-thumb {
	background: #3a3f4e;
	border-radius: 8px;
}

.wsa-dd-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	margin: 2px 0;
	border-radius: 10px;
	color: #e9ebf2;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	list-style: none;
}

.wsa-dd-item .wsa-dd-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.07);
	color: #cfd3e0;
	transition: background 0.15s ease, color 0.15s ease;
}

.wsa-dd-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wsa-dd-check {
	opacity: 0;
	flex: 0 0 auto;
	color: #fff;
	transition: opacity 0.15s ease;
}

.wsa-dd-item:hover,
.wsa-dd-item.is-active {
	background: var(--wsa-accent);
	color: #fff;
}

.wsa-dd-item:hover .wsa-dd-ico,
.wsa-dd-item.is-active .wsa-dd-ico {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.wsa-dd-item[aria-selected="true"] .wsa-dd-check {
	opacity: 1;
}

/* ---------- Photo drop zone ---------- */
.wsa-dropzone {
	position: relative;
	display: block;
	padding: 26px 20px;
	text-align: center;
	background: var(--wsa-field-bg);
	border: 2px dashed #ccd2e4;
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.wsa-dropzone:hover,
.wsa-dropzone:focus-visible,
.wsa-dropzone.is-dragover {
	border-color: var(--wsa-accent);
	background: rgba(108, 92, 231, 0.05);
	outline: none;
}

.wsa-file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.wsa-dz-inner {
	pointer-events: none;
}

.wsa-dz-icon {
	display: inline-flex;
	color: var(--wsa-accent);
	margin-bottom: 8px;
}

.wsa-dz-text {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--wsa-text);
}

.wsa-dz-text strong {
	display: block;
	font-weight: 600;
}

.wsa-dz-text span {
	font-size: 14px;
	color: var(--wsa-muted);
}

.wsa-dz-hint {
	margin: 0;
	font-size: 12.5px;
	color: var(--wsa-muted);
}

/* Previews */
.wsa-previews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.wsa-preview {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #eef0f7;
	border: 1px solid var(--wsa-border);
	animation: wsa-pop 0.22s ease;
}

@keyframes wsa-pop {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.wsa-preview img {
	display: block;
	width: 100%;
	height: 88px;
	object-fit: cover;
	margin: 0;
}

.wsa-preview-meta {
	display: block;
	padding: 6px 8px;
	font-size: 11px;
	line-height: 1.35;
	color: var(--wsa-muted);
	background: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wsa-preview-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 15px;
	line-height: 1;
	color: #fff;
	background: rgba(17, 20, 30, 0.72);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wsa-preview-remove:hover {
	background: var(--wsa-error);
}

.wsa-files-summary {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--wsa-accent);
}

/* ---------- Checkbox ---------- */
.wsa-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wsa-muted);
	cursor: pointer;
}

.wsa-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.wsa-check-box {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.5px solid #c2c8db;
	border-radius: 5px;
	background: #fff;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wsa-check input:checked + .wsa-check-box {
	background: var(--wsa-accent);
	border-color: var(--wsa-accent);
}

.wsa-check input:checked + .wsa-check-box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2.5px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2.2px 2.2px 0;
	transform: rotate(45deg);
}

.wsa-check input:focus-visible + .wsa-check-box {
	box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.18);
}

/* Honeypot */
.wsa-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Submit button ---------- */
.wsa-actions {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--wsa-border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.wsa-wrap .wsa-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 210px;
	padding: 15px 30px;
	font-size: 16px;
	font-family: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--wsa-accent);
	border: 0;
	border-radius: var(--wsa-radius);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
	box-shadow: 0 8px 22px rgba(108, 92, 231, 0.28);
	text-decoration: none;
	line-height: 1.2;
}

.wsa-wrap .wsa-submit:hover {
	filter: brightness(0.94);
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(108, 92, 231, 0.34);
	color: #fff;
}

.wsa-wrap .wsa-submit:active {
	transform: translateY(0);
}

.wsa-wrap .wsa-submit:disabled {
	opacity: 0.72;
	cursor: not-allowed;
	transform: none;
}

.wsa-spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2.2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wsa-spin 0.7s linear infinite;
}

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

.wsa-form.is-loading .wsa-spinner {
	display: block;
}

.wsa-form.is-loading .wsa-submit-icon {
	display: none;
}

.wsa-privacy-note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 12.5px;
	color: var(--wsa-muted);
}

/* ---------- Messages ---------- */
.wsa-messages:empty {
	display: none;
}

.wsa-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 15px 17px;
	border-radius: 12px;
	font-size: 14.5px;
	line-height: 1.6;
	border: 1px solid transparent;
}

.wsa-alert-success {
	color: #0c6b3d;
	background: #e7f7ee;
	border-color: #b7e7cd;
}

.wsa-alert-error {
	color: #a51e1e;
	background: #fdeded;
	border-color: #f6c9c9;
}

.wsa-alert ul {
	margin: 8px 0 0 18px;
	padding: 0;
	font-size: 13.5px;
}

.wsa-alert-icon {
	flex: 0 0 auto;
	margin-top: 1px;
}

/* Success screen */
.wsa-success-screen {
	text-align: center;
	padding: 40px 22px;
	animation: wsa-fade 0.35s ease;
}

@keyframes wsa-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.wsa-success-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 20px;
	border-radius: 50%;
	color: #fff;
	background: var(--wsa-success);
	box-shadow: 0 10px 26px rgba(20, 150, 79, 0.28);
}

.wsa-success-screen h3 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: var(--wsa-text);
}

.wsa-success-screen p {
	margin: 0 auto;
	max-width: 480px;
	font-size: 15px;
	color: var(--wsa-muted);
}

.wsa-restart {
	margin-top: 22px;
	background: none;
	border: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--wsa-accent);
	cursor: pointer;
	text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.wsa-form {
		padding: 22px 18px;
		border-radius: 14px;
	}

	.wsa-grid {
		grid-template-columns: 1fr;
	}

	.wsa-form-title {
		font-size: 21px;
	}

	.wsa-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.wsa-wrap .wsa-submit {
		width: 100%;
	}

	.wsa-privacy-note {
		justify-content: center;
	}

	.wsa-previews {
		grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	}
}

/* Dark background themes */
@media (prefers-color-scheme: dark) {
	.wsa-wrap.wsa-auto-dark {
		--wsa-text: #f1f3fa;
		--wsa-muted: #a8afc4;
		--wsa-border: #2c3040;
		--wsa-bg: #191c25;
		--wsa-field-bg: #21252f;
	}
}

/* ---------- WhatsApp button on the success screen ---------- */
.wsa-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 18px 0 6px;
	padding: 14px 28px;
	border-radius: 999px;
	background: #25D366;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.wsa-wa-btn:hover,
.wsa-wa-btn:focus {
	background: #1ebe5b;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
	color: #fff !important;
}

.wsa-wa-btn svg {
	flex: 0 0 auto;
}

.wsa-wa-note {
	margin: 0 0 14px;
	font-size: 13px;
	opacity: .75;
}
