/* Warranty Frontend Styles */

/* =========================================
   DEALER LOGIN STYLES (XPEL-style)
   ========================================= */

.warranty-login-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
	padding: 20px;
}

.warranty-login-container {
	width: 100%;
	max-width: 450px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	padding: 50px 40px;
	text-align: center;
}

.warranty-login-logo {
	margin-bottom: 40px;
}

.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: #333;
	margin: 0 0 10px 0;
	letter-spacing: 2px;
}

.warranty-login-subtitle {
	font-size: 14px;
	color: #333;
	margin: 0 0 30px 0;
	font-weight: 400;
}

.warranty-login-form {
	margin-top: 20px;
}

.warranty-login-input-group {
	position: relative;
	margin-bottom: 25px;
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 50px;
	display: flex;
	align-items: center;
	padding: 5px 20px;
	transition: all 0.3s ease;
}

.warranty-login-input-group:focus-within {
	border-color: #336699;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(51, 102, 153, 0.1);
}

.warranty-login-input-icon {
	color: #adb5bd;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.warranty-login-input-icon svg {
	width: 22px;
	height: 22px;
}

.warranty-login-input-group:focus-within .warranty-login-input-icon {
	color: #336699;
}

.warranty-login-input-group input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 15px 0;
	font-size: 14px;
	color: #333;
	outline: none;
	letter-spacing: 1px;
}

.warranty-login-input-group input::placeholder {
	color: #adb5bd;
	font-weight: 500;
	letter-spacing: 1px;
}

.warranty-login-btn {
	width: 100%;
	padding: 16px 30px;
	background: linear-gradient(135deg, #336699 0%, #264d73 100%);
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
	box-shadow: 0 4px 15px rgba(51, 102, 153, 0.3);
}

.warranty-login-btn:hover {
	background: linear-gradient(135deg, #264d73 0%, #1a3a57 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(51, 102, 153, 0.4);
}

.warranty-login-btn:active {
	transform: translateY(0);
}

.warranty-login-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.warranty-login-back-btn {
	width: 100%;
	padding: 12px 30px;
	background: transparent;
	color: #336699;
	border: 2px solid #336699;
	border-radius: 50px;
	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: #336699;
	color: #fff;
}

.warranty-login-message {
	margin-top: 20px;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

.warranty-login-message.warranty-error {
	background: #fff5f5;
	color: #c53030;
	border: 1px solid #feb2b2;
}

.warranty-login-message.warranty-success {
	background: #f0fff4;
	color: #276749;
	border: 1px solid #9ae6b4;
}

/* 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: 20px;
	margin-top: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.warranty-loading-inline .warranty-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e9ecef;
	border-top: 3px solid #336699;
	border-radius: 50%;
	animation: warranty-spin 1s linear infinite;
	margin-bottom: 12px;
}

@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: #666;
	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;
	}
}

/* =========================================
   WARRANTY FORM STYLES
   ========================================= */

.warranty-dealer-form-wrapper,
.warranty-registration-form-wrapper {
	margin: 30px 0;
}

.warranty-form-container {
	max-width: 700px;
	margin: 0 auto;
	padding: 30px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.warranty-form-container h2 {
	margin-top: 0;
	color: #333;
	border-bottom: 3px solid #336699;
	padding-bottom: 15px;
}

.warranty-form-intro {
	color: #666;
	font-style: italic;
	margin-bottom: 20px;
}

.warranty-form {
	margin-top: 30px;
}

.warranty-form-section {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #eee;
}

.warranty-form-section:last-of-type {
	border-bottom: none;
}

.warranty-form-section legend {
	font-size: 16px;
	font-weight: bold;
	color: #336699;
	margin-bottom: 20px;
	display: block;
}

.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: 2px solid #ddd;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.warranty-radio-item:hover {
	border-color: #336699;
	background: #f0f4f8;
}

.warranty-radio-item input[type="radio"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #336699;
}

.warranty-radio-item input[type="radio"]:checked + span {
	color: #336699;
}

.warranty-radio-item:has(input[type="radio"]:checked) {
	border-color: #336699;
	background: #e7f1ff;
	box-shadow: 0 2px 8px rgba(51, 102, 153, 0.2);
}

.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: #336699;
}

.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: #e74c3c;
	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: 10px 12px;
	border: 1px solid #bbb;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.3s;
}

.warranty-form-group input:focus,
.warranty-form-group textarea:focus,
.warranty-form-group select:focus {
	outline: none;
	border-color: #336699;
	box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.1);
}

.warranty-form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.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 #336699;
	border-radius: 4px;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	background: #f8f9fa;
}

.warranty-file-upload-area:hover {
	border-color: #0056b3;
	background: #f0f4f8;
}

.warranty-file-upload-area.warranty-drag-over {
	border-color: #0056b3;
	background: #e7f1ff;
	box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.1);
}

.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: #999;
	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 #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #f8f9fa;
}

.warranty-file-preview img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	display: block;
}

.warranty-file-preview p {
	margin: 5px;
	font-size: 11px;
	color: #666;
	word-break: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.warranty-form-submit {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #eee;
	text-align: center;
}

.warranty-form-disclaimer {
	font-size: 12px;
	color: #999;
	margin-top: 15px;
}

.warranty-btn {
	padding: 12px 30px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none;
	display: inline-block;
}

.warranty-btn-primary {
	background: #336699;
	color: white;
}

.warranty-btn-primary:hover {
	background: #1e3f5a;
	box-shadow: 0 4px 8px rgba(51, 102, 153, 0.3);
}

.warranty-btn-primary:disabled {
	background: #ccc;
	cursor: not-allowed;
	box-shadow: none;
}

.warranty-message {
	padding: 15px 20px;
	border-radius: 4px;
	margin-bottom: 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: #f5c6cb;
}

.warranty-dealer-info {
	background: #e7f1ff;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	border-left: 4px solid #336699;
}

.warranty-dealer-info p {
	margin: 0;
	font-size: 14px;
	color: #333;
}

.warranty-logout-link {
	margin-left: 10px;
	font-size: 12px;
	color: #336699;
	text-decoration: none;
}

.warranty-logout-link:hover {
	text-decoration: underline;
}

.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 - 5 separate uploads */
.warranty-photo-uploads {
	display: grid;
	grid-template-columns: repeat(5, 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: #f8f9fa;
	cursor: pointer;
}

.warranty-photo-upload-item input[type="file"]:hover {
	border-color: #336699;
	background: #f0f4f8;
}

.warranty-photo-upload-item input[type="file"]::file-selector-button {
	padding: 6px 12px;
	background: #336699;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	margin-right: 8px;
}

.warranty-photo-upload-item input[type="file"]::file-selector-button:hover {
	background: #1e3f5a;
}

/* Responsive Design */
@media (max-width: 768px) {
	.warranty-form-container {
		padding: 20px;
	}

	.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;
	}
}

@media (max-width: 480px) {
	.warranty-form-container {
		padding: 15px;
	}

	.warranty-form-container h2 {
		font-size: 20px;
	}

	.warranty-photo-uploads {
		grid-template-columns: 1fr;
	}

	.warranty-btn {
		width: 100%;
		padding: 15px;
	}
}
