
#form ,
#privacy {
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.caption1 {
	font-size: 180%;
	font-weight:bold;
	border-bottom:2px solid var(--accent);
	text-align:center;
}

/* ==============================================
	form reset
============================================== */

button ,input ,textarea ,select {
	font-size:inherit;
	padding:0.3em 0.6em;
	font-family:inherit;
	border:1px solid #999;
	border-radius:0.3em;
	outline:0 none;
}
input[type="submit"] ,button {
	padding:0.5em 2em 0.7em;
	background:#eee;
	cursor:pointer;
}

input:not([type="submit"]) ,textarea {
	width:24em;
}
textarea {
	height:6em;
}
@media screen and (max-width:799px) {
	input:not([type="submit"]) ,textarea {
		width:100%;
	}
}

.error {
	display:block;
	color:#f00;
	font-weight:bold;
}


/* ==============================================
	form table
============================================== */
.formTable {
	width:100%;
	border-spacing:1em;
	border-collapse:separate;
	font-size:110%;
}
.formTable th {
	width:40%;
	text-align:right;
	vertical-align:top;
	padding-top:0.3em;
}
.formTable td {
	width:60%;
}

.status2 .formTable th {
	padding-top:0;
}

@media screen and (max-width:799px) {
	.formTable ,.formTable caption ,
	.formTable thead ,.formTable tbody ,.formTable tfoot ,
	.formTable tr ,.formTable th ,.formTable td {
		display:block;
		width:100%;
		text-align:left;
	}

	.formTable {
		padding:1em 1em 0;
	}
	.formTable th {
		font-size:110%;
		font-weight:bold;
	}
	.formTable td {
		padding-left:1em;
		padding-bottom:1em;
	}
}



/* ==============================================
	form parts
============================================== */
.formTable .optional ,
.formTable .required {
	display:flex;
	justify-content:flex-end;
	align-items:center;
}
.formTable .required:after {
	content:attr(data-text);
	margin-left:1em;
	padding:0 0.3em;
	font-size:70%;
	line-height:1.5;
	color:transparent;
}
.formTable .required:after {
	color:#fff;
	background:#f06;
}


@media screen and (max-width:799px) {
	.formTable .optional ,
	.formTable .required {
		justify-content:flex-start;
	}
}



/* ==============================================
	text
============================================== */
.form-unit {
	margin-left:0.2em;
	font-size:95%;
}
.form-error {
	display:block;
	margin-top:0.5em;
	font-size:90%;
}
.form-error > span {
	padding:0 0.3em;
	color:#f00;
	border:1px solid #f00;
}

.form-comment {
	display:block;
	margin-top:0.5em;
	color:#666;
}

.form-message {
	padding:2em 0;
	text-align:center;
}
.form-message .text{
	font-size:120%;
}
.form-message p {
	padding-bottom:0.5em;
}
.form-message p + p {
	padding-top:0.5em;
}
.form-message small {
	font-size:90%;
	color:#333;
}


.formNotes {
	text-align:center;
}

@media screen and (max-width:799px) {
	.form-message {
		text-align:justify;
	}
}




/* ==============================================
	group
============================================== */
.field-group.flex {
	display:flex;
	justify-content:flex-start;
	flex-wrap:wrap;
}
.field-group.flex:not(.column) .radio.flex {
	margin-top:0.2em;
}
.field-group.flex.column {
	flex-direction:column;
}
@media screen and (min-width:800px) {
	.field-group.flex .radio.flex + .radio.flex {
		margin-left:1em;
	}
}
@media screen and (max-width:799px) {
}

.field-group.flex .radio.flex {
	position:relative;
}
.radio.flex input[type='radio'] ,
.radio.flex input[type='checkbox']{
	position:absolute;
	z-index:2;
	top:50%;
	left:0.5em;
	transform:translateY(-50%);
	width:1em;
	height:1em;
	margin:0;
	padding:0;
	-webkit-appearance:auto; 
	appearance:auto;
	accent-color:#e66;
	cursor:pointer;
}
.radio.flex input[type="checkbox"] + label ,
.radio.flex input[type="radio"] + label {
	padding:0.1em 0.7em 0.2em 1.8em;
	border-radius:5px;
	transition:all 0.1s ease;
	-webkit-transition:all 0.1s ease;
	white-space:nowrap;
	cursor:pointer;
}
.radio.flex input[type="checkbox"]:checked + label ,
.radio.flex input[type="radio"]:checked + label {
	color:#fff;
	background:#e66;
}



/* ==============================================
	button
============================================== */
.formButton {
	padding:1em 0 2em;
	text-align:center;
}




/* ==============================================
	form selector
============================================== */
#form-select-tab {
	padding-top:3em;
	border-bottom:3px solid var(--primary);
}
#form-select-tab .container {
	padding:0 0.5rem;
}
#form-select {
	display:flex;
	justify-content:center;
}

.form-select-cell {
	width:50%;
	padding:0 0.5em;
	text-align:center;
}
.form-select-button {
	position:relative;
	width:100%;
	max-width:400px;
	margin:0 auto;
	padding:0.5em 0;
	color:#fff;
	background:#bbb;
	border-radius:1em 1em 0 0;
	cursor:pointer;
}
.form-select-button span {
	font-size:160%;
	font-weight:bold;
}

.form-select-button.active {
	background:var(--primary);
}

.form-select-frame {
	padding-top:2em;
}
.form-frame {
	width:100% !important;
}
@media screen and (max-width: 799px){
	.form-select-button {
		border-radius:0.5em 0.5em 0 0;
	}
	.form-select-button span {
		font-size:120%;
	}
}



/* ==============================================
	privacy
============================================== */
.privacyBox {
	max-width:1000px;
	margin:0 auto;
	padding:0.5em;
	font-size:90%;
	line-height:1.4;
	text-align:left;
}
.privacyBox > h3{
	padding:0.5em 0 0;
	margin-bottom:0.3em;
	font-size:120%;
	font-weight:bold;
}
.privacyBox > div{
	padding-left:1em;
	padding-bottom:0.5em;
}
.privacyBox dt{
}

.privacyBox + .caption-wrapper {
	margin-top:2em;
}

.status2 .privacyBox {
	display:none;
}




