/**
 * GD Leads Manager – Frontend Styles
 * Premium Theme-Matched Design
 */

/* Hide the honeypot spam-trap field */
.gdlm-hp-field {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

/* Form container */
.gdlm-inquiry-form {
	margin: 0;
	padding: 0;
	font-family: inherit;
}

/* Field wrapper */
.gdlm-field-wrapper {
	margin-bottom: 18px;
}

.gdlm-field-wrapper label:not(.gdlm-file-upload-btn) {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #0f172a;
}

.gdlm-required {
	color: #ef4444;
	margin-left: 2px;
}

/* Inputs styling matching theme */
.gdlm-inquiry-form .regular-text,
.gdlm-inquiry-form .large-text,
.gdlm-inquiry-form select,
.gdlm-inquiry-form input[type="text"],
.gdlm-inquiry-form input[type="email"],
.gdlm-inquiry-form input[type="tel"],
.gdlm-inquiry-form input[type="number"],
.gdlm-inquiry-form input[type="url"],
.gdlm-inquiry-form input[type="date"],
.gdlm-inquiry-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #1e293b;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	transition: all 0.2s ease-in-out;
	outline: none;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.gdlm-inquiry-form textarea {
	min-height: 110px;
	resize: vertical;
}

.gdlm-inquiry-form input:focus,
.gdlm-inquiry-form select:focus,
.gdlm-inquiry-form textarea:focus {
	border-color: #1d63ed;
	box-shadow: 0 0 0 3px rgba(29, 99, 237, 0.15);
	background-color: #ffffff;
}

.gdlm-inquiry-form ::placeholder {
	color: #94a3b8;
	opacity: 1;
}

/* Custom File Upload Styling */
.gdlm-file-upload-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f8fafc;
	border: 1.5px dashed #cbd5e1;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease-in-out;
	position: relative;
}

.gdlm-file-upload-wrap:hover {
	border-color: #1d63ed;
	background: #eff6ff;
}

.gdlm-file-input {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	opacity: 0 !important;
	cursor: pointer !important;
	z-index: 5;
}

.gdlm-file-upload-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 600;
	color: #1d63ed;
	background: #ffffff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	pointer-events: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gdlm-file-chosen-name {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
	word-break: break-all;
}

/* Submit button */
.gdlm-form-actions {
	margin-top: 20px;
}

.gdlm-submit-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff !important;
	background-color: #1d63ed !important;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	box-shadow: 0 4px 6px -1px rgba(29, 99, 237, 0.2), 0 2px 4px -1px rgba(29, 99, 237, 0.1);
}

.gdlm-submit-btn:hover {
	background-color: #174fc4 !important;
	box-shadow: 0 6px 12px -2px rgba(29, 99, 237, 0.3);
}

.gdlm-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Error state on fields */
.gdlm-inquiry-form .gdlm-error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Success / Error messages */
.gdlm-message {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.gdlm-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.gdlm-error-msg,
div.gdlm-message.gdlm-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
