/* ============================================================
   Inquiry Form Widget
   ============================================================ */

.if-form {
	background: #fff;
	padding: 40px 50px;
	box-sizing: border-box;
	width: 100%;
}

.if-form *,
.if-form *::before,
.if-form *::after {
	box-sizing: border-box;
}

.if-title {
	margin: 0 0 30px;
	color: #E8EEF7;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

.if-field {
	margin-bottom: 20px;
}

.if-label {
	display: block;
	margin-bottom: 8px;
	color: #C8102E;
	font-weight: 700;
	font-size: 15px;
}

.if-form .if-input {
	display: block;
	width: 100%;
	padding: 14px 16px;
	background: #F5F5F7;
	border: 0;
	box-shadow: none;
	border-radius: 4px;
	color: #333;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	transition: box-shadow .2s, background .2s;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.if-form .if-input::placeholder {
	color: #999;
}

.if-form .if-input:focus {
	box-shadow: 0 0 0 1px #C8102E inset;
	background: #fff;
}

.if-textarea {
	resize: vertical;
	min-height: 120px;
}

/* ---- File upload ---- */
.if-file-field {
	position: relative;
}

.if-file-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 16px;
	background: #F5F5F7;
	color: #C8102E;
	border: 1px solid transparent;
	border-radius: 4px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s;
}

.if-file-btn:hover {
	background: #EDEDF0;
}

.if-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.if-file-list {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.if-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #E5E5E8;
	border-radius: 4px;
	font-size: 14px;
	color: #555;
}

.if-file-item-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	margin-right: 10px;
}

.if-file-item-remove {
	background: none;
	border: 0;
	color: #C8102E;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0 4px;
}

/* ---- Submit ---- */
.if-submit {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 16px 24px;
	background: #1A1F5C;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s, opacity .2s;
	font-family: inherit;
}

.if-submit:hover {
	background: #2A316F;
}

.if-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* ---- Messages ---- */
.if-messages {
	margin-top: 16px;
}

.if-msg {
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.if-msg-success {
	background: #E7F5EC;
	color: #1C7A3F;
	border: 1px solid #B7E0C3;
}

.if-msg-error {
	background: #FDECEE;
	color: #C8102E;
	border: 1px solid #F5C2C7;
}

/* ---- Honeypot ---- */
.if-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.if-form {
		padding: 24px 20px;
	}

	.if-title {
		font-size: 24px;
	}
}
