@charset "UTF-8";

/* ==========================================================================
   Formmail Page Styles (Input, Confirm, Thanks)
   ========================================================================== */

.p-formmail {
	padding: 40px 20px;
	max-width: 960px;
	margin: 0 auto;
}

.p-formmail__header {
	text-align: center;
	margin-bottom: 32px;
}

.p-formmail__title {
	font-size: 1.875rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 12px;
}

.p-formmail__lead {
	font-size: 0.95rem;
	color: #475569;
	line-height: 1.6;
}

/* Notice Information Box */
.p-formmail__notice {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 32px;
	font-size: 0.875rem;
}

.p-formmail__notice-block + .p-formmail__notice-block {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed #cbd5e1;
}

.p-formmail__notice-title {
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.p-formmail__notice-text {
	color: #64748b;
	margin-bottom: 6px;
}

.p-formmail__notice-link,
.p-formmail__notice-list a {
	color: #0066cc;
	text-decoration: underline;
}

.p-formmail__notice-list {
	margin-top: 6px;
	line-height: 1.6;
}

/* ==========================================================================
   c-form Component (Table-less Layout)
   ========================================================================== */

.p-formmail__form-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 32px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.c-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.c-form__group {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 16px;
	align-items: start;
}

.c-form__label {
	font-weight: 700;
	color: #334155;
	font-size: 0.95rem;
	/* display: flex; */
	align-items: center;
	gap: 8px;
	padding-top: 8px;
}

/* Badges */
.c-form__badge {
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 500;
	white-space: nowrap;
}

.c-form__badge--required {
	background-color: #ef4444;
	color: #ffffff;
}

.c-form__badge--optional {
	background-color: #94a3b8;
	color: #ffffff;
}

.c-form__badge--note {
	background-color: #f59e0b;
	color: #ffffff;
}

/* Controls */
.c-form__control {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.c-form__input,
.c-form__select,
.c-form__textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 1rem;
	color: #1e293b;
	background-color: #ffffff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.c-form__input:focus,
.c-form__select:focus,
.c-form__textarea:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.c-form__textarea {
	resize: vertical;
	min-height: 160px;
}

.c-form__help {
	font-size: 0.8125rem;
	color: #94a3b8;
}

.c-form__privacy {
	text-align: center;
	margin-top: 12px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.c-form__checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.95rem;
	color: #334155;
}

.c-form__checkbox-label a {
	color: #0066cc;
	text-decoration: underline;
}

.c-form__action {
	text-align: center;
	margin-top: 16px;
}

/* ==========================================================================
   Confirm Page Styles
   ========================================================================== */

.c-confirm-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
}

.c-confirm-list {
	display: flex;
	flex-direction: column;
}

.c-confirm-list__item {
	display: grid;
	grid-template-columns: 240px 1fr;
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
}

.c-confirm-list__item:last-child {
	border-bottom: none;
}

.c-confirm-list__label {
	font-weight: 700;
	color: #475569;
	font-size: 0.95rem;
}

.c-confirm-list__value {
	color: #1e293b;
	font-size: 1rem;
	word-break: break-word;
}

.c-confirm-list__value--multiline {
	white-space: pre-wrap;
	line-height: 1;
}

.p-formmail__actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 32px;
}

.p-formmail__action-form {
	display: inline-block;
}

/* Buttons */
.c-btn-primary,
.c-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 32px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
	text-decoration: none;
	border: none;
}

.c-btn-primary {
	background-color: #0066cc;
	color: #ffffff;
}

.c-btn-primary:hover {
	background-color: #0052a3;
}

.c-btn-primary--large {
	padding: 14px 48px;
	font-size: 1.05rem;
}

.c-btn-secondary {
	background-color: #94a3b8;
	color: #ffffff;
}

.c-btn-secondary:hover {
	background-color: #64748b;
}

/* Alert Box */
.c-alert--danger {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 24px;
	font-size: 0.875rem;
}

/* ==========================================================================
   Thanks / Complete Page Styles
   ========================================================================== */

.p-thanks-card {
	text-align: center;
	max-width: 680px;
	margin: 0 auto;
	padding: 40px 32px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.p-thanks-card__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.p-thanks-card__title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.5;
	margin-bottom: 24px;
}

.p-thanks-card__body {
	text-align: left;
	color: #334155;
	font-size: 0.95rem;
	line-height: 1.7;
}

.p-thanks-card__note {
	margin-top: 12px;
	font-size: 0.875rem;
	color: #64748b;
}

.p-thanks-card__warning {
	background: #fffbe3;
	border: 1px solid #fde047;
	padding: 16px;
	border-radius: 8px;
	margin-top: 24px;
	font-size: 0.875rem;
	color: #713f12;
}

.p-thanks-card__action {
	margin-top: 32px;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.p-formmail {
		padding: 24px 16px;
	}

	.p-formmail__form-wrapper {
		padding: 20px 16px;
	}

	.c-form__group {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.c-form__label {
		padding-top: 0;
	}

	.c-confirm-list__item {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.p-formmail__actions {
		flex-direction: column-reverse;
		gap: 12px;
	}

	.c-btn-primary,
	.c-btn-secondary {
		width: 100%;
	}
}

.c-form__error {
	font-size: 0.8125rem;
	color: #dc2626;
	font-weight: 500;
	margin-top: 4px;
	display: block;
}