/**
 * Provider enquiry form — matches CCCS provider-enquiry page (purple panel layout).
 *
 * @package CCS_Quote_System
 */

.ccs-provider-enquiry {
	--ccs-pe-purple: #301b4d;
	--ccs-pe-purple-deep: #241338;
	--ccs-pe-border: rgba(255, 255, 255, 0.55);
	--ccs-pe-text: #ffffff;
	--ccs-pe-muted: rgba(255, 255, 255, 0.85);
	--ccs-pe-input-bg: #ffffff;
	--ccs-pe-input-text: #1e293b;
	--ccs-pe-radius: 6px;
	--ccs-pe-gap: 1.25rem;

	max-width: 42rem;
	margin: 0 auto 3rem;
	color: var(--ccs-pe-text);
	font-family: 'Montserrat', 'Outfit', system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

.ccs-provider-enquiry * {
	box-sizing: border-box;
}

.ccs-pe-message {
	padding: 1rem 1.25rem;
	border-radius: var(--ccs-pe-radius);
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.ccs-pe-message.success {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid var(--ccs-pe-border);
}

.ccs-pe-message.error {
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.5);
}

.ccs-pe-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--ccs-pe-gap);
}

@media (max-width: 640px) {
	.ccs-pe-row {
		grid-template-columns: 1fr;
	}
}

.ccs-pe-field {
	margin-bottom: var(--ccs-pe-gap);
}

.ccs-pe-field label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ccs-pe-text);
}

.ccs-pe-field label .ccs-pe-req {
	color: #ffb4a0;
	margin-left: 0.15rem;
}

.ccs-pe-field input[type="text"],
.ccs-pe-field input[type="email"],
.ccs-pe-field input[type="tel"],
.ccs-pe-field select,
.ccs-pe-field textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: none;
	border-radius: var(--ccs-pe-radius);
	background: var(--ccs-pe-input-bg);
	color: var(--ccs-pe-input-text);
	font: inherit;
}

.ccs-pe-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23301b4d' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

.ccs-pe-field textarea {
	min-height: 7rem;
	resize: vertical;
}

.ccs-pe-field input:focus,
.ccs-pe-field select:focus,
.ccs-pe-field textarea:focus {
	outline: 2px solid rgba(255, 255, 255, 0.65);
	outline-offset: 2px;
}

.ccs-pe-docs-heading {
	margin: 2rem 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 600;
}

.ccs-pe-docs-lead {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	color: var(--ccs-pe-muted);
}

.ccs-pe-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.85rem 1rem;
	margin-bottom: 0.75rem;
	border: 1px solid var(--ccs-pe-border);
	border-radius: var(--ccs-pe-radius);
	background: rgba(0, 0, 0, 0.12);
}

.ccs-pe-upload-label {
	flex: 1 1 12rem;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.35;
}

.ccs-pe-upload-control {
	flex: 1 1 14rem;
	min-width: 0;
	display: flex;
	align-items: center;
	font-size: 0.85rem;
	color: var(--ccs-pe-muted);
}

.ccs-pe-upload-control input[type="file"] {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	font-size: 0.85rem;
	color: var(--ccs-pe-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ccs-pe-upload-control input[type="file"]::file-selector-button {
	margin-right: 0.65rem;
	padding: 0.35rem 0.75rem;
	border: none;
	border-radius: 4px;
	background: #ffffff;
	color: var(--ccs-pe-input-text);
	font: inherit;
	cursor: pointer;
}

.ccs-pe-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ccs-pe-submit-wrap {
	text-align: center;
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
	width: 100%;
}

.ccs-pe-submit-wrap .ccs-pe-submit {
	display: inline-block;
	background-color: transparent;
	background-image: url("https://cccsl.org.au/wp-content/uploads/2025/07/but-1.webp");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	border: none;
	border-radius: 10px;
	color: #ffffff;
	cursor: pointer;
	font-family: "Brandon Grotesque", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.1em;
	min-width: 0;
	padding: 30px 80px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.ccs-pe-submit-wrap .ccs-pe-submit:hover,
.ccs-pe-submit-wrap .ccs-pe-submit:focus {
	background-color: transparent;
	color: #ffffff;
	opacity: 0.92;
	outline: none;
}

.ccs-pe-submit-wrap .ccs-pe-submit:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}
