/**
 * Gravity Forms Custom Radio Field Styles
 *
 * @package    WAT_Plugin
 * @subpackage WAT_Plugin/public/css
 */

/* Container */
.wat-custom-radio-container {
	display: flex !important;
	flex-direction: column !important;
	gap: 1rem !important;
}

.wat-custom-radio-container.wat-custom-radio-horizontal {
	flex-direction: row !important;
	flex-wrap: wrap !important;
}

.wat-custom-radio-container.wat-custom-radio-vertical {
	flex-direction: column !important;
}
/* Individual Radio Item */
.wat-custom-radio-item {
	display: flex !important;
	align-items: flex-start !important;
	padding: 1.5rem !important; /* p-6 equivalent */
	background-color: #f5f5f5 !important;
	border-radius: 0.5rem !important; /* rounded-lg equivalent */
	border: 1px solid #d1d5db !important; /* border-gray-300 equivalent */
	transition: all 0.2s ease !important;
	cursor: pointer !important;
	position: relative !important;
	margin-bottom: 1rem !important;
    text-transform: capitalize !important;
}
.wat-custom-radio-item label {
	padding-left: 5px !important;
}
.wat-custom-radio-item label span {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    cursor: pointer !important;
    margin: 0 !important;
}
.wat-custom-radio-item label span:nth-child(2) {
    padding-top: 5px !important;
    color: #666 !important;
    
}

.wat-custom-radio-item:hover {
	background-color: #eeeeee;
	border-color: #d1d5db;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.wat-custom-radio-item input[type="radio"] {
	margin-right: 0.75rem;
	margin-top: 0.25rem;
	flex-shrink: 0;
	cursor: pointer;
}

.wat-custom-radio-item input[type="radio"]:checked + .wat-custom-radio-label {
	color: inherit;
}

.wat-custom-radio-item:has(input[type="radio"]:checked) {
	background-color: #e8f4f8;
	border-color: #4a90e2;
	box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Fallback for browsers that don't support :has() */
.wat-custom-radio-item input[type="radio"]:checked ~ .wat-custom-radio-label {
	/* Label styling when checked */
}

.wat-custom-radio-item input[type="radio"]:checked {
	/* Radio button styling when checked */
}

/* Label */
.wat-custom-radio-label {
	display: flex;
	flex-direction: column;
	flex: 1;
	cursor: pointer;
	margin: 0;
}

/* Title */
.wat-custom-radio-title {
	font-weight: 600;
	font-size: 1rem;
	color: #333;
	margin-bottom: 0.25rem;
	line-height: 1.4;
}

/* Description */
.wat-custom-radio-description {
	font-size: 0.875rem;
	color: #666;
	line-height: 1.4;
	margin-top: 0.25rem;
}

/* Horizontal Layout Adjustments */
.wat-custom-radio-horizontal .wat-custom-radio-item {
	flex: 1;
	min-width: 200px;
	max-width: 100%;
}

/* Form Editor Styles */
.gform_editor .wat-custom-radio-container {
	pointer-events: none;
}

.gform_editor .wat-custom-radio-item {
	cursor: default;
}

/* Settings Table in Form Editor */
.wat-custom-radio-items-table {
	border-collapse: collapse;
	margin-bottom: 10px;
}

.wat-custom-radio-items-table th,
.wat-custom-radio-items-table td {
	padding: 8px;
	border: 1px solid #ddd;
	text-align: left;
}

.wat-custom-radio-items-table th {
	background-color: #f5f5f5;
	font-weight: 600;
}

.wat-custom-radio-items-table input[type="text"] {
	width: 100%;
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.wat-custom-radio-items-table .wat-custom-radio-add-item,
.wat-custom-radio-items-table .wat-custom-radio-remove-item {
	min-width: 30px;
	padding: 4px 8px;
	font-size: 16px;
	line-height: 1;
	font-weight: bold;
	cursor: pointer;
}

.wat-custom-radio-items-table .wat-custom-radio-add-item {
	background-color: #46b450;
	color: white;
	border-color: #46b450;
}

.wat-custom-radio-items-table .wat-custom-radio-add-item:hover {
	background-color: #3a9e42;
	border-color: #3a9e42;
}

.wat-custom-radio-items-table .wat-custom-radio-remove-item {
	background-color: #dc3232;
	color: white;
	border-color: #dc3232;
}

.wat-custom-radio-items-table .wat-custom-radio-remove-item:hover {
	background-color: #b52727;
	border-color: #b52727;
}

/* Responsive */
@media (max-width: 768px) {
	.wat-custom-radio-container.wat-custom-radio-horizontal {
		flex-direction: column;
	}

	.wat-custom-radio-horizontal .wat-custom-radio-item {
		min-width: 100%;
	}
}

