/* Gift Ka Shop Form Builder - frontend styles */

.gks-form-wrapper {
	--gks-form-width: 100%;
	--gks-field-spacing: 16px;
	--gks-label-size: 14px;
	--gks-input-height: 44px;
	--gks-input-border: 1px solid #d6d9dd;
	--gks-border-radius: 8px;
	--gks-input-bg: #ffffff;
	--gks-input-text-color: #1f2937;
	--gks-placeholder-color: #9ca3af;
	--gks-button-text-color: #ffffff;
	--gks-button-bg: #4f46e5;
	--gks-button-hover-bg: #4338ca;
	--gks-button-radius: 8px;
	--gks-form-bg: transparent;

	max-width: var(--gks-form-width);
	background: var(--gks-form-bg);
	box-sizing: border-box;
	font-family: inherit;
}
.gks-form-wrapper * { box-sizing: border-box; }

.gks-fields-grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gks-field-spacing);
}
.gks-field { flex: 0 0 100%; max-width: 100%; }
.gks-field.gks-col-6 { flex: 0 0 calc(50% - (var(--gks-field-spacing) / 2)); max-width: calc(50% - (var(--gks-field-spacing) / 2)); }
.gks-field.gks-col-4 { flex: 0 0 calc(33.333% - (var(--gks-field-spacing) * 2 / 3)); max-width: calc(33.333% - (var(--gks-field-spacing) * 2 / 3)); }

@media (max-width: 640px) {
	.gks-field.gks-col-6, .gks-field.gks-col-4 { flex: 0 0 100%; max-width: 100%; }
}

.gks-label { display: block; font-size: var(--gks-label-size); font-weight: 600; margin-bottom: 6px; color: var(--gks-input-text-color); }
.gks-required { color: #d63638; }

.gks-input {
	width: 100%;
	min-height: var(--gks-input-height);
	border: var(--gks-input-border);
	border-radius: var(--gks-border-radius);
	background: var(--gks-input-bg);
	color: var(--gks-input-text-color);
	padding: 0 12px;
	font-size: 14px;
}
textarea.gks-input { min-height: 100px; padding: 10px 12px; }
.gks-input::placeholder { color: var(--gks-placeholder-color); }
.gks-input:focus { outline: 2px solid var(--gks-button-bg); outline-offset: 1px; }

.gks-choice { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; font-weight: 400; }
.gks-choice input { width: auto; min-height: auto; }

.gks-description { font-size: 12px; color: #6b7280; margin: 6px 0 0; }
.gks-field-error { display: block; font-size: 12px; color: #d63638; margin-top: 4px; }

.gks-submit-btn {
	margin-top: 18px;
	background: var(--gks-button-bg);
	color: var(--gks-button-text-color);
	border: none;
	border-radius: var(--gks-button-radius);
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.gks-submit-btn:hover { background: var(--gks-button-hover-bg); }
.gks-submit-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.gks-form-message {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 14px;
}
.gks-success-message { background: #e6f4ea; color: #1e7e34; }
.gks-error-message { background: #fdecea; color: #d63638; }

.gks-custom-html { margin-bottom: 16px; }

/* Submission portal */
.gks-portal { max-width: 900px; }
.gks-portal-login { max-width: 380px; }
.gks-portal-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gks-portal-header { display: flex; justify-content: space-between; align-items: center; }
.gks-portal-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gks-portal-search .gks-input { width: auto; flex: 1 1 160px; min-height: 40px; }
.gks-portal-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.gks-portal-table th, .gks-portal-table td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; font-size: 14px; }
.gks-pagination { display: flex; gap: 6px; margin-top: 14px; }
.gks-pagination a { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; }
.gks-pagination a.active { background: var(--gks-button-bg, #4f46e5); color: #fff; border-color: transparent; }
.gks-detail-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.gks-detail-table th, .gks-detail-table td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: 14px; }
.gks-back-link, .gks-logout-link { text-decoration: none; }
