/* ACS Contact Form Frontend Styles */

.acs-contact-form-wrapper {
	--acs-primary: #0071e3;
	--acs-text: #1d1d1f;
	--acs-bg: #ffffff;
	--acs-radius: 8px;
	--acs-btn-radius: 20px;
	--acs-error: #e53935;
	--acs-border: #d2d2d7;

	max-width: 700px;
	margin: 0 auto;
	background: var(--acs-bg);
	color: var(--acs-text);
	padding: 40px;
	border-radius: var(--acs-radius);
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.acs-contact-form-wrapper * {
	box-sizing: border-box;
}

.acs-cf-row {
	margin-bottom: 24px;
}

.acs-cf-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 15px;
}

.acs-cf-req {
	background: var(--acs-primary);
	color: #fff;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: middle;
}

.acs-cf-opt {
	background: #eee;
	color: #666;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: middle;
}

.acs-cf-input,
.acs-cf-select {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 1px solid var(--acs-border);
	border-radius: var(--acs-radius);
	background: #fbfbfd;
	transition: all 0.3s ease;
	color: var(--acs-text);
}

.acs-cf-input:focus,
.acs-cf-select:focus {
	outline: none;
	border-color: var(--acs-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

textarea.acs-cf-input {
	resize: vertical;
	min-height: 100px;
}

.acs-cf-radio-group,
.acs-cf-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.acs-cf-radio-lbl,
.acs-cf-checkbox-lbl {
	display: flex;
	align-items: center;
	font-size: 15px;
	cursor: pointer;
}

.acs-cf-radio-lbl input,
.acs-cf-checkbox-lbl input {
	margin-right: 6px;
	cursor: pointer;
}

/* File Upload */
.acs-cf-file-upload-wrap {
	display: flex;
	align-items: center;
	gap: 15px;
}

.acs-cf-file-input {
	display: none;
}

.acs-cf-file-btn {
	background: #f1f1f1;
	border: 1px solid var(--acs-border);
	padding: 8px 16px;
	border-radius: var(--acs-btn-radius);
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

.acs-cf-file-btn:hover {
	background: #e5e5e5;
}

.acs-cf-file-info {
	font-size: 12px;
	color: #888;
}

.acs-cf-file-preview-list {
	list-style: none;
	padding: 0;
	margin: 10px 0 0 0;
}

.acs-cf-file-preview-list li {
	font-size: 13px;
	background: #f9f9f9;
	padding: 6px 10px;
	border-radius: 4px;
	margin-bottom: 5px;
	display: flex;
	justify-content: space-between;
}

.acs-cf-file-remove {
	color: var(--acs-error);
	cursor: pointer;
	font-weight: bold;
}

/* Submit Button */
.acs-cf-submit-row {
	text-align: center;
	margin-top: 30px;
}

.acs-cf-submit-btn {
	background: var(--acs-primary);
	color: #fff;
	border: none;
	padding: 14px 40px;
	font-size: 16px;
	font-weight: 600;
	border-radius: var(--acs-btn-radius);
	cursor: pointer;
	transition: opacity 0.3s, transform 0.1s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
}

.acs-cf-submit-btn:hover {
	opacity: 0.9;
}

.acs-cf-submit-btn:active {
	transform: scale(0.98);
}

.acs-cf-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.acs-cf-spinner svg {
	width: 20px;
	height: 20px;
	animation: acs-rotate 2s linear infinite;
	margin-left: 10px;
}

.acs-cf-spinner circle {
	stroke: #fff;
	stroke-dasharray: 1, 200;
	stroke-dashoffset: 0;
	animation: acs-dash 1.5s ease-in-out infinite;
	stroke-linecap: round;
}

@keyframes acs-rotate {
	100% { transform: rotate(360deg); }
}

@keyframes acs-dash {
	0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
	50% { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; }
	100% { stroke-dasharray: 90, 200; stroke-dashoffset: -124px; }
}

/* Error Messages */
.acs-cf-err-msg {
	color: var(--acs-error);
	font-size: 13px;
	margin-top: 5px;
	display: none;
}

.has-error .acs-cf-input,
.has-error .acs-cf-select {
	border-color: var(--acs-error);
}

.has-error .acs-cf-err-msg {
	display: block;
}

/* Response Message */
.acs-cf-response-msg {
	padding: 20px;
	border-radius: var(--acs-radius);
	text-align: center;
	font-weight: 600;
}

.acs-cf-response-success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}

.acs-cf-response-error {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ffcdd2;
}

@media (max-width: 600px) {
	.acs-contact-form-wrapper {
		padding: 20px;
	}
	.acs-cf-file-upload-wrap {
		flex-direction: column;
		align-items: flex-start;
	}
}
