* {
  box-sizing: border-box;
}
legend {
  width: 25%;
  float: left;
  padding-right: 10px;
  font-weight: bold;
}
fieldset {
  border: 0;
  padding: 0;
}
input[type=text],
input[type=email],
input[type=url],
input[type=password],
textarea {
  width: 100%;
  max-width: 98%;
  max-height: 90%;
  border: 1px solid var(--box-border);
}
input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
textarea:focus {
/*  outline: 0; */
  color: #000;
  background: #edf2fb;
  background: #fff;
  border: 1px solid var(--v-red);
}

/* ---------------------------------------------------------------------- */
@media (max-width: 600px) {
  legend {
    width: 100%;
    float: none;
    margin: 0 0 0 5px;
  }
  input[type=text],
  input[type=email],
  input[type=url],
  input[type=password],
  textarea,
  select {
    width: 100%;
    max-width: 98%;
    max-height: 50%;
    border: 1px solid var(--box-border);
  }
}
@media (min-width: 1200px) {
    legend {
      text-align: right;
  }
}
/* =========================================================================== */
.resp-form {
  background-color: var(--v-form-bg);
  margin: 20px auto;
  font-size: 1rem;

  border: 1px solid var(--box-border);
  border-radius: 8px 8px 0 0;
  padding: 0 0 10px 0;
  min-width: 800px;
  max-width: 800px;

  min-width: fit-content;
  max-width: max-content;

  min-width: 800px;
  max-width: 1000px;

  box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;

  padding: 0;
  line-height: 2rem;

  background-image: url('/gia_pha/img/backgrounds/vd_bg.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: contain;
}
.resp-form header {
  margin: 0 0 10px 0;
  padding: 5px 0;
  background-color: var(--v-blue);
  background-color: var(--v-maroon);
  background-color: var(--v-blue);
  border-radius: 8px 8px 0 0;
  color: #f7f7f7;
  width: 100%;
  display: inline-block;
  text-align: center;
  font-size: 1.3rem;
}
.resp-form input[type=text],
.resp-form input[type=email],
.resp-form input[type=url],
.resp-form input[type=password],
.resp-form select,
.resp-form textarea {
  border: 1px solid var(--box-border);
  width: 100%;
  resize: vertical;
  max-width: max-content;
  padding: 5px;
  margin: 5px;
}
.resp-form input[type=text]:focus,
.resp-form input[type=email]:focus,
.resp-form input[type=url]:focus,
.resp-form input[type=password]:focus,
.resp-form select:focus,
.resp-form textarea:focus {
  outline: 0;
  border-color: #4697e4;
}
.resp-form label {
  margin: 0 0 5px 0;
  display: inline-block;
  padding-right: 5px;
  font-weight: bold;
}
.resp-form .col-25 {
  float: left;
  width: 30%;
  min-width: fit-content;
  min-width: max-content;
  text-align: right;
  white-space: nowrap;
}
.resp-form .col-75 {
  float: left;
  width: max-content;
  width: 70%;
/*  white-space: nowrap;*/
  padding: 0 30px 0 5px;
}
/* Clear floats after the columns */
.resp-form .row:after {
  content: "";
  display: table;
  clear: both;
}
.resp-form .title {
  width: max-content;
  margin: 20px auto;
  display: inline-block;
  font-size: 1.5rem;
  text-align: center;
}
/*  ------------------------------------------------------------------------
Responsive layout - when the screen is less than 600px wide,
make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 992px) {    /* tablet */
  .resp-form {
    max-width: 98%;
    min-width: 90px;
    min-width: fit-content;
    max-width: max-content;
  }
  .resp-form .col-25,
  .resp-form .col-75 {
    width: 100%;
    margin-top: 0;
    padding: 0 5px;
  }
  .resp-form .col-25 {
    text-align: left;
  }
  .resp-form .col-75 {
    padding: 0 0 0 15px;
  }
  .resp-form label {
    font-weight: bold;
    margin: 5px 0 -5px 2px;
  }
}
/*-----------------------------------------------------------------*/
@media screen and (max-width: 600px) {    /* phone */
  .resp-form {
    max-width: 100%;
    min-width: 96%;
    max-width: fit-content;
    max-width: max-content;
    line-height: 1.5rem;
  }
  .resp-form .col-25,
  .resp-form .col-75 {
    width: 100%;
    margin-top: 0;
    padding: 0 5px;
  }
  .resp-form .col-25 {
    text-align: left;
  }
  .resp-form .col-75 {
    padding: 0 0 0 15px;
  }
  .resp-form label {
    font-weight: bold;
    margin: 5px 0 -5px 2px;
  }
  .resp-form header {
    margin: 0 0 -30px 0;;
    padding: 5px 0;
  }
}
/* =========================================================================== */
/*  table-form phone  */
@media only screen and (max-width: 600px) {
  .table-form .label,
  .table-form .field {
      padding: 0;
      font-size: 12px;
    }
    .table-form tr, .table-form th {
      border: 1px solid blue;
    }
}
.table-form {
  border-collapse: collapse;
  width: max-content;
  background-color: #f7f7f7;
  margin: 0 auto 0 auto;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  font-size: 14px;
}
.table-form table {
  margin: -2px;
  white-space: nowrap;

  border-radius: 8px;
  background-color: var(--v-form-bg);
  border: 1px solid var(--box-border);
}
.table-form tr, .table-form th {
  border: 1px solid transparent;
  border: 1px solid blue;

  margin: -20px;
  line-height: 26px;
}
.table-form td {
  vertical-align: top;
  background-color: var(--v-form-bg);
}
.table-form th {

  padding: 5px 0;
  text-align: center;
  background-color: var(--v-blue);
  color: #f7f7f7;
  align-content: center;
  border-radius: 6px 6px 0 0;
  font-size: 1.05rem;
}
.table-form text,
.table-form password {
  background-color: #f7f7f7;
}
.table-form .label {
  text-align: right;
  padding: 1px 10px 3px 20px;
  font-weight: bold;
}
.table-form .field {
  text-align: left;
  padding: 1px 20px 3px 10px;
}
.table-form .field-left,
.table-form .field-center {
  padding: 1px 10px 3px 20px;
}
.table-form .field-center {
  text-align: center;
}
.table-form tr.border-bottom {
  border-radius: 0 0 8px 8px;
}
/*
.table-form tr:nth-child(even){background-color: #f2f2f2;}
.table-form tr:hover {background-color: #ddd;}
*/
/* ========================================================================== */
.anchor2 {
  content: "";
  display: block;
  height: 50px;       /* fixed header height*/
  margin: -100px 0 0; /* negative fixed header height */
  padding: 60px 0;
}
:target {
  scroll-margin-top: 60px;
}
.box-form,
.box-form-white,
.box-form-no-bg,
.box-form-noborder,
.box-form-noborder2 {
  margin: 5px auto;
  border: 1px solid var(--v-blue);
  border-radius: 10px;
  background-color: #f9f6f2;
  min-width: 200px;
  max-width: max-content;
  width: fit-content;
  width: clamp(340px, 70vw, 1000px);
  font-size: 1rem;
  text-align: left;
  color: var(--v-text);
}
.box-form-noborder-left {
  margin: 5px;
  min-width: 200px;
  max-width: max-content;
  width: fit-content;
  width: clamp(340px, 70vw, 1000px);
  font-size: 1rem;
  text-align: left;
  color: var(--v-text);
}
.box-form {
  border-radius: 8px;
  align-items: center;
}
.box-form-no-bg {
  padding: 20px 30px 20px 40px;
  background-color: #f7f7f7;
}
.box-form-noborder,
.box-form-noborder2 {
  background-color: inherit;
  border: 0 solid;
  padding: 20px 0;
  margin: 0 auto;
}
.box-form-noborder2 {
  background-color: transparent;
  padding: 0;
}
.box-form-gp {
  border: 1px solid var(--v-blue);
  border-radius: 10px;
  background-color: #f9f6f2;
  text-align: left;
  color: var(--v-text);
  border: 1px solid var(--box-border);
  font-size: 16px;

  background-color: var(--v-beige);
  box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
  width: clamp(360px, 98vw, 1000px);
  margin: 30px auto 0px auto;
  padding: 20px 30px 20px 60px;
}
.box-form-gp ul li,
.box-form-white ul li,
.box-form-no-bg ul li,
.box-form-noborder ul li,
.box-form-noborder2 ul li {
  list-style: url('/gia_pha/img/ledred.png');
  margin: 5px 10px 5px 10px;
}
.box-form {
  background-color: #f7f7f7;
  border: 1px solid var(--box-border);
  font-size: 1.05rem;
  padding: 30px 40px;
}
.box-form ul li {
  list-style: url('/gia_pha/img/ledpurple.png');
  margin: 5px 10px 5px 40px;
}
.box-form-white {
  background-color: #f9f6f2;
  border: 1px solid var(--box-border);
  font-size: 1.05rem;
  padding: 10px 20px;
}
.box-form-content,
.box-form-content-white {    /* full box content */
  line-height: 1.6rem;
  padding: 10px 40px 20px 50px;
  border-radius: 0 0 8px 8px;
}
.box-form-header {
  background-color: var(--v-maroon);
  color: #f7f7f7;
  border-radius: 8px 8px 0 0;
  padding: 0;
  line-height: 2;
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 20px 0;
  width: 100%;
  display: inline-block;
}
.box-form-title {
  font-weight: bold;
  margin: 0 0 -25px 0;
  padding: 0 0 20px 0;
  color: var(--v-text);
}
.box-form-title-inline {
  color: var(--v-text);
  display: block;
  margin: 0;
  font-size: 80%;
}
.box-form-text {
  line-height: 1.6rem;
  padding: 10px 20px 20px 20px;
  margin: 0 0 0 -20px;
  color: var(--v-text);
  text-align: justify;
  text-justify: inter-word;
}
.box-form-text-inline {
  line-height: 2.5rem;
  color: var(--v-text);
  display: inline-block;
  margin: 0 0 0 -20px;
}
/* -------------------------------------------------------------------------- */
@media print {
  .box-form,
  .box-form-white,
  .box-form-noborder,
  .box-form-noborder2 {
    width: clamp(340px, 80vw, 96vw);
  }
  .box-form-gp {
    margin: -80px 0 -100px 0;
  }
}
/* -------------------------------------------------------------------------- */
/*  tablet  */
@media only screen and (max-width: 900px) {
  .box-form-content,
  .box-form-content-white,
  .box-form-content-gp {    /* full box content */
    padding: 10px;
  }
  .box-form,
  .box-form-noborder,
  .box-form-noborder2,
  .box-form-no-bg,
  .box-form-white {
    min-width: 600px;
    min-width: max-content;
    width: clamp(90%, 80vw, 96vw);
    padding: 10px 30px 10px 30px;
  }
  .box-form-gp {
    padding: 20px 20px 20px 40px;
  }
}
/* -------------------------------------------------------------------------- */
/*  phone  */
@media only screen and (max-width: 600px) {
  .box-form-content,
  .box-form-content-white,
  .box-form-content-gp {    /* full box content */
    padding: 5px 0 20px 5px;
  }
  .box-form,
  .box-form-noborder,
  .box-form-noborder2,
  .box-form-white,
  .box-form-no-bg {
    padding: 10px 0;
    min-width: 90%;
    width: clamp(320px, 98vw, 99vw);
    max-width: 100%;
  }
  .box-form-noborder {
    margin: 0 100px 0 0;
  }
  .box-form-noborder2 {
    margin: -10px 150px 0 0px;
  }
  .box-form-noborder2 ul {
    margin: 10px 5px 5px 10px;
  }
  .box-form-noborder ul li,
  .box-form-noborder2 ul li {
    margin: 5px 5px 5px 10px;
  }
  .box-form-gp {
    padding: 10px 0px 10px 20px;
    margin: 10px 0 20px 0;
  }
}
/* -------------------------------------------------------------------------- */
/* http://johnuberbacher.com/projects/skunk/tabs.php */
/*
.tab-wrap {
	border-radius: 10px;
	max-width: 100%;
	display: flex;
	flex-wrap: wrap;
	position: relative;
	list-style: none;
	background-color: #f7f7f7;
	margin: 40px 0;
	border: 1px solid var(--box-border);
  box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 3px;
}
.tab {
	display: none;
	background-color: var(--v-grey);
}
.tab:checked:nth-of-type(1) ~ .tab-content:nth-of-type(1) {
	opacity: 1;
	position: relative;
	top: 0;
	z-index: 100;
}
.tab:checked:nth-of-type(2) ~ .tab-content:nth-of-type(2) {
	opacity: 1;
	position: relative;
	top: 0;
	z-index: 100;
}
.tab:checked:nth-of-type(3) ~ .tab-content:nth-of-type(3) {
	opacity: 1;
	position: relative;
	top: 0;
	z-index: 100;
}
.tab:checked:nth-of-type(4) ~ .tab-content:nth-of-type(4) {
	opacity: 1;
	position: relative;
	top: 0;
	z-index: 100;
	transform: translateY(0px);
}
.tab:first-of-type:not(:last-of-type) + label {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.tab:not(:first-of-type):not(:last-of-type) + label {
  border-radius: 0;
}
.tab:last-of-type:not(:first-of-type) + label {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
.tab:checked + label {
	cursor: default;
	background-color: var(--v-blue);
  background-color: var(--v-maroon);
	color: #f7f7f7;
}
.tab:checked + label:hover {
	background-color: var(--v-blue);
  background-color: var(--v-maroon);
	color: #f7f7f7;
}
.tab + label {
	width: 100%;
	border-bottom: 1px solid var(--box-border);
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	display: block;
	flex-grow: 3;
	text-align: center;
	user-select: none;
	text-align: center;
	padding: 8px;
	font-weight: bold;
	background-color: var(--v-light-blue);
  background-color: #F0F0F4;
}
.tab + label:hover {
	background-color: var(--v-grey);
	background-color: var(--v-light-blue);
}
.tab-content {
	padding: 10px 25px;
	background-color: transparent;
	position: absolute;
	width: 100%;
	z-index: -1;
	opacity: 0;
	left: 0;
	border-radius: 6px;
}
.tab-container {
	max-width: 98%;
	margin: -20px auto;
}
@media (min-width:768px) {
	.tab + label {
		width: auto;
	}
	.tab-container {
	  max-width: 70%;
	}
}
@media (max-width:768px) {
	.tab-container {
	  max-width: 96vw;
	}
}
*/
/* ========================================================================== */
