/**
 * Feedback form styles for Products Sync for WooCommerce plugin.
 * Updated to match new two-modal structure without emojis.
 */

/* Modal Overlay */
.mowcps-feedback-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999999;
	animation: fadeIn 0.3s ease-out;
}

.mowcps-feedback-overlay.mowcps-active {
	display: flex;
}

/* Modal Container */
.mowcps-feedback-modal {
	background: white;
	border-radius: 8px;
	width: 90%;
	max-width:700px;
	position: relative;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	animation: slideIn 0.3s ease-out;
}

/* Modal Content */
.mowcps-feedback-modal-content {
	padding: 30px;
	text-align: center;
}

.mowcps-success-content {
	text-align: center;
	padding: 30px !important; /* Same padding as second page */
}

.mowcps-success-content h2 {
	margin: 10px 0 15px 0 !important;
	font-size: 20px !important;
	color: #333;
}

/* Close Button */
.mowcps-feedback-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 24px;
	font-weight: bold;
	color: #999;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	border-radius: 50%;
	background: transparent;
	z-index: 1001;
}

.mowcps-feedback-close:hover {
	color: #333;
	background-color: rgba(0, 0, 0, 0.1);
	transform: scale(1.1);
}

/* Typography */
.mowcps-feedback-modal-content h2 {
	margin: 0 0 15px 0;
	font-size: 24px;
	font-weight: 600;
	color: #333;
}

.mowcps-feedback-modal-content p {
	margin: 0 0 25px 0;
	color: #666;
	font-size: 16px;
	line-height: 1.5;
}

/* Form Elements */
.mowcps-form-group {
	margin-bottom: 20px;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}

.mowcps-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

/* Input and textarea styling */
select, textarea, .mowcps-form-group select, .mowcps-form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background-color: #fafbfc;
	transition: all 0.2s ease;
	resize: vertical;
	box-sizing: border-box;
	margin: 0;
	display: block;
}

select:focus, textarea:focus, .mowcps-form-group select:focus, .mowcps-form-group textarea:focus {
	outline: none;
	border-color: #4a90e2;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
	padding-right: 40px;
}

/* Ensure dropdown in feedback form has exact same width as textarea */
#mowcps-feedback-deactivation-reason {
	width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	max-width: 50rem;
}

textarea {
	min-height: 100px;
	font-family: inherit;
}

/* Ensure textarea in feedback form has exact same width as dropdown */
textarea[name="mo-wcps-feedback-reason"] {
	width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

/* Ensure modal form elements are perfectly aligned */
.mowcps-feedback-modal-content form {
	width: 100%;
}

.mowcps-feedback-modal-content .mowcps-form-group {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

textarea::placeholder {
	color: #999;
}

/* Guide Input Container */
.mowcps-guide-input-container {
	margin-top: 15px;
}

.mowcps-guide-input-container label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

/* Helpful Resources - Blue Theme */
.mowcps-helpful-resources {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 16px 0;
    box-shadow: none;
}

/* Reason-specific Input Boxes */
.mowcps-reason-input-box {
    margin: 15px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.mowcps-reason-input-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
	text-align: left;
}

.mowcps-reason-input-box textarea {
    /* width: 106%; */
	/* margin-left: -17px; */
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    resize: vertical;
}

.mowcps-reason-input-box textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Guides and Videos Container */
.mowcps-guides-container {
    margin: 15px 0;
    /* padding: 15px; */
    background: #f9f9f9;
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
}

/* Guides and Videos Sections */
.mowcps-guides-section,
.mowcps-video-section {
    margin: 10px 0;
    padding: 0;
    background: transparent;
}

.mowcps-guides-section h4,
.mowcps-video-section h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.mowcps-guides-section ul,
.mowcps-video-section ul {
    margin: 0;
    padding-left: 20px;
}

.mowcps-guides-section li,
.mowcps-video-section li {
    margin-bottom: 5px;
}

.mowcps-guides-section a,
.mowcps-video-section a {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
}

.mowcps-guides-section a:hover,
.mowcps-video-section a:hover {
    text-decoration: underline;
}

/* Expert Messages and Tips */
.mowcps-expert-message,
.mowcps-performance-message {
    margin: 10px 0 0 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #856404;
}

.mowcps-bulb-icon,
.mowcps-tip-icon {
    margin-right: 8px;
    font-size: 16px;
}

.mowcps-resources-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: #1565c0;
    font-size: 16px;
}

.mowcps-resources-icon {
    margin-right: 8px;
    font-size: 18px;
}

.mowcps-resources-title {
    font-weight: 600;
}

.mowcps-resources-content {
	background: rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	/* padding: 20px; */
	/* margin-bottom: 16px; */
	gap: 25px;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 768px) {
    .mowcps-resources-content {
        flex-direction: column;
    }
}

.mowcps-resources-section {
	margin-bottom: 20px;
	flex: 1;
	min-width: 280px;
	width: 100%;
}

.mowcps-resources-section:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .mowcps-resources-section {
        flex: none;
        min-width: auto;
    }
}

.mowcps-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1565c0;
    font-size: 14px;
}

.mowcps-section-icon {
    margin-right: 6px;
    font-size: 16px;
}

.mowcps-resources-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mowcps-resources-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    color: #424242;
    font-size: 14px;
    line-height: 1.5;
}

.mowcps-resources-list li::before {
    content: "•";
    color: #2196f3;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.mowcps-resources-list li a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.mowcps-resources-list li a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.mowcps-resources-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    color: #1565c0;
    font-size: 14px;
    font-weight: 500;
}

.mowcps-lightbulb {
    margin-right: 8px;
    font-size: 16px;
}

/* Custom Input Containers */
.mowcps-custom-input-container {
    margin-bottom: 20px;
}

.mowcps-custom-input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1565c0;
    font-size: 14px;
}

.mowcps-custom-input-container textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #81d4fa;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.mowcps-custom-input-container textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Expert Note */
.mowcps-expert-note {
    display: flex;
    align-items: center;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #1565c0;
}

.mowcps-bulb-icon {
    margin-right: 8px;
    font-size: 16px;
}

.mowcps-expert-note a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.mowcps-expert-note a:hover {
    text-decoration: underline;
}

/* Performance Tip */
.mowcps-performance-tip {
    text-align: center;
    padding: 20px;
}

.mowcps-tip-text {
    font-size: 16px;
    color: #1565c0;
    font-weight: 500;
    margin: 10px 0;
    padding: 15px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

/* Checkbox Container */
.mowcps-checkbox-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
    border: 1px solid #e3f2fd;
}

.mowcps-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #424242;
    line-height: 1.5;
    font-weight: 500;
}

.mowcps-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.mowcps-guide-content strong {
	color: #1e40af;
	font-weight: 600;
}

.mowcps-guide-content .guide-title {
	font-size: 16px;
	font-weight: 600;
	color: #1e40af;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mowcps-guide-content .guide-description {
	margin-bottom: 12px;
	color: #2563eb;
}

.mowcps-guide-content .guide-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.mowcps-guide-content .guide-btn {
	background: #3b82f6;
	color: white;
	padding: 6px 12px;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.mowcps-guide-content .guide-btn:hover {
	background: #2563eb;
}

.mowcps-guide-content .video-link {
	background: #dc2626;
}

.mowcps-guide-content .video-link:hover {
	background: #b91c1c;
}

/* Expert Contact Info */
.mowcps-expert-contact {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
	margin: 15px 0;
	text-align: center;
}

.mowcps-expert-contact p {
	margin: 0;
	font-size: 14px;
	color: #475569;
}

.mowcps-expert-contact a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 500;
}

.mowcps-expert-contact a:hover {
	text-decoration: underline;
}

/* Button Styling */
.mowcps-modal-buttons {
	display: flex;
	gap: 12px;
	margin-top: 25px;
	justify-content: center;
	flex-wrap: wrap;
}

.mowcps-vertical-buttons {
	flex-direction: column;
}

.mowcps-buttons-horizontal {
	justify-content: space-between;
	align-items: center;
}

.mowcps-modal-buttons button {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 120px;
}

/* Send Query Button */
.mowcps-send-query-btn {
	background: #8a8c95;
	color: white;
}

.mowcps-send-query-btn:hover {
	background: #6c6e78;
}

/* Continue with deactivating button */
.mowcps-continue-deactivating-btn {
	background: transparent;
	color: #666;
	border: 2px solid transparent !important;
	text-decoration: none;
	font-size: 10px;
	font-weight: normal;
	cursor: pointer;
	transition: color 0.3s ease;
}

.mowcps-continue-deactivating-btn:hover {
	color: #333;
	text-decoration: none;
}

/* Skip & Deactivate button */
.mowcps-skip-deactivate-btn {
	background: #f56b77;
	color: white;
	border: 2px solid #f56b77 !important;
}

.mowcps-skip-deactivate-btn:hover {
	background: #e74c3c;
	border-color: #e74c3c !important;
}

/* Skip Link Style */
.mowcps-skip-link {
	color: #007cba;
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
	transition: color 0.3s ease;
	background: none;
	border: none;
	padding: 0;
}

.mowcps-skip-link:hover {
	color: #005a87;
	text-decoration: none;
}

/* Small Button Style */
.mowcps-btn-small {
	flex: none;
	padding: 8px 12px;
	font-size: 12px;
	min-width: auto;
	font-weight: normal;
}

/* Submit button */
.mowcps-submit-btn {
	background: linear-gradient(135deg, #007cba, #005a87);
	color: white;
	border: 2px solid #007cba !important;
}

.mowcps-submit-btn:hover {
	background: linear-gradient(135deg, #005a87, #003d5c);
	border-color: #005a87 !important;
}

/* OK button */
.mowcps-ok-btn {
	background: #28a745;
	color: white;
	margin-top: 20px;
}

.mowcps-ok-btn:hover {
	background: #218838;
}

/* Success icon with circle */
.mowcps-success-icon {
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
}

.mowcps-success-circle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #28a745;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.mowcps-success-tick {
	color: white;
	font-size: 30px;
	font-weight: bold;
}

/* Success State Styling */
.mowcps-success-state {
    padding: 40px 20px;
    color: #333;
    text-align: center;
}

.mowcps-success-state h3 {
    color: #28a745;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.mowcps-success-state p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Loading State */
.mowcps-loading {
	pointer-events: none;
	opacity: 0.7;
}

.mowcps-loading button {
	position: relative;
}

.mowcps-loading button:after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	margin: auto;
	border: 2px solid transparent;
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

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

/* Responsive Design */
@media (max-width: 600px) {
	.mowcps-feedback-modal {
		width: 95%;
		margin: 20px;
		max-width: 500px;
	}
}

@media (max-width: 500px) {
	.mowcps-feedback-modal {
		width: 95%;
		margin: 20px;
		max-width: 400px;
	}
	
	.mowcps-feedback-modal-content {
		padding: 20px;
	}
	
	.mowcps-modal-buttons {
		flex-direction: column;
	}
	
	.mowcps-modal-buttons button {
		width: 100%;
		margin-bottom: 10px;
	}
	
	.mowcps-continue-deactivating-btn {
		order: 1;
	}
	
	.mowcps-send-query-btn {
		order: 2;
	}
	
	.mowcps-feedback-modal-content h2 {
		font-size: 20px;
	}
}

/* Rectangle Text Box - Replaces Trial, Contact Us, v1.1.0 section */
.mowcps-reach-out-section {
	margin: 25px 0;
	padding: 0 20px;
}

.mowcps-reach-out-rectangle {
	background: linear-gradient(135deg, #007cba, #0085c7);
	border: 2px solid #005a87;
	border-radius: 8px;
	color: white;
	cursor: pointer;
	padding: 18px 25px;
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(0, 124, 186, 0.3);
	text-align: center;
	display: block;
	font-weight: 600;
	font-size: 16px;
	position: relative;
}

.mowcps-reach-out-rectangle:hover {
	background: linear-gradient(135deg, #005a87, #004a73);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 124, 186, 0.4);
}

.mowcps-reach-out-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.mowcps-phone-emoji {
	font-size: 22px;
	animation: ring 3s infinite;
	filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.mowcps-reach-out-expert-text {
	font-weight: 700;
	letter-spacing: 0.3px;
	font-size: 16px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes ring {
	0%, 20%, 50%, 80%, 100% {
		transform: rotate(0deg);
	}
	10% {
		transform: rotate(-10deg);
	}
	30% {
		transform: rotate(10deg);
	}
	60% {
		transform: rotate(-5deg);
	}
	90% {
		transform: rotate(5deg);
	}
}

/* Responsive design */
@media (max-width: 768px) {
	.mowcps-reach-out-rectangle {
		margin: 0 10px;
		padding: 14px 20px;
		max-width: 90%;
	}
	
	.mowcps-phone-emoji {
		font-size: 20px;
	}
	
	.mowcps-reach-out-expert-text {
		font-size: 14px;
	}
	
	.mowcps-reach-out-content {
		gap: 10px;
	}
}

/* Text box styling */
.mowcps-reach-out-rectangle::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	bottom: -1px;
	background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
	border-radius: 8px;
	z-index: -1;
}

/* Contact Us Modal Styling */
.mowcps-modal {
	display: none;
	position: fixed;
	z-index: 999999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.mowcps-modal.active {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.mowcps-modal .mowcps-modal-content {
	background-color: #fefefe;
	margin: auto;
	padding: 30px;
	border: none;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Modal States */
.mowcps-loading-state,
.mowcps-success-state,
.mowcps-error-state,
.mowcps-form-state {
    text-align: center;
    width: 100%;
}

/* Loading State */
.mowcps-loading-state {
    padding: 40px 20px;
}

.mowcps-loading-spinner {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
}

.mowcps-loading-text {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Success State */
.mowcps-success-state {
    padding: 40px 20px;
    color: #333;
}

.mowcps-success-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    animation: successPulse 0.6s ease-out;
}

.mowcps-success-state h3 {
    color: #4CAF50;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.mowcps-success-state p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: #666;
}

.mowcps-auto-close-text {
    font-size: 14px !important;
    color: #999 !important;
    font-style: italic;
}

.mowcps-auto-close-text span {
    font-weight: bold;
    color: #007cba;
}

/* Error State */
.mowcps-error-state {
    padding: 40px 20px;
    color: #333;
}

.mowcps-error-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    animation: errorShake 0.5s ease-out;
}

.mowcps-error-state h3 {
    color: #f44336;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.mowcps-error-state p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: #666;
}

.mowcps-retry-btn {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mowcps-retry-btn:hover {
    background: linear-gradient(135deg, #005a87, #003d5c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Form State */
.mowcps-form-state {
    text-align: left;
}

.mowcps-form-state h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.mowcps-form-state > p {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin: 0 0 25px 0;
}

/* Enhanced Form Styling */
.mowcps-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.mowcps-form-group input[type="email"]:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.mowcps-send-query-btn {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.mowcps-send-query-btn:hover {
    background: linear-gradient(135deg, #005a87, #003d5c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

.mowcps-send-query-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error State Styling */
.mowcps-error-state {
    padding: 40px 20px;
    color: #333;
}

.mowcps-error-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mowcps-error-state h3 {
    color: #f44336;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.mowcps-error-state p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: #666;
}

/* State Transitions */
.mowcps-state-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.mowcps-state-fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .mowcps-feedback-modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .mowcps-success-state,
    .mowcps-error-state,
    .mowcps-loading-state {
        padding: 30px 15px;
    }
}

.mowcps-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	right: 15px;
	top: 10px;
}

.mowcps-close:hover,
.mowcps-close:focus {
	color: #000;
	text-decoration: none;
}

.mowcps-custom-field.two {
	position: relative;
	margin-bottom: 25px;
}

.mowcps-custom-field.two input {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.mowcps-custom-field.two input:focus {
	outline: none;
	border-color: #007cba;
}

.mowcps-custom-field.two .placeholder {
	position: absolute;
	left: 12px;
	top: 12px;
	font-size: 14px;
	color: #999;
	pointer-events: none;
	transition: all 0.3s ease;
}

.mowcps-custom-field.two input:focus + .placeholder,
.mowcps-custom-field.two input:not(:placeholder-shown) + .placeholder {
	top: -8px;
	left: 8px;
	font-size: 12px;
	background: #fff;
	padding: 0 4px;
	color: #007cba;
}

.mowcps-textarea {
	width: 100%;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	min-height: 120px;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.mowcps-textarea:focus {
	outline: none;
	border-color: #007cba;
}

.mowcps-button {
	background: linear-gradient(135deg, #007cba, #005a87);
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.mowcps-button:hover {
	background: linear-gradient(135deg, #005a87, #004a73);
	transform: translateY(-1px);
}

/* WordPress Admin Compatibility */
body.wp-admin .mowcps-feedback-overlay {
	position: fixed !important;
	z-index: 999999 !important;
} 