/* Veritone One Modal Styles */
.v1-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.v1-modal.v1-modal-open {
	opacity: 1;
	visibility: visible;
}

.v1-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.v1-modal-container {
	position: relative;
	z-index: 1;
	max-width: 45rem;
	width: 90vw;
	max-height: 90vh;
	margin: 0 auto;
	transform: translateY(100px);
	transition: transform 0.3s ease;
}

.v1-modal-open .v1-modal-container {
	transform: translateY(0);
}

.v1-modal-content {
	background: white;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	position: relative;
	overflow: hidden;
}

.v1-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 5px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.v1-modal-close:hover {
	background: rgba(0, 0, 0, 0.1);
}

.v1-modal-close svg {
	width: 20px;
	height: 20px;
	color: #666;
}

.v1-modal-body {
	padding: 2rem 1.5rem;
	max-height: 80vh;
	overflow-y: auto;
}

.v1-modal-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.v1-modal-header h2 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	line-height: 1.2;
	color: #333;
	font-weight: 600;
}

.v1-modal-header h3 {
	font-size: 1.1rem;
	color: var(--color-green, #00B894);
	margin-bottom: 1rem;
	font-weight: normal;
}

.v1-modal-header p {
	font-size: 0.9rem;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	color: #666;
}

.v1-modal-header p.v1-modal-cta {
	color: var(--color-green, #00B894);
	font-weight: bold;
}

.v1-modal-form-container {
	position: relative;
}

.v1-form-group {
	position: relative;
	margin-bottom: 1rem;
}

.v1-form-group input,
.v1-form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.9rem;
	background: #333;
	color: white;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.v1-form-group input:focus,
.v1-form-group textarea:focus {
	outline: none;
	border-color: var(--color-green, #00B894);
	box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.1);
}

.v1-form-group input::placeholder,
.v1-form-group textarea::placeholder {
	color: transparent;
}

.v1-form-group input:focus+label,
.v1-form-group input:not(:placeholder-shown)+label,
.v1-form-group textarea:focus+label,
.v1-form-group textarea:not(:placeholder-shown)+label {
	transform: translateY(-24px) scale(0.8);
	color: var(--color-green, #00B894);
}

.v1-form-group label {
	background-color: #1f2937;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	position: absolute;
	left: 16px;
	top: 12px;
	font-size: 0.9rem;
	color: #999;
	pointer-events: none;
	transition: all 0.2s ease;
	transform-origin: left center;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.v1-form-group textarea {
	resize: vertical;
	min-height: 60px;
}

.v1-form-group textarea+label {
	top: 12px;
}

.v1-form-group .v1-error-message {
	display: block;
	color: #e74c3c;
	font-size: 0.8rem;
	margin-top: 4px;
	min-height: 1rem;
}

.v1-form-group .v1-error-message:empty {
	display: none;
}

.v1-form-actions {
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
	margin-top: 1rem;
	width: 100%;
}

.v1-form-actions button {
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
}

.v1-form-actions button#v1-dont-show-again {
	background: transparent;
	border: 1px solid #ccc;
	color: #666;
	font-size: 0.75rem;
	padding: 0.5rem 1rem;
}

.v1-form-actions button#v1-dont-show-again:hover {
	background: #f5f5f5;
	border-color: #999;
}

.v1-form-actions button#v1-submit-btn {
	background: var(--color-green, #00B894);
	border: none;
	color: white;
	min-width: 120px;
}

.v1-form-actions button#v1-submit-btn:hover:not(:disabled) {
	background: #00a085;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.v1-form-actions button#v1-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.v1-form-actions button#v1-submit-btn.loading {
	position: relative;
	color: transparent;
}

.v1-form-actions button#v1-submit-btn.loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	margin: auto;
	border: 2px solid white;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

.v1-thank-you-content {
	text-align: center;
	padding: 2rem 1rem;
}

.v1-thank-you-content h4 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--color-green, #00B894);
}

.v1-thank-you-content p {
	font-size: 0.9rem;
	color: #666;
	line-height: 1.4;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.v1-modal-container {
		width: 95vw;
	}

	.v1-modal-body {
		padding: 1.5rem 1rem;
	}

	.v1-modal-header h2 {
		font-size: 1.25rem;
	}

	.v1-modal-header h3 {
		font-size: 1rem;
	}

	.v1-modal-header p {
		font-size: 0.85rem;
	}

	.v1-form-actions {
		flex-direction: column-reverse;
		gap: 0.75rem;
	}

	.v1-form-actions button {
		width: 100%;
	}
}

/* Checkbox Styles */
.v1-checkbox-group {
	margin-bottom: 1.5rem;
}

.v1-checkbox-group label {
	background: #fff;
	color: #1f2937;
}

.v1-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #333;
	padding: 0;
	position: relative;
}

.v1-checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.v1-checkbox-custom {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid #ddd;
	border-radius: 3px;
	background: white;
	position: relative;
	flex-shrink: 0;
	margin-top: 2px;
	transition: all 0.2s ease;
}

.v1-checkbox-label:hover .v1-checkbox-custom {
	border-color: var(--color-green, #00B894);
}

.v1-checkbox-label input[type="checkbox"]:checked+.v1-checkbox-custom {
	background: var(--color-green, #00B894);
	border-color: var(--color-green, #00B894);
}

.v1-checkbox-label input[type="checkbox"]:checked+.v1-checkbox-custom::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.v1-checkbox-label input[type="checkbox"]:focus+.v1-checkbox-custom {
	box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}