/* TCGMadrid Service Forms Styles */

/* Form Container */
.tcgmadrid-service-form {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

.tcgmadrid-form-header {
	margin-bottom: 30px;
}

.tcgmadrid-form-header h3 {
	color: #0a7ba6;
	font-size: 28px;
	margin-bottom: 10px;
}

.tcgmadrid-form-header p {
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

/* Form Notices */
.tcgmadrid-form-notice {
	padding: 15px;
	margin: 20px 0;
	border-radius: 5px;
	border-left: 4px solid;
}

.tcgmadrid-form-notice.warning {
	background-color: #fff3cd;
	border-color: #ffc107;
	color: #856404;
}

/* Pricing Table */
.tcgmadrid-pricing-table {
	margin: 20px 0;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 5px;
}

.tcgmadrid-pricing-table h4 {
	margin-top: 0;
	color: #2e4453;
}

.tcgmadrid-pricing-table table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.tcgmadrid-pricing-table th,
.tcgmadrid-pricing-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.tcgmadrid-pricing-table th {
	background-color: #0a7ba6;
	color: white;
	font-weight: bold;
}

/* Cards Container */
.tcgmadrid-cards-container,
.tcgmadrid-cards-container-restauracion {
	margin-bottom: 20px;
}

/* Card Item */
.tcgmadrid-card-item,
.tcgmadrid-card-item-restauracion {
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border: 2px solid #0a7ba6;
	border-radius: 8px;
	position: relative;
	transition: all 0.3s ease;
}

.tcgmadrid-card-item:hover,
.tcgmadrid-card-item-restauracion:hover {
	box-shadow: 0 4px 12px rgba(10, 123, 166, 0.15);
}

/* Card Header */
.tcgmadrid-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #0a7ba6;
}

.tcgmadrid-card-header h4 {
	margin: 0;
	color: #0a7ba6;
	font-size: 20px;
}

.tcgmadrid-card-actions {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

.tcgmadrid-toggle-card,
.tcgmadrid-toggle-card-restauracion {
	background: #f2f8fb;
	color: #0a7ba6;
	border: 1px solid #0a7ba6;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.3s ease, color 0.3s ease;
}

.tcgmadrid-toggle-card:hover,
.tcgmadrid-toggle-card-restauracion:hover {
	background: #e7f3ff;
	color: #085f80;
}

.tcgmadrid-card-item.is-collapsed .tcgmadrid-card-body,
.tcgmadrid-card-item-restauracion.is-collapsed .tcgmadrid-card-body {
	display: none;
}

/* Remove Card Button */
.tcgmadrid-remove-card,
.tcgmadrid-remove-card-restauracion {
	background: #e74c3c;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: background 0.3s ease;
}

.tcgmadrid-remove-card:hover,
.tcgmadrid-remove-card-restauracion:hover {
	background: #c0392b;
}

.tcgmadrid-remove-card .dashicons,
.tcgmadrid-remove-card-restauracion .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

/* Add Card Button Wrapper */
.tcgmadrid-add-card-wrapper {
	text-align: center;
	margin: 30px 0;
}

/* Secondary Button (Add Card) */
.tcgmadrid-btn-secondary {
	background-color: #27ae60;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tcgmadrid-btn-secondary:hover {
	background-color: #229954;
}

.tcgmadrid-btn-secondary .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

/* Card Item Sub-headers */
.tcgmadrid-card-item h5,
.tcgmadrid-card-item-restauracion h5 {
	color: #2e4453;
	font-size: 16px;
	margin-top: 25px;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 1px solid #ddd;
}

.tcgmadrid-card-item-restauracion h5:first-of-type {
	margin-top: 0;
}

/* Form Description */
.tcgmadrid-form-description {
	background: #e7f3ff;
	border-left: 4px solid #0a7ba6;
	padding: 12px 15px;
	margin: 0 0 20px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #2e4453;
	border-radius: 4px;
}

/* Form Sections */
.tcgmadrid-form-section {
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.tcgmadrid-form-section h4 {
	margin-top: 0;
	color: #2e4453;
	border-bottom: 2px solid #0a7ba6;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

/* Form Fields */
.tcgmadrid-form-field {
	margin-bottom: 20px;
}

.tcgmadrid-form-field label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
	color: #333;
}

.tcgmadrid-form-field label.white-text {
	color: #fff !important;
}

.tcgmadrid-form-field .required {
	color: #e74c3c;
}

.tcgmadrid-form-field input[type="text"],
.tcgmadrid-form-field input[type="number"],
.tcgmadrid-form-field input[type="email"],
.tcgmadrid-form-field select,
.tcgmadrid-form-field textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.tcgmadrid-form-field input[type="file"] {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9f9f9;
	width: 100%;
}

.tcgmadrid-form-field small {
	display: block;
	margin-top: 5px;
	color: #666;
	font-size: 13px;
}

/* Radio and Checkbox Groups */
.tcgmadrid-radio-group label,
.tcgmadrid-checkbox-group label {
	display: inline-block;
	margin-right: 20px;
	font-weight: normal;
	cursor: pointer;
}

.tcgmadrid-radio-group input[type="radio"],
.tcgmadrid-checkbox-group input[type="checkbox"] {
	margin-right: 5px;
}

.tcgmadrid-checkbox-group label {
	display: block;
	margin-bottom: 10px;
}

/* Image Upload Preview */
.tcgmadrid-image-preview {
	margin-top: 10px;
}

.tcgmadrid-image-preview img {
	max-width: 200px;
	border: 2px solid #ddd;
	border-radius: 4px;
	padding: 5px;
}

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

/* Buttons */
.tcgmadrid-btn {
	display: inline-block;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tcgmadrid-btn-primary {
	background-color: #0a7ba6;
	color: #fff;
}

.tcgmadrid-btn-primary:hover {
	background-color: #096a90;
}

.tcgmadrid-btn-small {
	padding: 6px 12px;
	font-size: 14px;
}

.tcgmadrid-btn-success {
	background-color: #28a745;
	color: #fff;
}

.tcgmadrid-btn-success:hover {
	background-color: #218838;
}

/* Form Messages */
.tcgmadrid-form-messages {
	margin-top: 20px;
}

.tcgmadrid-success,
.tcgmadrid-error {
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
}

.tcgmadrid-success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.tcgmadrid-error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* Workflow Steps */
.tcgmadrid-form-workflow {
	margin-top: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 5px;
}

.tcgmadrid-form-workflow h4 {
	margin-top: 0;
	color: #2e4453;
}

.tcgmadrid-form-workflow ol {
	margin-left: 20px;
}

.tcgmadrid-form-workflow li {
	margin-bottom: 10px;
	line-height: 1.6;
}

/* Restoration Types */
.tcgmadrid-restoration-types {
	margin: 20px 0;
	padding: 20px;
	background: #f0f8ff;
	border-radius: 5px;
}

.tcgmadrid-restoration-types h4 {
	margin-top: 0;
	color: #2e4453;
}

.tcgmadrid-restoration-types ul {
	margin-left: 20px;
}

/* Login Required */
.tcgmadrid-login-required {
	padding: 30px;
	background: #f9f9f9;
	border-radius: 5px;
	text-align: center;
}

/* My Account - Service Requests */
.tcgmadrid-service-requests-dashboard {
	padding: 20px 0;
}

.tcgmadrid-service-requests-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.tcgmadrid-service-requests-table th,
.tcgmadrid-service-requests-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.tcgmadrid-service-requests-table th {
	font-weight: bold;
}

/* Status Badges */
.tcgmadrid-status-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.tcgmadrid-status-pending-approval {
	background: #f8dda7;
	color: #94660c;
}

.tcgmadrid-status-awaiting-shipment {
	background: #c6e1c6;
	color: #5b841b;
}

.tcgmadrid-status-in-review {
	background: #d7cbe6;
	color: #634878;
}

.tcgmadrid-status-payment-sent {
	background: #c8e1c8;
	color: #0c7c3c;
}

.tcgmadrid-status-completed-cert,
.tcgmadrid-status-completed {
	background: #c9e1ec;
	color: #0a7ba6;
}

.tcgmadrid-status-pending {
	background: #f8dda7;
	color: #94660c;
}

.tcgmadrid-status-processing {
	background: #c8d7e1;
	color: #2e4453;
}

.tcgmadrid-status-cancelled {
	background: #f5c6cb;
	color: #721c24;
}

/* Next Action */
.tcgmadrid-next-action {
	padding: 15px;
	background: #79c1cb;
	border-left: 4px solid #0a7ba6;
	margin-top: 10px;
	border-radius: 4px;
}

.tcgmadrid-offer-details {
	margin-top: 15px;
	padding: 15px;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #ddd;
	color: #000000;
}

.tcgmadrid-shipping-info {
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
	white-space: pre-line;
}

/* No Requests */
.tcgmadrid-no-requests {
	text-align: center;
	padding: 40px;
	background: #f9f9f9;
	border-radius: 5px;
}

/* Service Badge (Admin) */
.tcgmadrid-service-badge {
	background: #0a7ba6;
	color: white;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
	.tcgmadrid-service-requests-table {
		font-size: 14px;
	}
	
	.tcgmadrid-service-requests-table th,
	.tcgmadrid-service-requests-table td {
		padding: 8px;
	}
	
	.tcgmadrid-request-action-row td {
		display: block;
		width: 100%;
	}
	
	.tcgmadrid-radio-group label {
		display: block;
		margin-bottom: 10px;
	}
	
	.tcgmadrid-card-header {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		flex-wrap: nowrap;
	}

	.tcgmadrid-card-actions {
		margin-left: auto;
		gap: 6px;
	}
	
	.tcgmadrid-card-header h4 {
		font-size: 18px;
	}
	
	.tcgmadrid-toggle-card,
	.tcgmadrid-toggle-card-restauracion,
	.tcgmadrid-remove-card,
	.tcgmadrid-remove-card-restauracion {
		padding: 6px 8px;
	}

	.tcgmadrid-toggle-label,
	.tcgmadrid-action-label {
		display: none;
	}
	
	.tcgmadrid-btn-secondary {
		width: 100%;
		justify-content: center;
	}
}

/* Certificate styles */
.tcgmadrid-certificates {
	margin-top: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-left: 4px solid #0a7ba6;
	border-radius: 4px;
}

.tcgmadrid-certificates h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #0a7ba6;
	font-size: 16px;
}

.certificate-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.certificate-list li {
	padding: 10px;
	margin: 5px 0;
	background: white;
	border-radius: 4px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.certificate-list .dashicons {
	color: #0a7ba6;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.certificate-list .certificate-link {
	color: #0a7ba6;
	text-decoration: none;
	font-weight: 500;
}

.certificate-list .certificate-link:hover {
	text-decoration: underline;
}

.certificate-list .certificate-type {
	font-size: 12px;
	color: #666;
	font-style: italic;
}

/* Admin certificate upload styles */
.tcgmadrid-certificates-admin .certificate-upload-row {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-left: 4px solid #0a7ba6;
}

.tcgmadrid-certificates-admin .certificate-upload-row h4 {
	margin-top: 0;
	color: #0a7ba6;
}

.tcgmadrid-certificates-admin .certificate-file {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.tcgmadrid-certificates-admin .certificate-file .dashicons {
	color: #0a7ba6;
	font-size: 20px;
}

.tcgmadrid-certificates-admin .certificate-upload-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.tcgmadrid-certificates-admin .upload-status {
	font-weight: 500;
}

