/* Warranty Frontend Styles */

/* =========================================
   DEALER LOGIN STYLES (V-KOOL Dark Theme)
   ========================================= */

.warranty-combined-wrapper {
	margin: 0;
	padding: 0;
}

.warranty-login-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #000;
	background-image: url('../images/vkool-bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 100px 20px 80px 20px;
	margin: 0;
	z-index: 9999;
	box-sizing: border-box;
	overflow: auto;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .warranty-login-wrapper {
	top: 32px;
	height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .warranty-login-wrapper {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

.warranty-login-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 40px;
	box-sizing: border-box;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
}

.warranty-login-logo-left img,
.warranty-login-logo-right img {
	max-height: 50px;
	width: auto;
}

.warranty-login-container {
	width: 100%;
	max-width: 520px;
	background: rgba(60, 60, 60, 0.95);
	border-radius: 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	padding: 50px 60px;
	text-align: left;
	position: relative;
	z-index: 5;
}

.warranty-login-logo {
	margin-bottom: 40px;
	text-align: center;
}

.warranty-login-logo img {
	max-width: 200px;
	height: auto;
}

.warranty-login-step {
	display: none;
}

.warranty-login-step.active {
	display: block;
}

.warranty-login-title {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 10px 0;
	letter-spacing: 2px;
}

.warranty-login-subtitle {
	font-size: 14px;
	color: #ccc;
	margin: 0 0 30px 0;
	font-weight: 400;
}

.warranty-login-form {
	margin-top: 0;
}

.warranty-login-field {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
}

.warranty-login-field label {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	min-width: 120px;
	margin-right: 20px;
}

.warranty-login-field input {
	flex: 1;
	background: #6b6b6b;
	border: none;
	border-radius: 0;
	padding: 15px 20px;
	font-size: 14px;
	color: #fff;
	outline: none;
}

.warranty-login-field input::placeholder {
	color: #999;
}

.warranty-login-field input:focus {
	background: #7a7a7a;
}

.warranty-login-forgot {
	text-align: center;
	margin-bottom: 25px;
}

.warranty-login-forgot a {
	color: #87CEEB;
	text-decoration: underline;
	font-size: 14px;
}

.warranty-login-forgot a:hover {
	color: #ADD8E6;
}

.warranty-login-btn {
	display: block;
	width: auto;
	min-width: 120px;
	margin: 0 auto;
	padding: 12px 40px;
	background: #5a5a5a;
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: none;
}

.warranty-login-btn:hover {
	background: #6a6a6a;
}

.warranty-login-btn:active {
	background: #4a4a4a;
}

.warranty-login-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.warranty-login-back-btn {
	width: 100%;
	padding: 12px 30px;
	background: transparent;
	color: #87CEEB;
	border: 2px solid #87CEEB;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 15px;
}

.warranty-login-back-btn:hover {
	background: #87CEEB;
	color: #333;
}

.warranty-login-message {
	margin-top: 20px;
	padding: 12px 20px;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
}

.warranty-login-message.warranty-error {
	background: rgba(220, 53, 69, 0.2);
	color: #ff6b6b;
	border: 1px solid #dc3545;
}

.warranty-login-message.warranty-success {
	background: rgba(40, 167, 69, 0.2);
	color: #51cf66;
	border: 1px solid #28a745;
}

/* Footer Styles */
.warranty-login-footer {
	width: 100%;
	background: #1a1a1a;
	padding: 15px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	position: absolute;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
}

.warranty-login-footer-logo .eastman-logo {
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.warranty-login-footer-text {
	color: #888;
	font-size: 11px;
	line-height: 1.4;
}

/* Warranty Header and Footer Color Fix */
.warranty-login-header {
	background: #000 !important;
	color: #fff !important;
}

.warranty-login-header a {
	color: #fff !important;
}

.warranty-login-footer {
	background: #000 !important;
	color: #fff !important;
}

.warranty-login-footer a {
	color: #fff !important;
}

/* Mobile responsive for login */
@media (max-width: 768px) {
	.warranty-login-header {
		padding: 15px 20px;
	}

	.warranty-login-logo-left img,
	.warranty-login-logo-right img {
		max-height: 35px;
	}

	.warranty-login-container {
		padding: 40px 30px;
		margin: 20px;
		max-width: calc(100% - 40px);
	}

	.warranty-login-field {
		flex-direction: column;
		align-items: flex-start;
	}

	.warranty-login-field label {
		margin-bottom: 8px;
		margin-right: 0;
	}

	.warranty-login-field input {
		width: 100%;
	}

	.warranty-login-footer {
		flex-direction: column;
		padding: 15px 20px;
		gap: 10px;
		text-align: center;
	}

	.warranty-login-footer-text {
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.warranty-login-container {
		padding: 30px 20px;
	}

	.warranty-login-logo-left img,
	.warranty-login-logo-right img {
		max-height: 30px;
	}

	.warranty-login-field label {
		font-size: 14px;
	}

	.warranty-login-field input {
		padding: 12px 15px;
		font-size: 13px;
	}

	.warranty-login-btn {
		padding: 10px 30px;
		font-size: 13px;
	}
}

/* Loading Animation Styles (inline near button) */
.warranty-form-submit {
	position: relative;
}

.warranty-loading-inline {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
	margin-top: 15px;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.warranty-loading-inline .warranty-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top: 3px solid #3d3d3d;
	border-radius: 50%;
	animation: warranty-spin 1s linear infinite;
	margin-bottom: 15px;
}

@keyframes warranty-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.warranty-loading-inline .warranty-loading-text {
	font-size: 15px;
	color: #333;
	font-weight: 600;
	text-align: center;
}

.warranty-loading-inline .warranty-loading-subtext {
	font-size: 12px;
	color: #888;
	margin-top: 5px;
	text-align: center;
}

/* Mobile responsive for login */
@media (max-width: 480px) {
	.warranty-login-container {
		padding: 40px 25px;
	}

	.warranty-login-logo img {
		max-width: 160px;
	}

	.warranty-login-title {
		font-size: 24px;
	}

	.warranty-login-input-group {
		padding: 3px 15px;
	}

	.warranty-login-input-group input {
		padding: 12px 0;
		font-size: 13px;
	}

	.warranty-login-btn {
		padding: 14px 25px;
		font-size: 14px;
	}
}

/* =========================================
   PRODUCT CATEGORY SELECTION STYLES
   ========================================= */

.warranty-category-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background: #fff;
	z-index: 999998;
	overflow: auto;
	box-sizing: border-box;
}

/* Account for WordPress admin bar */
.admin-bar .warranty-category-wrapper {
	top: 32px;
	height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .warranty-category-wrapper {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

.warranty-category-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 60px;
	background: #000;
	box-sizing: border-box;
	border-bottom: 1px solid #e0e0e0;
}

.warranty-category-logo-left img {
	max-height: 45px;
	width: auto;
}

.warranty-category-dealer-info {
	display: flex;
	align-items: center;
	gap: 20px;
	color: #fff;
	font-size: 14px;
}

.warranty-category-dealer-info strong {
	color: #fff;
}

.warranty-category-dealer-info .warranty-logout-link {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	padding: 6px 12px;
	border: 1px solid #c41230;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.warranty-category-dealer-info .warranty-logout-link:hover {
	background: #fff;
	color: #000;
}

.warranty-category-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 60px 40px 100px;
}

.warranty-category-title {
	font-size: 36px;
	font-weight: 700;
	color: #333;
	margin: 0 0 50px 0;
	letter-spacing: 1px;
}

.warranty-category-section {
	margin-bottom: 50px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e0e0e0;
}

.warranty-category-section:last-child {
	border-bottom: none;
}

.warranty-category-section-title {
	font-size: 26px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px 0;
	font-style: italic;
}

.warranty-category-section-desc {
	font-size: 15px;
	color: #666;
	margin: 0 0 25px 0;
}

.warranty-category-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.warranty-category-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 280px;
	max-width: 350px;
	padding: 18px 25px;
	background: #000;
	border: none;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: left;
}

.warranty-category-btn:hover {
	background: #222;
	transform: translateX(5px);
}

.warranty-category-btn:active {
	background: #000;
}

.warranty-category-btn .btn-text {
	flex: 1;
	padding-right: 15px;
	line-height: 1.4;
}

.warranty-category-btn .btn-arrow {
	font-size: 24px;
	font-weight: 300;
	color: #ccc;
	transition: color 0.3s ease;
}

.warranty-category-btn:hover .btn-arrow {
	color: #fff;
}

.warranty-category-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: #000;
	padding: 15px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 25px;
	border-top: 1px solid #e0e0e0;
	box-sizing: border-box;
}

.warranty-category-footer-logo .eastman-logo {
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.warranty-category-footer-text {
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
}

/* Back to Categories Link */
.warranty-back-to-categories {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.warranty-back-to-categories:hover {
	color: #333;
	transform: translateX(-3px);
}

.warranty-back-to-categories .back-arrow {
	font-size: 20px;
	font-weight: 300;
}

.warranty-form-header {
	margin-bottom: 20px;
}

.warranty-form-header h2 {
	margin-top: 10px;
}

/* Category Selection Mobile Responsive */
@media (max-width: 768px) {
	.warranty-category-header {
		padding: 15px 20px;
		flex-wrap: wrap;
		gap: 15px;
	}

	.warranty-category-logo-left img {
		max-height: 35px;
	}

	.warranty-category-dealer-info {
		flex-direction: column;
		align-items: flex-end;
		gap: 10px;
	}

	.warranty-category-container {
		padding: 40px 20px 120px;
	}

	.warranty-category-title {
		font-size: 28px;
		margin-bottom: 35px;
	}

	.warranty-category-section-title {
		font-size: 22px;
	}

	.warranty-category-buttons {
		flex-direction: column;
	}

	.warranty-category-btn {
		min-width: 100%;
		max-width: 100%;
	}

	.warranty-category-footer {
		flex-direction: column;
		padding: 15px 20px;
		gap: 10px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.warranty-category-title {
		font-size: 24px;
	}

	.warranty-category-section {
		margin-bottom: 35px;
		padding-bottom: 30px;
	}

	.warranty-category-btn {
		padding: 15px 20px;
		font-size: 12px;
	}
}

/* =========================================
   WARRANTY FORM STYLES (V-KOOL Dark Theme)
   ========================================= */

/* Hide WordPress theme content when form/login/category is active */
body:has(#warranty-registration-section:not([style*="display: none"])) .site-header,
body:has(#warranty-registration-section:not([style*="display: none"])) .site-footer,
body:has(#warranty-registration-section:not([style*="display: none"])) .site-content > *:not(.warranty-registration-form-wrapper),
body:has(#warranty-registration-section:not([style*="display: none"])) header,
body:has(#warranty-registration-section:not([style*="display: none"])) footer,
body:has(#warranty-registration-section:not([style*="display: none"])) aside,
body:has(#warranty-registration-section:not([style*="display: none"])) nav:not(#wpadminbar *),
body:has(.warranty-login-wrapper:not([style*="display: none"])) .site-header,
body:has(.warranty-login-wrapper:not([style*="display: none"])) .site-footer,
body:has(.warranty-login-wrapper:not([style*="display: none"])) .site-content > *:not(.warranty-combined-wrapper),
body:has(.warranty-login-wrapper:not([style*="display: none"])) header,
body:has(.warranty-login-wrapper:not([style*="display: none"])) footer,
body:has(.warranty-login-wrapper:not([style*="display: none"])) aside,
body:has(.warranty-login-wrapper:not([style*="display: none"])) nav:not(#wpadminbar *),
body:has(.warranty-category-wrapper:not([style*="display: none"])) .site-header,
body:has(.warranty-category-wrapper:not([style*="display: none"])) .site-footer,
body:has(.warranty-category-wrapper:not([style*="display: none"])) .site-content > *:not(.warranty-combined-wrapper),
body:has(.warranty-category-wrapper:not([style*="display: none"])) header,
body:has(.warranty-category-wrapper:not([style*="display: none"])) footer,
body:has(.warranty-category-wrapper:not([style*="display: none"])) aside,
body:has(.warranty-category-wrapper:not([style*="display: none"])) nav:not(#wpadminbar *) {
	display: none !important;
}

.warranty-dealer-form-wrapper,
.warranty-registration-form-wrapper {
	margin: 0;
	padding: 0;
}

/* Registration section - styled like category page */
#warranty-registration-section,
.warranty-registration-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background: #fff;
	z-index: 999999;
	overflow: auto;
	box-sizing: border-box;
}

/* Registration Header - matches category header */
.warranty-registration-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 60px;
	background: #000;
	box-sizing: border-box;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.warranty-registration-logo-left img {
	max-height: 45px;
	width: auto;
}

.warranty-registration-dealer-info {
	display: flex;
	align-items: center;
	gap: 20px;
	color: #fff;
	font-size: 14px;
}

.warranty-registration-dealer-info strong {
	color: #fff;
}

.warranty-registration-dealer-info .warranty-logout-link {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	padding: 6px 12px;
	border: 1px solid #c41230;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.warranty-registration-dealer-info .warranty-logout-link:hover {
	background: #fff;
	color: #000;
}

/* Registration Footer - matches category footer */
.warranty-registration-footer {
	width: 100%;
	background: #000;
	padding: 15px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 25px;
	border-top: 1px solid #e0e0e0;
	box-sizing: border-box;
	margin-top: 40px;
}

.warranty-registration-footer-logo .eastman-logo {
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.warranty-registration-footer-text {
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
}

#warranty-registration-section[style*="display: none"] {
	display: none !important;
}

/* Account for WordPress admin bar */
.admin-bar #warranty-registration-section {
	top: 32px;
	height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar #warranty-registration-section {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

.warranty-form-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 60px 40px 100px;
	background: #fff;
	border: none;
	border-radius: 0;
}

.warranty-form-container h2 {
	margin-top: 0;
	color: #333;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 1px;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 10px;
}

.warranty-form-intro {
	color: #666;
	font-style: italic;
	margin-bottom: 30px;
	font-size: 15px;
}

.warranty-dealer-info {
	display: none; /* Hidden since dealer info is now in header */
}

.warranty-dealer-info p {
	margin: 0;
	color: #fff;
}

.warranty-dealer-info strong {
	color: #87CEEB;
}

.warranty-logout-link {
	color: #87CEEB;
	text-decoration: underline;
	margin-left: 10px;
}

.warranty-logout-link:hover {
	color: #ADD8E6;
}

.warranty-form {
	margin-top: 30px;
}

.warranty-form-section {
	margin-bottom: 50px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e0e0e0;
}

.warranty-form-section:last-of-type {
	border-bottom: none;
	margin-bottom: 30px;
}

.warranty-form-section legend {
	font-size: 26px;
	font-weight: 600;
	color: #333;
	margin-bottom: 25px;
	display: block;
	letter-spacing: 0.5px;
	font-style: italic;
}

.warranty-form-group {
	margin-bottom: 20px;
}

.warranty-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.warranty-form-row-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.warranty-form-row-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
}

.warranty-form-col-2 {
	grid-column: span 1;
}

/* Radio Button Group Styles (Product Type Selection) */
.warranty-product-type-selection {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	padding: 15px 0;
}

.warranty-radio-item {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-weight: 600;
	color: #333;
	padding: 15px 25px;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: all 0.3s ease;
	background: #fff;
}

.warranty-radio-item:hover {
	border-color: #333;
	background: #f8f8f8;
}

.warranty-radio-item input[type="radio"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #333;
}

.warranty-radio-item input[type="radio"]:checked + span {
	color: #333;
}

.warranty-radio-item:has(input[type="radio"]:checked) {
	border-color: #333;
	background: #f0f0f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.warranty-radio-item span {
	font-size: 15px;
}

/* Checkbox Group Styles */
.warranty-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	padding: 10px 0;
}

.warranty-checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 500;
	color: #333;
}

.warranty-checkbox-item input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #333;
}

.warranty-checkbox-item span {
	font-size: 14px;
}

.warranty-form-col {
	margin-bottom: 0;
}

.warranty-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.warranty-required {
	color: #c41230;
	font-weight: bold;
}

.warranty-form-group input[type="text"],
.warranty-form-group input[type="email"],
.warranty-form-group input[type="tel"],
.warranty-form-group input[type="date"],
.warranty-form-group textarea,
.warranty-form-group select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: all 0.3s;
	background: #fff;
	color: #333;
}

.warranty-form-group input::placeholder,
.warranty-form-group textarea::placeholder {
	color: #999;
}

.warranty-form-group input:focus,
.warranty-form-group textarea:focus,
.warranty-form-group select:focus {
	outline: none;
	border-color: #333;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.warranty-form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.warranty-form-group select {
	cursor: pointer;
}

.warranty-form-group select option {
	background: #4a4a4a;
	color: #fff;
}

.warranty-help-text {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #999;
}

.warranty-form-help {
	color: #666;
	font-size: 14px;
	margin-bottom: 15px;
}

.warranty-file-upload-area {
	border: 2px dashed #ddd;
	border-radius: 4px;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	background: #f9f9f9;
}

.warranty-file-upload-area:hover {
	border-color: #333;
	background: #f0f0f0;
}

.warranty-file-upload-area.warranty-drag-over {
	border-color: #333;
	background: #efefef;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.warranty-file-upload-area input[type="file"] {
	display: none;
}

.warranty-upload-hint {
	color: #666;
	margin: 0;
	font-size: 14px;
}

.warranty-file-info {
	font-size: 12px;
	color: #888;
	margin-top: 10px;
}

.warranty-files-preview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 15px;
	margin-top: 15px;
}

.warranty-file-preview {
	position: relative;
	border: 1px solid #555;
	border-radius: 0;
	overflow: hidden;
	background: rgba(80, 80, 80, 0.5);
}

.warranty-file-preview img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	display: block;
}

.warranty-file-preview p {
	margin: 5px;
	font-size: 11px;
	color: #ccc;
	word-break: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.warranty-form-submit {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

.warranty-form-disclaimer {
	font-size: 12px;
	color: #888;
	margin-top: 15px;
}

.warranty-btn {
	padding: 18px 50px;
	border: none;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none;
	display: inline-block;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.warranty-btn-primary {
	background: #3d3d3d;
	color: #fff;
}

.warranty-btn-primary:hover {
	background: #555;
}

.warranty-btn-primary:disabled {
	background: #999;
	cursor: not-allowed;
	opacity: 0.7;
}

.warranty-message {
	padding: 15px 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	margin-top: 20px;
	border-left: 4px solid;
}

.warranty-message.warranty-success {
	background: #d4edda;
	color: #155724;
	border-left-color: #28a745;
}

.warranty-message.warranty-error {
	background: #f8d7da;
	color: #721c24;
	border-left-color: #dc3545;
}

.warranty-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
}

.warranty-status.pending {
	background: #fff3cd;
	color: #856404;
}

.warranty-status.publish {
	background: #d4edda;
	color: #155724;
}

.warranty-status.trash {
	background: #f8d7da;
	color: #721c24;
}

/* Photo Upload Grid - 4 separate uploads */
.warranty-photo-uploads {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.warranty-photo-upload-item {
	display: flex;
	flex-direction: column;
}

.warranty-photo-upload-item label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	text-align: center;
}

.warranty-photo-upload-item input[type="file"] {
	width: 100%;
	padding: 8px;
	font-size: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #333;
	cursor: pointer;
}

.warranty-photo-upload-item input[type="file"]:hover {
	border-color: #333;
	background: #f9f9f9;
}

.warranty-photo-upload-item input[type="file"]::file-selector-button {
	padding: 6px 12px;
	background: #3d3d3d;
	color: #fff;
	border: none;
	border-radius: 0;
	cursor: pointer;
	font-size: 12px;
	margin-right: 8px;
}

.warranty-photo-upload-item input[type="file"]::file-selector-button:hover {
	background: #555;
}

/* Responsive Design */
/* Account for WordPress admin bar on registration section */
.admin-bar #warranty-registration-section,
.admin-bar .warranty-registration-wrapper {
	top: 32px;
	height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar #warranty-registration-section,
	.admin-bar .warranty-registration-wrapper {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

@media (max-width: 768px) {
	.warranty-registration-header {
		padding: 15px 20px;
		flex-wrap: wrap;
		gap: 15px;
	}

	.warranty-registration-logo-left img {
		max-height: 35px;
	}

	.warranty-registration-dealer-info {
		flex-direction: column;
		align-items: flex-end;
		gap: 10px;
	}

	.warranty-form-container {
		padding: 40px 20px 120px;
	}

	.warranty-form-container h2 {
		font-size: 28px;
	}

	.warranty-form-row,
	.warranty-form-row-3,
	.warranty-form-row-5 {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.warranty-photo-uploads {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.warranty-form-col,
	.warranty-form-col-2 {
		margin-bottom: 20px;
	}

	.warranty-form-row .warranty-form-group,
	.warranty-form-row-3 .warranty-form-group,
	.warranty-form-row-5 .warranty-form-group {
		margin-bottom: 15px;
	}

	.warranty-checkbox-group {
		flex-direction: column;
		gap: 15px;
	}

	.warranty-files-preview {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	}

	.warranty-file-preview img {
		height: 80px;
	}

	.warranty-registration-footer {
		flex-direction: column;
		padding: 15px 20px;
		gap: 10px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.warranty-form-container {
		padding: 20px 15px 120px;
	}

	.warranty-form-container h2 {
		font-size: 24px;
	}

	.warranty-photo-uploads {
		grid-template-columns: 1fr;
	}

	.warranty-btn {
		width: 100%;
		padding: 15px;
	}

	.warranty-registration-header {
		padding: 10px 15px;
	}
}
