/* =========================================================
 * Agung Rejeki — Contact Form
 * Temporary child-theme implementation.
 * Final location: ARBS plugin frontend assets.
 * ======================================================= */

.ar-cf7-form {
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
}

.ar-form-intro {
	margin-bottom: 28px;
	padding: 24px;
	border: 1px solid #e1e5ec;
	border-radius: 10px;
	background: #f8f9fc;
}

.ar-form-intro h3 {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.3;
}

.ar-form-intro p {
	margin: 0;
	color: #5e6675;
	line-height: 1.7;
}

.ar-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

.ar-form-col,
.ar-form-col-full {
	min-width: 0;
}

.ar-form-col-full {
	grid-column: 1 / -1;
}

.ar-cf7-form label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
	line-height: 1.4;
}

.ar-cf7-form input:not([type="checkbox"]):not([type="submit"]),
.ar-cf7-form select,
.ar-cf7-form textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid #d7dce5;
	border-radius: 4px;
	background: #fff;
	color: #172033;
	font: inherit;
	line-height: 1.5;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.ar-cf7-form textarea {
	min-height: 160px;
	resize: vertical;
}

.ar-cf7-form input:focus,
.ar-cf7-form select:focus,
.ar-cf7-form textarea:focus {
	border-color: #35308c;
	box-shadow: 0 0 0 3px rgba(53, 48, 140, 0.12);
	outline: none;
}

.ar-form-consent,
.ar-form-disclaimer {
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.65;
	color: #596274;
}

.ar-form-consent .wpcf7-list-item {
	margin: 0;
}

.ar-form-consent label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	font-weight: 400;
}

.ar-form-consent input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 4px;
}

.ar-form-captcha {
	margin-top: 18px;
}

.ar-submit-btn {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 20px;
	padding: 12px 20px;
	border: 0;
	border-radius: 4px;
	background: #35308c;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.ar-submit-btn:hover {
	opacity: 0.92;
}

.ar-submit-btn:active {
	transform: translateY(1px);
}

.ar-submit-btn:disabled {
	cursor: wait;
	opacity: 0.65;
}

.ar-cf7-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.45;
}

.ar-cf7-form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-radius: 4px;
	line-height: 1.6;
}

@media (max-width: 782px) {
	.ar-form-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-bottom: 16px;
	}

	.ar-form-col-full {
		grid-column: auto;
	}

	.ar-form-intro {
		padding: 20px;
	}

	.ar-form-intro h3 {
		font-size: 21px;
	}
}

@media (max-width: 480px) {
	.ar-form-intro {
		padding: 17px;
	}

	.ar-cf7-form input:not([type="checkbox"]):not([type="submit"]),
	.ar-cf7-form select,
	.ar-cf7-form textarea {
		font-size: 16px;
	}
}
.ar-submit-btn:disabled,
.ar-submit-btn[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
	filter: grayscale(0.15);
}

.ar-submit-btn:not(:disabled) {
	cursor: pointer;
	opacity: 1;
}