/**
 * Frontend Styles
 *
 * @package    IdeaForge_Sync
 * @subpackage IdeaForge_Sync/frontend/css
 */

/* ==========================================================================
   Calendar Styles
   ========================================================================== */

.ideaforge-sync-calendar-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.ideaforge-sync-calendar-header {
	margin-bottom: 30px;
	text-align: center;
}

.ideaforge-sync-calendar-header .property-name {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 15px 0;
	color: #333;
}

/* Calendar Legend */
.calendar-legend {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.legend-color {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	display: inline-block;
	border: 1px solid #ddd;
}

.legend-available {
	background-color: #e8f5e9;
}

.legend-booked {
	background-color: #ffebee;
}

.legend-today {
	background-color: #fff3e0;
	border-color: #ff9800;
}

/* Calendar Grid */
.ideaforge-sync-calendars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.ideaforge-sync-calendar-month {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.month-header h4 {
	text-align: center;
	margin: 0 0 15px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.ideaforge-sync-calendar-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.ideaforge-sync-calendar-grid thead th {
	padding: 10px 5px;
	text-align: center;
	font-weight: 600;
	font-size: 12px;
	color: #666;
	border-bottom: 2px solid #e0e0e0;
}

.ideaforge-sync-calendar-grid td {
	padding: 8px;
	text-align: center;
	border: 1px solid #f0f0f0;
	vertical-align: top;
	height: 60px;
	position: relative;
}

.ideaforge-sync-calendar-grid td.empty-cell {
	background: #fafafa;
	border: none;
}

.calendar-day {
	cursor: pointer;
	transition: all 0.2s ease;
}

.calendar-day:hover:not(.past):not(.booked) {
	transform: scale(1.05);
	z-index: 1;
}

.calendar-day.available {
	background-color: #e8f5e9;
}

.calendar-day.available:hover {
	background-color: #c8e6c9;
}

.calendar-day.booked {
	background-color: #ffebee;
	cursor: not-allowed;
}

/* Explicitly prevent hover transform on booked and past dates */
.calendar-day.booked:hover,
.calendar-day.past:hover {
	transform: none !important;
	box-shadow: none !important;
	z-index: auto !important;
}

.calendar-day.past {
	background-color: #f5f5f5;
	color: #bbb;
	cursor: not-allowed;
}

.calendar-day.today {
	background-color: #fff3e0;
	border: 2px solid #ff9800;
}

.day-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.day-number {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.day-price {
	font-size: 11px;
	color: #4caf50;
	font-weight: 600;
	margin-top: 2px;
}

.calendar-day.booked .day-price {
	display: none;
}

/* ==========================================================================
   Booking Form Styles
   ========================================================================== */

.ideaforge-sync-booking-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.booking-form-header {
	text-align: center;
	margin-bottom: 30px;
}

.booking-form-header h3 {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #333;
}

.booking-form-header .property-name {
	font-size: 18px;
	color: #666;
	margin: 0;
}

/* Form Sections */
.form-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-section legend {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	padding: 0 10px;
}

.form-row {
	margin-bottom: 20px;
}

.form-row:last-child {
	margin-bottom: 0;
}

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

.form-row label .required {
	color: #d32f2f;
	margin-left: 2px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

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

.form-row textarea {
	resize: vertical;
	min-height: 100px;
}

/* Booking Summary */
.booking-summary {
	background: #f5f5f5;
	padding: 15px;
	border-radius: 4px;
	margin-top: 15px;
}

.booking-summary p {
	margin: 5px 0;
	font-size: 14px;
	color: #333;
}

.booking-summary .total-price {
	font-size: 18px;
	color: #4caf50;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
}

/* Payment Methods */
.payment-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.payment-method-option {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.payment-method-option:hover {
	border-color: #2196f3;
	background-color: #f5f5f5;
}

.payment-method-option input[type="radio"] {
	margin-right: 10px;
}

/* Checkbox Labels */
.checkbox-label {
	display: flex;
	align-items: center;
	font-size: 14px;
	cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
	margin-right: 10px;
}

/* Form Actions */
.form-actions {
	text-align: center;
	margin-top: 30px;
}

.ideaforge-sync-submit-btn {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
	border: none;
	padding: 15px 40px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ideaforge-sync-submit-btn:hover {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	transform: translateY(-2px);
}

.ideaforge-sync-submit-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form Messages */
.form-messages {
	margin-top: 20px;
	padding: 15px;
	border-radius: 4px;
	font-size: 14px;
}

.form-messages.success {
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #81c784;
}

.form-messages.error {
	background-color: #ffebee;
	color: #c62828;
	border: 1px solid #e57373;
}

/* ==========================================================================
   Property Info Styles
   ========================================================================== */

.ideaforge-sync-property-info {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

.ideaforge-sync-property-info .property-name h3 {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #333;
}

.ideaforge-sync-property-info .property-location,
.ideaforge-sync-property-info .property-nightly-rate,
.ideaforge-sync-property-info .property-max-guests {
	margin-bottom: 15px;
}

.ideaforge-sync-property-info .property-description {
	line-height: 1.6;
	color: #666;
}

/* ==========================================================================
   Notices and Alerts
   ========================================================================== */

.ideaforge-sync-error,
.ideaforge-sync-info-notice,
.ideaforge-sync-upgrade-notice {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.ideaforge-sync-error {
	background-color: #ffebee;
	color: #c62828;
	border: 1px solid #e57373;
}

.ideaforge-sync-info-notice {
	background-color: #e3f2fd;
	color: #1565c0;
	border: 1px solid #64b5f6;
}

.ideaforge-sync-upgrade-notice {
	background-color: #fff3e0;
	color: #e65100;
	border: 1px solid #ffb74d;
}

.ideaforge-sync-upgrade-notice a {
	color: #e65100;
	font-weight: 600;
	text-decoration: underline;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.ideaforge-sync-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.ideaforge-sync-badge-airbnb {
	background-color: #ff5a5f;
	color: #fff;
}

.ideaforge-sync-badge-vrbo {
	background-color: #0073bb;
	color: #fff;
}

.ideaforge-sync-badge-website {
	background-color: #9c27b0;
	color: #fff;
}

.ideaforge-sync-badge-manual {
	background-color: #757575;
	color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
	.ideaforge-sync-calendars {
		grid-template-columns: 1fr;
	}

	.ideaforge-sync-calendar-grid td {
		height: 50px;
		padding: 5px;
	}

	.day-number {
		font-size: 14px;
	}

	.day-price {
		font-size: 10px;
	}

	.calendar-legend {
		gap: 10px;
	}

	.legend-item {
		font-size: 12px;
	}

	.booking-form-header h3 {
		font-size: 24px;
	}

	.form-section {
		padding: 15px;
	}

	.ideaforge-sync-submit-btn {
		width: 100%;
		padding: 12px;
	}
}

@media screen and (max-width: 480px) {
	.ideaforge-sync-calendar-wrapper,
	.ideaforge-sync-booking-form-wrapper,
	.ideaforge-sync-property-info {
		padding: 10px;
	}

	.ideaforge-sync-calendar-grid thead th {
		font-size: 10px;
		padding: 8px 2px;
	}

	.ideaforge-sync-calendar-grid td {
		height: 44px; /* Minimum touch target size for accessibility */
		padding: 4px;
		min-width: 44px; /* Ensure square touch targets */
	}

	.calendar-day {
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.day-number {
		font-size: 13px;
	}

	.day-price {
		display: none; /* Hide prices on very small screens for clarity */
	}

	/* Improve calendar header on mobile */
	.ideaforge-sync-calendar-header .property-name {
		font-size: 22px;
	}

	.month-header h4 {
		font-size: 18px;
	}
}

/* ==========================================================================
   Booking Confirmation Styles
   ========================================================================== */

.ideaforge-sync-confirmation-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Success Header */
.confirmation-header {
	text-align: center;
	margin-bottom: 40px;
}

.success-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.success-icon svg {
	animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
	0% {
		opacity: 0;
		transform: scale(0);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.confirmation-title {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #2e7d32;
}

.confirmation-subtitle {
	font-size: 18px;
	color: #666;
	margin: 0;
}

/* Confirmation Number */
.confirmation-number {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	margin-bottom: 30px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.confirmation-number .label {
	font-size: 14px;
	opacity: 0.9;
	display: block;
	margin-bottom: 5px;
}

.confirmation-number .number {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 1px;
}

/* Status Messages */
.confirmation-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.confirmation-section h2 {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #333;
}

.status-message {
	display: flex;
	gap: 15px;
	padding: 20px;
	border-radius: 8px;
	align-items: flex-start;
	line-height: 1.6;
}

.status-message svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.status-message strong {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
}

.status-message p {
	margin: 0;
	color: #666;
}

.status-pending-approval {
	background: #fff3e0;
	border: 2px solid #ff9800;
}

.status-payment-pending {
	background: #e3f2fd;
	border: 2px solid #2196f3;
}

.status-confirmed {
	background: #e8f5e9;
	border: 2px solid #4caf50;
}

.status-message .button {
	display: inline-block;
	margin-top: 15px;
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.status-message .button-primary {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-message .button-primary:hover {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	transform: translateY(-2px);
}

/* Summary Grid */
.summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
	border-bottom: none;
}

.item-label {
	font-weight: 500;
	color: #666;
	font-size: 14px;
}

.item-value {
	font-weight: 600;
	color: #333;
	font-size: 14px;
	text-align: right;
}

.summary-total {
	grid-column: 1 / -1;
	margin-top: 10px;
	padding-top: 15px;
	border-top: 2px solid #e0e0e0;
}

.summary-total .item-label,
.summary-total .item-value {
	font-size: 18px;
	color: #4caf50;
}

/* Special Requests */
.special-requests {
	margin-top: 15px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
	border-left: 4px solid #2196f3;
}

.special-requests strong {
	display: block;
	margin-bottom: 8px;
	color: #333;
}

.special-requests p {
	margin: 0;
	color: #666;
	line-height: 1.6;
}

/* Contact Details */
.contact-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 15px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #333;
}

.contact-item svg {
	flex-shrink: 0;
	color: #2196f3;
}

.contact-item a {
	color: #2196f3;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.contact-item a:hover {
	color: #1976d2;
	text-decoration: underline;
}

/* Action Buttons */
.confirmation-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 30px;
	flex-wrap: wrap;
}

.confirmation-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
}

.confirmation-actions .button:hover {
	border-color: #2196f3;
	color: #2196f3;
	background: #f5f5f5;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.confirmation-actions .button svg {
	flex-shrink: 0;
}

/* Email Reminder */
.email-reminder {
	display: flex;
	gap: 15px;
	padding: 20px;
	background: #e3f2fd;
	border-radius: 8px;
	margin-top: 30px;
	align-items: center;
}

.email-reminder svg {
	flex-shrink: 0;
	color: #2196f3;
}

.email-reminder p {
	margin: 0;
	color: #666;
	line-height: 1.6;
}

.email-reminder strong {
	color: #333;
}

/* Print Styles */
@media print {
	.ideaforge-sync-confirmation-wrapper {
		max-width: 100%;
		padding: 20px;
	}

	.confirmation-actions,
	.email-reminder {
		display: none;
	}

	.confirmation-section {
		border: 2px solid #ddd;
		page-break-inside: avoid;
	}

	.status-message {
		border: 2px solid #ddd;
		background: #fff !important;
	}

	.confirmation-number {
		background: #f5f5f5 !important;
		color: #333 !important;
		border: 2px solid #ddd;
	}

	a {
		color: #333 !important;
		text-decoration: none !important;
	}
}

/* Responsive - Tablet */
@media screen and (max-width: 768px) {
	.ideaforge-sync-confirmation-wrapper {
		padding: 30px 15px;
	}

	.confirmation-title {
		font-size: 26px;
	}

	.confirmation-subtitle {
		font-size: 16px;
	}

	.confirmation-number .number {
		font-size: 24px;
	}

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

	.summary-item {
		flex-direction: column;
		gap: 5px;
	}

	.item-value {
		text-align: left;
		font-size: 16px;
	}

	.confirmation-section {
		padding: 20px;
	}

	.confirmation-section h2 {
		font-size: 20px;
	}

	.status-message {
		flex-direction: column;
		gap: 10px;
	}

	.confirmation-actions {
		flex-direction: column;
		width: 100%;
	}

	.confirmation-actions .button {
		width: 100%;
		justify-content: center;
	}
}

/* Responsive - Mobile */
@media screen and (max-width: 480px) {
	.ideaforge-sync-confirmation-wrapper {
		padding: 20px 10px;
	}

	.confirmation-header {
		margin-bottom: 25px;
	}

	.success-icon svg {
		width: 48px;
		height: 48px;
	}

	.confirmation-title {
		font-size: 22px;
	}

	.confirmation-subtitle {
		font-size: 14px;
	}

	.confirmation-number {
		padding: 15px;
	}

	.confirmation-number .number {
		font-size: 20px;
	}

	.confirmation-section {
		padding: 15px;
		margin-bottom: 20px;
	}

	.confirmation-section h2 {
		font-size: 18px;
		margin-bottom: 15px;
	}

	.status-message {
		padding: 15px;
	}

	.email-reminder {
		flex-direction: column;
		padding: 15px;
	}

	.contact-details {
		gap: 10px;
	}

	.contact-item {
		font-size: 14px;
	}
}

/* ==========================================================================
   Booking Status Page Styles
   ========================================================================== */

.ideaforge-sync-status-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Page Header */
.status-page-header {
	text-align: center;
	margin-bottom: 30px;
}

.status-page-header h1 {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #333;
}

.booking-reference {
	font-size: 14px;
	color: #666;
	margin: 0;
}

/* Current Status Badge */
.current-status-badge {
	text-align: center;
	padding: 30px 20px;
	background: #fff;
	border: 3px solid;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.status-icon-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 15px;
}

.status-label {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 5px 0;
}

.status-date {
	font-size: 13px;
	color: #666;
	margin: 0;
}

/* Status Timeline */
.status-timeline {
	margin-bottom: 30px;
	padding: 20px 0;
}

.timeline-item {
	display: flex;
	gap: 20px;
	padding: 15px 0;
	position: relative;
}

.timeline-item:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 11px;
	top: 40px;
	bottom: -15px;
	width: 2px;
	background: #e0e0e0;
}

.timeline-item.completed::after {
	background: #4caf50;
}

.timeline-item.active::after {
	background: #2196f3;
}

.timeline-marker {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 3px solid #e0e0e0;
	background: #fff;
	flex-shrink: 0;
	z-index: 1;
}

.timeline-item.completed .timeline-marker {
	border-color: #4caf50;
	background: #4caf50;
	position: relative;
}

.timeline-item.completed .timeline-marker::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 14px;
	font-weight: bold;
}

.timeline-item.active .timeline-marker {
	border-color: #2196f3;
	background: #2196f3;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(33, 150, 243, 0);
	}
}

.timeline-content {
	flex: 1;
}

.timeline-content strong {
	display: block;
	font-size: 16px;
	color: #333;
	margin-bottom: 5px;
}

.timeline-content p {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}

/* Status Message Box */
.status-message-box {
	margin-bottom: 30px;
}

.status-message {
	display: flex;
	gap: 15px;
	padding: 20px;
	border-radius: 8px;
	align-items: flex-start;
	line-height: 1.6;
}

.status-message svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.status-message strong {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
}

.status-message p {
	margin: 0 0 10px 0;
	color: #666;
}

.status-message p:last-child {
	margin-bottom: 0;
}

.status-pending-approval {
	background: #fff3e0;
	border: 2px solid #ff9800;
}

.status-payment-pending {
	background: #e3f2fd;
	border: 2px solid #2196f3;
}

.status-confirmed {
	background: #e8f5e9;
	border: 2px solid #4caf50;
}

.status-declined {
	background: #ffebee;
	border: 2px solid #f44336;
}

.status-cancelled {
	background: #f5f5f5;
	border: 2px solid #757575;
}

.status-message .button {
	display: inline-block;
	margin-top: 15px;
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.status-message .button-primary {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border: none;
}

.status-message .button-primary:hover {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	transform: translateY(-2px);
}

/* Booking Details Section */
.status-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-section h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #333;
}

.details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.detail-item {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
	border-bottom: none;
}

.detail-label {
	font-weight: 500;
	color: #666;
	font-size: 14px;
}

.detail-value {
	font-weight: 600;
	color: #333;
	font-size: 14px;
	text-align: right;
}

/* Status Actions */
.status-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 30px;
	flex-wrap: wrap;
}

.status-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
}

.status-actions .button:hover {
	border-color: #2196f3;
	color: #2196f3;
	background: #f5f5f5;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.status-actions .button svg {
	flex-shrink: 0;
}

/* Print Styles */
@media print {
	.ideaforge-sync-status-wrapper {
		max-width: 100%;
		padding: 20px;
	}

	.status-actions {
		display: none;
	}

	.status-section {
		border: 2px solid #ddd;
		page-break-inside: avoid;
	}

	.status-message {
		border: 2px solid #ddd;
		background: #fff !important;
	}

	.current-status-badge {
		border: 2px solid #ddd;
	}

	a {
		color: #333 !important;
		text-decoration: none !important;
	}

	.timeline-marker {
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}
}

/* Responsive - Tablet */
@media screen and (max-width: 768px) {
	.ideaforge-sync-status-wrapper {
		padding: 30px 15px;
	}

	.status-page-header h1 {
		font-size: 24px;
	}

	.current-status-badge {
		padding: 25px 15px;
	}

	.status-label {
		font-size: 20px;
	}

	.status-icon-wrapper svg {
		width: 40px;
		height: 40px;
	}

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

	.detail-item {
		flex-direction: column;
		gap: 5px;
	}

	.detail-value {
		text-align: left;
		font-size: 16px;
	}

	.status-section {
		padding: 20px;
	}

	.status-section h3 {
		font-size: 18px;
	}

	.status-message {
		flex-direction: column;
		gap: 10px;
	}

	.status-actions {
		flex-direction: column;
		width: 100%;
	}

	.status-actions .button {
		width: 100%;
		justify-content: center;
	}

	.timeline-item {
		gap: 15px;
	}
}

/* Responsive - Mobile */
@media screen and (max-width: 480px) {
	.ideaforge-sync-status-wrapper {
		padding: 20px 10px;
	}

	.status-page-header {
		margin-bottom: 20px;
	}

	.status-page-header h1 {
		font-size: 22px;
	}

	.booking-reference {
		font-size: 13px;
	}

	.current-status-badge {
		padding: 20px 15px;
	}

	.status-icon-wrapper svg {
		width: 36px;
		height: 36px;
	}

	.status-label {
		font-size: 18px;
	}

	.status-section {
		padding: 15px;
		margin-bottom: 20px;
	}

	.status-section h3 {
		font-size: 17px;
		margin-bottom: 15px;
	}

	.status-message {
		padding: 15px;
	}

	.timeline-item {
		gap: 12px;
		padding: 12px 0;
	}

	.timeline-content strong {
		font-size: 15px;
	}

	.timeline-content p {
		font-size: 13px;
	}

	.contact-details {
		gap: 10px;
	}

	.contact-item {
		font-size: 14px;
	}
}
/* ==========================================================================
   Calendar Navigation Styles (Added for single-month view)
   ========================================================================== */

/* Navigation Container */
.ideaforge-sync-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-bottom: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
}

/* Navigation Buttons */
.calendar-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
}

.calendar-nav-btn:hover:not(:disabled) {
	border-color: #2196f3;
	color: #2196f3;
	background: #e3f2fd;
}

.calendar-nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.calendar-nav-btn svg {
	width: 20px;
	height: 20px;
}

/* Month/Year Selector */
.calendar-month-selector {
	display: flex;
	align-items: center;
	gap: 10px;
}

.calendar-month-select,
.calendar-year-select {
	padding: 10px 35px 10px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	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' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	transition: all 0.2s ease;
}

.calendar-month-select:hover,
.calendar-year-select:hover {
	border-color: #2196f3;
}

.calendar-month-select:focus,
.calendar-year-select:focus {
	outline: none;
	border-color: #2196f3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.calendar-month-select {
	min-width: 140px;
}

.calendar-year-select {
	min-width: 90px;
}

/* Calendar Container (single month) */
.ideaforge-sync-calendar-container {
	position: relative;
}

/* Override multi-column grid - now single column centered */
.ideaforge-sync-calendars {
	display: block;
	max-width: 420px;
	margin: 0 auto;
}

/* Single month styling - larger and centered */
.ideaforge-sync-calendar-month {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	margin: 0 auto;
	max-width: 420px;
}

.month-header h4 {
	text-align: center;
	margin: 0 0 20px 0;
	font-size: 22px;
	font-weight: 700;
	color: #333;
}

/* Calendar grid improvements */
.ideaforge-sync-calendar-grid {
	width: 100%;
	border-collapse: separate;
	border-spacing: 4px;
	table-layout: fixed;
}

.ideaforge-sync-calendar-grid thead th {
	padding: 12px 5px;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ideaforge-sync-calendar-grid td {
	padding: 0;
	text-align: center;
	border: none;
	vertical-align: middle;
	height: auto;
	position: relative;
}

.ideaforge-sync-calendar-grid td.empty-cell {
	background: transparent;
}

/* Day cells - square aspect ratio */
.calendar-day {
	aspect-ratio: 1;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.calendar-day:hover:not(.past):not(.booked) {
	transform: scale(1.08);
	z-index: 2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-day.available {
	background-color: #e8f5e9;
	border: 1px solid #c8e6c9;
}

.calendar-day.available:hover {
	background-color: #c8e6c9;
	border-color: #a5d6a7;
}

.calendar-day.booked {
	background-color: #ffebee;
	border: 1px solid #ffcdd2;
	cursor: not-allowed;
}

/* Explicitly prevent hover transform on booked and past dates (responsive) */
.calendar-day.booked:hover,
.calendar-day.past:hover {
	transform: none !important;
	box-shadow: none !important;
	z-index: auto !important;
}

.calendar-day.past {
	background-color: #f5f5f5;
	color: #bbb;
	cursor: default;
	border: 1px solid #eee;
}

.calendar-day.today {
	background-color: #fff3e0;
	border: 2px solid #ff9800;
	font-weight: 700;
}

.day-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 4px;
}

.day-number {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	line-height: 1;
}

.calendar-day.past .day-number {
	color: #bbb;
}

.day-price {
	font-size: 10px;
	color: #4caf50;
	font-weight: 600;
	margin-top: 2px;
	line-height: 1;
}

/* Loading Overlay */
.calendar-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	z-index: 10;
}

.calendar-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top-color: #2196f3;
	border-radius: 50%;
	animation: calendarSpin 0.8s linear infinite;
}

@keyframes calendarSpin {
	to {
		transform: rotate(360deg);
	}
}

/* Today Button */
.calendar-today-btn-wrapper {
	text-align: center;
	margin-top: 20px;
}

.calendar-today-btn {
	padding: 10px 24px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.calendar-today-btn:hover {
	border-color: #2196f3;
	color: #2196f3;
	background: #e3f2fd;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media screen and (max-width: 768px) {
	.ideaforge-sync-calendar-nav {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px;
	}

	.calendar-month-selector {
		order: -1;
		width: 100%;
		justify-content: center;
		margin-bottom: 5px;
	}

	.calendar-month-select,
	.calendar-year-select {
		padding: 8px 30px 8px 12px;
		font-size: 14px;
	}

	.calendar-month-select {
		min-width: 120px;
	}

	.calendar-nav-btn {
		width: 44px;
		height: 44px;
	}

	.ideaforge-sync-calendar-month {
		padding: 15px;
		border-radius: 8px;
	}

	.month-header h4 {
		font-size: 18px;
	}

	.ideaforge-sync-calendar-grid thead th {
		font-size: 11px;
		padding: 8px 2px;
	}

	.calendar-day {
		min-height: 44px;
		border-radius: 6px;
	}

	.day-number {
		font-size: 14px;
	}
}

@media screen and (max-width: 480px) {
	.ideaforge-sync-calendar-wrapper {
		padding: 10px;
	}

	.ideaforge-sync-calendar-nav {
		padding: 10px;
	}

	.calendar-month-selector {
		gap: 8px;
	}

	.calendar-month-select {
		min-width: 100px;
		font-size: 13px;
	}

	.calendar-year-select {
		min-width: 75px;
		font-size: 13px;
	}

	.ideaforge-sync-calendar-month {
		padding: 12px;
	}

	.ideaforge-sync-calendar-grid {
		border-spacing: 2px;
	}

	.ideaforge-sync-calendar-grid thead th {
		font-size: 10px;
		padding: 6px 1px;
	}

	.calendar-day {
		min-height: 40px;
	}

	.day-number {
		font-size: 13px;
	}

	.day-price {
		display: none; /* Hide prices on very small screens */
	}
}

/* ==========================================================================
   Avada/Fusion Builder Table Override - Fix Calendar Grid Layout
   Added: 2025-12-02 by MOG
   Issue: All days appearing under Monday/Sunday due to Avada CSS conflicts
   ========================================================================== */

/* Force proper table display - override Avada flex/grid styles */
.ideaforge-sync-calendar-wrapper table.ideaforge-sync-calendar-grid,
.ideaforge-sync-calendar-grid,
table.ideaforge-sync-calendar-grid {
	display: table !important;
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 4px !important;
	table-layout: fixed !important;
}

.ideaforge-sync-calendar-wrapper table.ideaforge-sync-calendar-grid thead,
.ideaforge-sync-calendar-grid thead,
table.ideaforge-sync-calendar-grid thead {
	display: table-header-group !important;
}

.ideaforge-sync-calendar-wrapper table.ideaforge-sync-calendar-grid tbody,
.ideaforge-sync-calendar-grid tbody,
table.ideaforge-sync-calendar-grid tbody {
	display: table-row-group !important;
}

.ideaforge-sync-calendar-wrapper table.ideaforge-sync-calendar-grid tr,
.ideaforge-sync-calendar-grid tr,
table.ideaforge-sync-calendar-grid tr {
	display: table-row !important;
}

.ideaforge-sync-calendar-wrapper table.ideaforge-sync-calendar-grid th,
.ideaforge-sync-calendar-grid th,
table.ideaforge-sync-calendar-grid th {
	display: table-cell !important;
	width: 14.28% !important;
	text-align: center !important;
	vertical-align: middle !important;
}

.ideaforge-sync-calendar-wrapper table.ideaforge-sync-calendar-grid td,
.ideaforge-sync-calendar-grid td,
table.ideaforge-sync-calendar-grid td {
	display: table-cell !important;
	width: 14.28% !important;
	text-align: center !important;
	vertical-align: middle !important;
}

/* Reset any flex/grid properties that Avada might apply */
.ideaforge-sync-calendar-wrapper .ideaforge-sync-calendar-grid *,
.ideaforge-sync-calendar-grid * {
	flex: unset !important;
	flex-grow: unset !important;
	flex-shrink: unset !important;
	flex-basis: unset !important;
	grid-column: unset !important;
	grid-row: unset !important;
}

/* Ensure the calendar container doesn't get wrapped in flex */
.ideaforge-sync-calendar-container {
	display: block !important;
}

.ideaforge-sync-calendar-month {
	display: block !important;
}

/* Calendar day cells - ensure they render correctly */
.ideaforge-sync-calendar-grid td.calendar-day {
	display: table-cell !important;
	box-sizing: border-box !important;
}

.ideaforge-sync-calendar-grid td.empty-cell {
	display: table-cell !important;
}

/* End Avada Override Fix */

/* ==========================================================================
   Enlarged Calendar Styles - Better Readability
   ========================================================================== */

/* Make calendar container larger */
.ideaforge-sync-calendar-wrapper {
	max-width: 100% !important;
	padding: 30px !important;
}

/* Larger month cards */
.ideaforge-sync-calendar-month {
	padding: 25px !important;
	min-width: 400px !important;
}

/* Larger month header */
.month-header h4 {
	font-size: 26px !important;
	margin-bottom: 20px !important;
}

/* Larger day headers (Sun, Mon, etc.) */
.ideaforge-sync-calendar-grid thead th {
	padding: 15px 8px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
}

/* Larger day cells */
.ideaforge-sync-calendar-grid td {
	padding: 12px !important;
	height: 80px !important;
	min-width: 50px !important;
}

/* Larger day numbers */
.day-number {
	font-size: 22px !important;
	font-weight: 700 !important;
}

/* Larger prices */
.day-price {
	font-size: 14px !important;
	margin-top: 4px !important;
}

/* Calendar navigation buttons - larger */
.ideaforge-sync-calendar-nav button,
.calendar-nav button,
.ideaforge-sync-calendar-header button {
	padding: 12px 24px !important;
	font-size: 16px !important;
	min-width: 120px !important;
}

/* Legend items larger */
.legend-item {
	font-size: 16px !important;
}

.legend-color {
	width: 24px !important;
	height: 24px !important;
}

/* Property name larger */
.ideaforge-sync-calendar-header .property-name {
	font-size: 32px !important;
}

/* Responsive - single column on smaller screens but still large */
@media (max-width: 768px) {
	.ideaforge-sync-calendars {
		grid-template-columns: 1fr !important;
	}
	
	.ideaforge-sync-calendar-month {
		min-width: unset !important;
	}
	
	.ideaforge-sync-calendar-grid td {
		height: 70px !important;
	}
	
	.day-number {
		font-size: 18px !important;
	}
	
	.month-header h4 {
		font-size: 22px !important;
	}
}

/* End Enlarged Calendar Styles */

/* ==========================================================================
   Calendar Width Fix - Full Width Layout
   ========================================================================== */

/* Force calendar grid to use full container width */
.ideaforge-sync-calendars {
	display: block !important;
	width: 100% !important;
}

/* Each month takes full width */
.ideaforge-sync-calendar-month {
	width: 100% !important;
	max-width: 100% !important;
	min-width: unset !important;
	box-sizing: border-box !important;
	margin-bottom: 30px !important;
}

/* Table must fill the container */
.ideaforge-sync-calendar-grid,
table.ideaforge-sync-calendar-grid {
	width: 100% !important;
	min-width: 100% !important;
	table-layout: fixed !important;
}

/* Each column gets equal width (100% / 7 = 14.28%) */
.ideaforge-sync-calendar-grid th,
.ideaforge-sync-calendar-grid td,
table.ideaforge-sync-calendar-grid th,
table.ideaforge-sync-calendar-grid td {
	width: 14.28% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

/* Day cells - square-ish proportions based on width */
.ideaforge-sync-calendar-grid td {
	height: auto !important;
	aspect-ratio: 1 / 0.8 !important;
	padding: 15px 10px !important;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
	.ideaforge-sync-calendar-grid td {
		height: 90px !important;
	}
}

/* End Calendar Width Fix */

/* ==========================================================================
   Date Range Selection Highlighting
   ========================================================================== */

/* Selected date (check-in or check-out) */
.ideaforge-sync-calendar-grid .calendar-day.selected {
	background-color: #1976d2 !important;
	color: #fff !important;
}

.ideaforge-sync-calendar-grid .calendar-day.selected .day-number {
	color: #fff !important;
}

.ideaforge-sync-calendar-grid .calendar-day.selected .day-price {
	color: #bbdefb !important;
}

/* Check-in date (start of range) */
.ideaforge-sync-calendar-grid .calendar-day.range-start {
	background-color: #1565c0 !important;
	border-radius: 8px 0 0 8px !important;
}

/* Check-out date (end of range) */
.ideaforge-sync-calendar-grid .calendar-day.range-end {
	background-color: #1565c0 !important;
	border-radius: 0 8px 8px 0 !important;
}

/* Dates in between */
.ideaforge-sync-calendar-grid .calendar-day.range-middle {
	background-color: #42a5f5 !important;
	color: #fff !important;
	border-radius: 0 !important;
}

.ideaforge-sync-calendar-grid .calendar-day.range-middle .day-number {
	color: #fff !important;
}

.ideaforge-sync-calendar-grid .calendar-day.range-middle .day-price {
	color: #e3f2fd !important;
}

/* Hover effect on selected range */
.ideaforge-sync-calendar-grid .calendar-day.selected:hover,
.ideaforge-sync-calendar-grid .calendar-day.range-start:hover,
.ideaforge-sync-calendar-grid .calendar-day.range-end:hover,
.ideaforge-sync-calendar-grid .calendar-day.range-middle:hover {
	opacity: 0.9 !important;
	transform: scale(1.02) !important;
}

/* End Date Range Selection Highlighting */

/* ==========================================================================
   Enhanced Date Selection UX
   ========================================================================== */

/* Pulsing effect when only check-in is selected (waiting for check-out) */
.ideaforge-sync-calendar-grid .calendar-day.range-start:not(.range-end) ~ .calendar-day:not(.range-middle):not(.range-end),
.ideaforge-sync-calendar-grid .calendar-day.selected.range-start:only-of-type {
	/* When only start is selected, give it a subtle pulse to indicate waiting */
}

/* Single selection state (check-in only, no check-out yet) */
.ideaforge-sync-calendar-grid .calendar-day.range-start:not(.range-end) {
	animation: pulse-selection 2s infinite;
	box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.3) !important;
}

@keyframes pulse-selection {
	0%, 100% {
		box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.3);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(21, 101, 192, 0.1);
	}
}

/* When range is complete (both start and end selected), remove pulse */
.ideaforge-sync-calendar-grid .calendar-day.range-start.selected,
.ideaforge-sync-calendar-grid .calendar-day.range-end.selected {
	animation: none;
	box-shadow: none !important;
}

/* Visual hint for selectable dates when in selection mode */
.ideaforge-sync-calendar-wrapper.selecting-checkout .calendar-day.available:not(.selected):not(.range-middle) {
	cursor: pointer;
}

/* Clear cursor on hover during checkout selection */
.ideaforge-sync-calendar-grid .calendar-day.available:hover {
	cursor: pointer;
}

/* End Enhanced Date Selection UX */

/* ==========================================================================
   Date Range Color Priority Fix
   Ensure start/end dates always show dark blue, middle dates light blue
   ========================================================================== */

/* Force range-start to be dark blue even if other classes present */
.ideaforge-sync-calendar-grid .calendar-day.range-start,
.ideaforge-sync-calendar-grid .calendar-day.selected.range-start {
	background-color: #1565c0 !important;
}

/* Force range-end to be dark blue even if other classes present */
.ideaforge-sync-calendar-grid .calendar-day.range-end,
.ideaforge-sync-calendar-grid .calendar-day.selected.range-end {
	background-color: #1565c0 !important;
}

/* Middle dates should be lighter blue (only if not start/end) */
.ideaforge-sync-calendar-grid .calendar-day.range-middle:not(.range-start):not(.range-end) {
	background-color: #64b5f6 !important;
}

/* End Date Range Color Priority Fix */

/* ==========================================================================
   Real-Time Form Validation Styles
   ========================================================================== */

/* Valid field state */
.ideaforge-sync-form .form-row.field-valid input,
.ideaforge-sync-form .form-row.field-valid textarea {
	border-color: #4caf50 !important;
	background-color: #f1f8e9;
}

.ideaforge-sync-form .form-row.field-valid::after {
	content: '✓';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #4caf50;
	font-size: 18px;
	font-weight: bold;
}

/* Error field state */
.ideaforge-sync-form .form-row.field-error input,
.ideaforge-sync-form .form-row.field-error textarea {
	border-color: #f44336 !important;
	background-color: #ffebee;
}

/* Error message styling */
.ideaforge-sync-form .form-row .field-error-message {
	display: block;
	color: #d32f2f;
	font-size: 12px;
	margin-top: 4px;
	padding: 4px 8px;
	background-color: #ffebee;
	border-radius: 4px;
	border-left: 3px solid #f44336;
}

/* Make form rows relative for positioning */
.ideaforge-sync-form .form-row {
	position: relative;
}

/* Phone number input specific styling */
.ideaforge-sync-form #guest_phone {
	font-family: 'SF Mono', Monaco, Consolas, monospace;
	letter-spacing: 0.5px;
}

/* Number input - hide spin buttons for cleaner look */
.ideaforge-sync-form input[type="number"]::-webkit-inner-spin-button,
.ideaforge-sync-form input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ideaforge-sync-form input[type="number"] {
	-moz-appearance: textfield;
}

/* Shake animation for validation errors */
@keyframes shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.ideaforge-sync-form .form-row.field-error input,
.ideaforge-sync-form .form-row.field-error textarea {
	animation: shake 0.5s ease-in-out;
}

/* Transition for smooth validation feedback */
.ideaforge-sync-form .form-row input,
.ideaforge-sync-form .form-row textarea {
	transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus state override for validation */
.ideaforge-sync-form .form-row.field-valid input:focus,
.ideaforge-sync-form .form-row.field-valid textarea:focus {
	box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.ideaforge-sync-form .form-row.field-error input:focus,
.ideaforge-sync-form .form-row.field-error textarea:focus {
	box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

/* Tooltip styling for international phone hint */
.ideaforge-sync-form .phone-hint {
	font-size: 11px;
	color: #666;
	margin-top: 4px;
	font-style: italic;
}

/* End Real-Time Form Validation Styles */

/* ==========================================================================
   Calendar Focus UX - Scroll to Calendar on Date Input Focus
   ========================================================================== */

/* Calendar pulse animation when user focuses date input */
@keyframes calendarPulse {
	0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
	50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
	100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.ideaforge-sync-calendar-wrapper.calendar-pulse {
	animation: calendarPulse 0.6s ease-out;
}

/* Also add a subtle border highlight */
.ideaforge-sync-calendar-wrapper.calendar-pulse .ideaforge-sync-calendar-month {
	border-color: #3b82f6 !important;
	transition: border-color 0.3s ease;
}

/* Date selection hint styling */
.ideaforge-sync-calendar-wrapper .date-selection-hint {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: white;
	padding: 8px 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	margin: 8px 0;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
	animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
	0% { 
		opacity: 0; 
		transform: translateY(-10px);
	}
	100% { 
		opacity: 1; 
		transform: translateY(0);
	}
}

/* Make date inputs look more clickable */
.ideaforge-sync-form #check_in,
.ideaforge-sync-form #check_out {
	cursor: pointer;
}

.ideaforge-sync-form #check_in:hover,
.ideaforge-sync-form #check_out:hover {
	border-color: #3b82f6;
	background-color: #f8fafc;
}

/* End Calendar Focus UX */
