/* contact.css - お問い合わせフォーム */

.contact-form-section {
	max-width: 640px;
	margin: 0 auto;
}

/* 生体カード（問い合わせ対象） */
.contact-stock-card {
	margin-bottom: 1.5em;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.contact-stock-card-header {
	padding: 0.5em 0.8em;
	font-size: 0.8em;
	color: #666;
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
}

.contact-stock-card-body {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 0.8em;
	padding: 0.8em;
	text-decoration: none;
	color: inherit;
}

.contact-stock-card-body:hover {
	background: #fafafa;
}

.contact-stock-card-photo img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}

.contact-stock-card-slogan {
	font-size: 0.75em;
	color: #888;
	margin-bottom: 0.15em;
}

.contact-stock-card-name {
	font-size: 1.1em;
	font-weight: bold;
}

.contact-stock-card-variety {
	font-weight: normal;
	margin-left: 0.3em;
}

.contact-stock-card-meta {
	font-size: 0.85em;
	color: #666;
	margin-top: 0.2em;
}

.contact-stock-card-price {
	margin-left: 0.5em;
	font-weight: bold;
	color: #c33;
}

/* フォーム */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

.contact-form-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 0.4em;
}

.contact-form-group label .required {
	color: #c33;
}

.contact-form-group input[type="text"],
.contact-form-group input[type="email"],
.contact-form-group textarea {
	display: block;
	width: 100%;
	padding: 0.6em 0.8em;
	font-size: 1em;
	font-family: inherit;
	border: 1px solid #ccc;
	background-color: #fff;
	color: inherit;
	box-sizing: border-box;
}

.contact-form-group textarea {
	resize: vertical;
	min-height: 10em;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
	color: #aaa;
}

/* CAPTCHA */
.contact-captcha-row {
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin-bottom: 0.4em;
}

.contact-captcha-row img {
	border: 1px solid #ccc;
}

.contact-captcha-refresh {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.4em;
	height: 2.4em;
	padding: 0;
	border: 1px solid #ccc;
	background: #f6f6f6;
	color: inherit;
	cursor: pointer;
}

.contact-captcha-hint {
	font-size: 0.85em;
	color: #666;
	margin: 0.3em 0 0.5em;
}

.contact-captcha-group input[type="text"] {
	max-width: 200px;
}

/* 送信ボタン */
.contact-form-submit {
	text-align: center;
	margin-top: 0.5em;
}

.contact-form-submit button {
	display: inline-block;
	padding: 0.8em 3em;
	font-size: 1em;
	font-family: inherit;
	font-weight: bold;
	border: none;
	background-color: #333;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s;
}

.contact-form-submit button:hover {
	opacity: 0.8;
}

/* 成功メッセージ */
.contact-success {
	text-align: center;
	padding: 2em 1em;
}

.contact-success p:first-child {
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3em;
}

.contact-success .icon{
	fill: #2e7d32;
	width: 1.2em;
	height: 1.2em;
	flex-shrink: 0;
}

.contact-success a {
	display: inline-block;
	margin-top: 1em;
}

/* エラーメッセージ */
.contact-errors {
	padding: 1em;
	margin-bottom: 1.5em;
	background-color: #fef2f2;
	border: 1px solid #fca5a5;
}

.contact-errors ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.contact-errors li {
	color: #b91c1c;
	padding: 0.2em 0;
}

/* 文字数カウンター */
.contact-char-count {
	text-align: right;
	font-size: 0.8em;
	color: #888;
	margin: 0.3em 0 0;
}

.contact-char-limit-msg {
	display: none;
}

.contact-char-count.at-limit {
	color: #c33;
	font-weight: bold;
}

.contact-char-count.at-limit .contact-char-limit-msg {
	display: inline;
}

.contact-form-group textarea.at-limit {
	border-color: #c33;
	outline-color: #c33;
}

/* 注記 */
.contact-note {
	margin-top: 2em;
	font-size: 0.85em;
	color: #666;
}
