/**
 * feedback.css — Feedback form styles (1:1 replica of old feedback-cn.html inline CSS)
 * Applied to the article-bottom feedback form injected via article/default.php override.
 */

/* Feedback container */
.ja-feedback {
	clear: both; /* 上方 .foot-link 是左浮动, 不清除表单会漂到表格右侧 */
	border-bottom: 1px solid #EEE;
	padding: 10px 0;
	margin: 20px 0 0;
}

.ja-feedback h4 {
	margin: 0 0 8px 0;
	font-weight: unset;
	color: #666;
	font-size: 16px;
}

.ja-feedback form { margin: 0; }

/* Grid columns (old site used col_one_fourth / col_full) */
.ja-feedback .col_one_fourth {
	display: block;
	position: relative;
	float: left;
	width: 23.5%;
	margin-right: 2%;
	margin-bottom: 10px;
}

.ja-feedback .col_full {
	display: block;
	position: relative;
	float: none;
	width: 100%;
	margin-right: 0;
	margin-bottom: 10px;
	clear: both;
}

.ja-feedback .clear {
	clear: both;
	display: block;
	font-size: 0;
	height: 0;
	line-height: 0;
	width: 100%;
	overflow: hidden;
}

/* Inputs */
.ja-feedback .sm-form-control {
	display: block;
	width: 100%;
	height: 38px;
	padding: 8px 14px;
	font-size: 15px;
	line-height: 1.42857143;
	color: #555;
	background-color: #fff;
	background-image: none;
	border: 1px solid #DDD;
	border-radius: 3px !important;
	-webkit-transition: border-color ease-in-out .15s;
	-o-transition: border-color ease-in-out .15s;
	transition: border-color ease-in-out .15s;
	box-sizing: border-box;
}

.ja-feedback textarea.sm-form-control {
	height: auto;
	min-height: 60px;
	resize: vertical;
}

/* Submit button */
.ja-feedback .button {
	display: inline-block;
	position: relative;
	cursor: pointer;
	outline: 0;
	white-space: nowrap;
	padding: 0 22px;
	height: 40px;
	line-height: 40px;
	background-color: #0382c1;
	color: #FFF;
	font-weight: 600;
	letter-spacing: 1px;
	border: 0;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
	border-radius: 3px;
	-webkit-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

.ja-feedback .button:hover {
	background-color: #069 !important;
	opacity: .9;
}

.ja-feedback .button:disabled {
	opacity: .5;
	cursor: wait;
}

.ja-feedback #submit-button {
	height: 45px;
	width: 100%;
	font-size: 15px;
}

/* AJAX status message */
.ja-feedback-msg {
	padding: 8px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
	display: none;
	font-size: 14px;
}

.ja-feedback-msg.success {
	display: block;
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.ja-feedback-msg.error {
	display: block;
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsive */
@media only screen and (max-width: 720px) and (min-width: 100px) {
	.ja-feedback .col_one_fourth {
		width: 100%;
		margin-right: 0;
		margin-bottom: 10px;
	}
	.ja-feedback .sm-form-control {
		height: 30px;
		padding: 4px 14px;
		font-size: 14px;
	}
}
