/**
 * Public-facing styles for Looped In plugin
 * Premium Professional Design
 */

.ct-looped-in-subscribe-form {
	background: #fff;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	margin: 30px 0;
	max-width: 800px;
}

.ct-looped-in-subscribe-form h2 {
	margin: 0 0 32px 0;
	font-size: 28px;
	font-weight: 700;
	color: #1f2937;
	letter-spacing: -0.5px;
}

.ct-looped-in-subscribe-form h3 {
	margin: 0 0 24px 0;
	font-size: 20px;
	font-weight: 700;
	color: #374151;
	border-bottom: 2px solid #f3f4f6;
	padding-bottom: 12px;
}

.ct-looped-in-subscribe-form-inner .ct-form-section {
	margin-bottom: 32px;
}

.ct-looped-in-subscribe-form-inner .ct-form-field {
	margin-bottom: 24px;
}

.ct-looped-in-subscribe-form-inner label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #374151;
	font-size: 15px;
}

.ct-looped-in-subscribe-form-inner .required {
	color: #dc3232;
	font-weight: 700;
}

.ct-looped-in-subscribe-form-inner .ct-form-input {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
	color: #1f2937;
	font-weight: 500;
	box-sizing: border-box;
}

.ct-looped-in-subscribe-form-inner .ct-form-input:focus {
	outline: none;
	border-color: #4A90E2;
	box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
	transform: translateY(-1px);
}

.ct-looped-in-subscribe-form-inner .ct-form-input::placeholder {
	color: #9ca3af;
}

/* Post Type Sections */
.ct-post-type-section {
	margin-bottom: 32px;
	padding: 24px;
	background: #f9fafb;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.ct-post-type-title {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	padding-bottom: 12px;
	border-bottom: 2px solid #e5e7eb;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ct-post-type-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #2C5F8D 100%);
	border-radius: 2px;
}

.ct-taxonomy-group {
	margin-bottom: 16px;
}

/* Category Checkboxes */
.ct-category-checkbox {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	margin-bottom: 8px;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	color: #374151;
}

.ct-category-checkbox:hover {
	border-color: #4A90E2;
	background: #f0f9ff;
	transform: translateX(4px);
}

.ct-category-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-right: 12px;
	cursor: pointer;
	accent-color: #4A90E2;
	border-radius: 4px;
	flex-shrink: 0;
}

.ct-category-checkbox input[type="checkbox"]:checked + span {
	color: #1f2937;
	font-weight: 600;
}

.ct-category-checkbox:has(input:checked) {
	border-color: #4A90E2;
	background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
	box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.ct-category-checkbox.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.ct-category-checkbox.disabled:hover {
	transform: none;
	border-color: #e5e7eb;
	background: #fff;
}

/* Subscribe All - Special Styling */
.ct-subscribe-all {
	background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
	border: 3px solid #f59e0b !important;
	border-radius: 12px !important;
	padding: 18px 20px !important;
	margin-top: 24px;
	position: relative;
	overflow: hidden;
}

.ct-subscribe-all::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.ct-subscribe-all:hover {
	border-color: #d97706 !important;
	background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
	transform: translateY(-2px);
}

.ct-subscribe-all input[type="checkbox"] {
	width: 24px;
	height: 24px;
	accent-color: #f59e0b;
}

.ct-subscribe-all span {
	font-size: 16px;
	color: #92400e;
}

.ct-subscribe-all:has(input:checked) {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border-color: #d97706 !important;
	box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.ct-subscribe-all:has(input:checked) span {
	color: #78350f;
}

/* Subscribe Button */
.ct-subscribe-button {
	background: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #2C5F8D 100%);
	color: #ffffff;
	padding: 16px 40px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
	width: 100%;
	max-width: 300px;
}

.ct-subscribe-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.ct-subscribe-button:active {
	transform: translateY(0);
}

.ct-subscribe-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Form Messages */
.ct-form-message {
	margin-top: 24px;
	padding: 16px 20px;
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.6;
}

.ct-form-message.success {
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #065f46;
	border: 2px solid #10b981;
}

.ct-form-message.success a {
	color: #047857;
	text-decoration: underline;
	font-weight: 600;
	transition: color 0.2s;
}

.ct-form-message.success a:hover {
	color: #065f46;
}

.ct-form-message.error {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #991b1b;
	border: 2px solid #ef4444;
}

/* No Options Message */
.ct-no-options {
	padding: 20px;
	background: #fef3c7;
	border: 2px solid #fbbf24;
	border-radius: 10px;
	color: #92400e;
	font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
	.ct-looped-in-subscribe-form {
		padding: 24px;
		margin: 20px 0;
	}
	
	.ct-looped-in-subscribe-form h2 {
		font-size: 24px;
	}
	
	.ct-subscribe-button {
		width: 100%;
		max-width: 100%;
	}
}

