/**
 * CSS for Libro de Reclamaciones Form
 *
 * @package LibroReclamaciones
 */

.lr-form-container {
	max-width: 750px;
	margin: 2rem auto;
	padding: 2.5rem;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
	line-height: 1.5;
}

.lr-form-header {
	text-align: center;
	margin-bottom: 2.5rem;
	border-bottom: 2px dashed #e2e8f0;
	padding-bottom: 1.5rem;
}

.lr-form-header h2 {
	margin: 0 0 0.5rem 0;
	color: #0f172a;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.lr-company-meta {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
	line-height: 1.6;
}

.lr-fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	background: #f8fafc;
}

.lr-fieldset legend {
	font-weight: 600;
	font-size: 1rem;
	color: #0f172a;
	padding: 0 0.75rem;
	background: #f1f5f9;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
}

.lr-row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -0.75rem;
	margin-left: -0.75rem;
	margin-bottom: 1.25rem;
}

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

.lr-col-12, .lr-col-8, .lr-col-6, .lr-col-4 {
	position: relative;
	width: 100%;
	padding-right: 0.75rem;
	padding-left: 0.75rem;
	box-sizing: border-box;
}

@media (min-width: 576px) {
	.lr-col-4 {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}
	.lr-col-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
	.lr-col-8 {
		flex: 0 0 66.666667%;
		max-width: 66.666667%;
	}
	.lr-col-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

.lr-fieldset label {
	display: block;
	font-weight: 500;
	font-size: 0.875rem;
	color: #334155;
	margin-bottom: 0.375rem;
}

.lr-fieldset input[type="text"],
.lr-fieldset input[type="email"],
.lr-fieldset input[type="tel"],
.lr-fieldset input[type="number"],
.lr-fieldset input[type="date"],
.lr-fieldset select,
.lr-fieldset textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #0f172a;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-sizing: border-box;
}

.lr-fieldset input:focus,
.lr-fieldset select:focus,
.lr-fieldset textarea:focus {
	border-color: #2563eb;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lr-minor-checkbox-row {
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.lr-minor-fields {
	margin-top: 1.25rem;
	padding: 1.25rem;
	background: #fff8e6;
	border: 1px solid #ffeeba;
	border-radius: 8px;
	animation: lrFadeIn 0.3s ease;
}

.lr-checkbox-label, .lr-radio-label {
	display: flex !important;
	align-items: flex-start;
	font-weight: 500;
	font-size: 0.875rem;
	color: #334155;
	cursor: pointer;
	gap: 0.5rem;
}

.lr-checkbox-label input[type="checkbox"],
.lr-radio-label input[type="radio"] {
	margin-top: 0.2rem;
	cursor: pointer;
}

.lr-radio-group {
	display: flex;
	gap: 1.5rem;
	margin-top: 0.5rem;
}

.lr-radio-group-vertical {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.lr-definition {
	display: block;
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.25rem;
	font-weight: normal;
}

.lr-definition-jurada {
	display: block;
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.25rem;
	font-weight: normal;
	line-height: 1.4;
}

.lr-declaration-section {
	padding: 1rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 2rem;
}

.lr-submit-row {
	text-align: center;
}

.lr-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background-color: #2563eb;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
	transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.lr-submit-button:hover {
	background-color: #1d4ed8;
	transform: translateY(-1px);
}

.lr-submit-button:active {
	transform: translateY(1px);
}

.lr-submit-button:disabled {
	background-color: #94a3b8;
	cursor: not-allowed;
	transform: none;
}

/* Spinner */
.lr-btn-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: lrSpin 0.8s linear infinite;
	margin-left: 10px;
}

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

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

/* Messages */
.lr-message-box {
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: 0.875rem;
	animation: lrFadeIn 0.3s ease;
	line-height: 1.5;
}

.lr-message-box.lr-success {
	background-color: #d1fae5;
	border: 1px solid #10b981;
	color: #065f46;
}

.lr-message-box.lr-error {
	background-color: #fee2e2;
	border: 1px solid #ef4444;
	color: #991b1b;
}

.lr-success-title {
	font-weight: bold;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	display: block;
}

.lr-code-badge {
	display: inline-block;
	background: #047857;
	color: #ffffff;
	padding: 0.25rem 0.75rem;
	font-family: monospace;
	font-size: 1rem;
	border-radius: 4px;
	margin: 0.25rem 0;
	font-weight: bold;
}
