/* FT Download Plugin CSS */

#ft-download-form-container {
	max-width: 600px;
	margin: 20px auto;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #f9f9f9;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"] {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box;
}

.form-group input[type="checkbox"] {
	margin-right: 8px;
}

.required-indicator {
	color: #dc3232;
	font-weight: 700;
}

.field-description {
	font-size: 12px;
	color: #666;
	margin: 5px 0 0 0;
	font-style: italic;
}

#multiple-files-section {
	background-color: #f0f0f0;
	padding: 15px;
	border-radius: 3px;
	margin-top: 10px;
}

#add-serial-btn,
#submit-btn {
	background-color: #0073aa;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 14px;
}

#add-serial-btn:hover,
#submit-btn:hover {
	background-color: #005a87;
}

#submit-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

#serial-list {
	margin-top: 15px;
}

#serial-list h4 {
	margin-bottom: 10px;
}

#serial-numbers-list {
	list-style: none;
	padding: 0;
}

#serial-numbers-list li {
	background-color: #fff;
	padding: 8px;
	margin-bottom: 5px;
	border-radius: 3px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.remove-serial {
	background-color: #dc3232;
	color: #fff;
	border: none;
	padding: 4px 8px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
}

.remove-serial:hover {
	background-color: #a00;
}

.error-message {
	background-color: #ffebee;
	color: #c62828;
	padding: 10px;
	border-radius: 3px;
	border-left: 4px solid #c62828;
	margin-top: 15px;
}

.success-message {
	background-color: #e8f5e8;
	color: #2e7d32;
	padding: 10px;
	border-radius: 3px;
	border-left: 4px solid #2e7d32;
	margin-top: 15px;
}

.g-recaptcha {
	margin: 15px 0;
}

/* Email validation styles */
.invalid-field {
	border-color: #dc3232 !important;
	box-shadow: 0 0 5px rgba(220, 50, 50, 0.3);
}

.validation-message {
	font-size: 12px;
	margin-top: 5px;
	padding: 5px;
	border-radius: 3px;
}

.error-text {
	color: #c62828;
	background-color: #ffebee;
	border-left: 3px solid #c62828;
}

.success-text {
	color: #2e7d32;
	background-color: #e8f5e8;
	border-left: 3px solid #2e7d32;
}

.info-text {
	color: #0c5460;
	background-color: #d1ecf1;
	border-left: 3px solid #bee5eb;
}

/* Valid field styling */
.valid-field {
	border-color: #2e7d32 !important;
	box-shadow: 0 0 5px rgba(46, 125, 50, 0.3);
}

/* Download links display styles */
.download-links-container {
	margin-top: 20px;
	padding: 20px;
	background-color: #f8f9fa;
	border-radius: 5px;
	border: 1px solid #e9ecef;
}

.download-links-container h3 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #2e7d32;
	font-size: 18px;
}

.download-links-list {
	margin-bottom: 20px;
}

.download-link-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	margin-bottom: 10px;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: all 0.3s ease;
	gap: 10px;
}

.download-link-item:hover {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border-color: #0073aa;
}

.download-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #0073aa;
	font-weight: 500;
	flex-grow: 1;
}

.download-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.download-icon {
	font-size: 20px;
	margin-right: 10px;
}

.download-filename {
	font-size: 14px;
}

.download-btn {
	background-color: #0073aa;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	transition: background-color 0.3s ease;
}

.download-btn:hover {
	background-color: #005a87;
}

.copy-link-btn {
	background-color: #6c757d;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	transition: background-color 0.3s ease;
}

.copy-link-btn:hover {
	background-color: #5a6268;
}

.copy-link-btn.copied {
	background-color: #28a745;
}

.download-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	padding-top: 15px;
	border-top: 1px solid #e9ecef;
}

#clear-results-btn {
	background-color: #6c757d;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.3s ease;
}

#clear-results-btn:hover {
	background-color: #5a6268;
}

/* Responsive design for download links */
@media (max-width: 600px) {

	.download-link-item {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.download-link {
		justify-content: center;
		margin-bottom: 10px;
	}

	.download-btn,
	.copy-link-btn {
		width: 100%;
		margin-bottom: 5px;
	}

	.download-actions {
		flex-direction: column;
	}

	#clear-results-btn {
		width: 100%;
	}
}

/* re
CAPTCHA disabled notice */
.recaptcha-disabled-notice {
	background-color: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 4px;
	padding: 12px;
	margin: 10px 0;
}

.recaptcha-disabled-notice p {
	margin: 0;
	color: #856404;
	font-size: 14px;
}

.recaptcha-disabled-notice strong {
	color: #664d03;
}
