body, html {
  height: 100%;
  margin: 0; }

body {
  font-size: 16px; }

h2, h3 {
  margin: 0;
  padding: 0; }

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

#page {
  height: 100%;
  background: url(../images/bg_cfndi.png) no-repeat center center;
  background-size: cover;
  font-family: 'verdana', 'arial', sans-serif;
  color: #676767; }

.flex {
  height: 41vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  -ms-flex-line-pack: end;
  align-content: flex-end; }

header {
  width: 25%;
  margin-left: 1%;
  padding-bottom: 2.5vh;
  margin-bottom: 6vh;
  font-style: italic; }
  header h2 {
    color: #56b9e0;
    font-size: 2.3em; }
  header h3 {
    font-weight: normal;
    color: #858585;
    font-size: 1.7em; }

main {
  width: 26%;
  padding: 2.5vh 35px;
  font-size: 1.1em; }
  main .field label {
    font-weight: bold;
    min-width: 150px;
    display: inline-block;
    vertical-align: middle; }
  main .field .border {
    display: inline-block;
    background: -webkit-gradient(linear, left top, left bottom, from(#e1e1e1), to(#bbbbbb));
    background: linear-gradient(to bottom, #e1e1e1, #bbbbbb);
    width: calc(100% - 157px);
    padding: 2px;
    height: 37px;
    margin: 7px 0;
    border-radius: 5px;
    position: relative;
    vertical-align: middle; }
  main .field input {
    position: absolute;
    height: calc(100% - 4px);
    width: calc(100% - 4px);
    outline: none;
    border: 0;
    border-radius: 5px;
    padding: 5px 10px;
    background: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), color-stop(60%, #fff));
    background: linear-gradient(to bottom, #f1f1f1, #fff 60%); }

footer {
  width: 17%;
  margin-right: -3%;
  padding-bottom: 2.5vh;
  text-align: center; }
  footer .btn {
    padding: 0 40px;
    background: url(../images/btn.png) no-repeat bottom center;
    background-size: 250px auto;
    height: 150px;
    position: relative; }
  footer a {
    position: absolute;
    width: 100%;
    bottom: 22px;
    left: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 2em;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%); }
    footer a img {
      vertical-align: middle; }

@media screen and (max-width: 1500px) {
  #page {
    background-position: 37%; }
  .flex {
    height: 31vh; }
  header {
    width: 33%; }
  main {
    width: 450px; }
  footer {
    width: 260px; } }

@media screen and (max-width: 1500px) and (max-height: 600px) {
  #page {
    background-position: 37%; }
  .flex {
    height: 31vh; }
  header {
    width: 33%; }
  main {
    width: 450px; }
  footer {
    width: 260px; } }

@media screen and (max-width: 1180px), (max-height: 600px) {
  .flex {
    min-height: 100%;
    height: auto;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    -ms-flex-line-pack: center;
    align-content: center; }
  header {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0; }
  main {
    width: 450px;
    margin-bottom: 0;
    padding-bottom: 0; }
  footer {
    width: 260px;
    margin-bottom: 0;
    padding-bottom: 0;
    -ms-flex-item-align: end;
    align-self: flex-end; } }

@media screen and (max-width: 560px) {
  .flex {
    padding: 15px; }
  header {
    font-size: 0.9em;
    margin-bottom: 15px; }
  main {
    width: 100%; }
    main .field label {
      width: 100%; }
    main .field .border {
      width: 100%; } }
