html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-size: 0.9em;
  background-image: url(texture.png);
}

body,
input.text,
input.submit,
select {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

header {
  display: block;
  text-align: center;
}

header h1 {
  margin: 0;
  padding: 0 0 20px 0;
  color: #444;
}

header h2 {
  margin: 0;
  padding-bottom: 30px;
  color: #cc6677;
}

#page {
  position: absolute;
  top: 60px;
  left: 50%;
  margin-left: -350px;
  width: 700px;
}

#content,
.footer-text {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-image: url(texture-inner.png);
  box-shadow: 2px 2px 5px #ddd;
}

#content {
  padding: 30px;
}

#content-inner {
  background-image: url(logo-small.gif);
  background-repeat: no-repeat;
  background-position: right bottom;
}

.footer-text {
  color: #aaa;
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 5px 30px;
}

footer {
  position: fixed;
  z-index: -1;
  bottom: 20px;
  right: 20px;
  width: 100%;
  text-align: right;
  color: #888;
  font-size: 0.8em;
}

a:link,
a:visited,
a:active {
  color: #444;
}

a:hover {
  color: #000;
}

p {
  text-align: justify;
}

p:first-letter {
  padding-left: 20px;
}

input.text,
input.submit,
a.submit {
  padding: 5px 10px;
}

input.text,
select {
  font-size: 1.1em;
}

input.text:focus,
select:focus {
  border: 1px solid #666;
}

input.text {
  box-shadow: 2px 2px 7px #bbb;
  width: 200px;
  border: 1px solid #bbb;
  border-radius: 2px;
}

span.select {
  padding: 8px 0;
  border-radius: 2px;
  box-shadow: 2px 2px 7px #bbb;
}

select {
  padding: 5px;
  width: 222px;
  border: 1px solid #bbb;
  border-radius: 2px;
}

label {
  color: #666;
  width: 188px;
  text-align: right;
  padding-top: 8px;
}

html[dir="rtl"] label {
  text-align: left;
}

span.input {
  padding-left: 25px;
}

html[dir="rtl"] span.input {
  padding: 0 25px 0 0;
}

label,
span.input {
  float: left;
  position: relative;
}

label.inline {
  float: none;
  display: inline-block;
  text-align: left;
  width: auto;
}

html[dir="rtl"] label,
html[dir="rtl"] span.input {
  float: right;
}

.item {
  clear: both;
  margin-bottom: 10px;
}

.item:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

div.sex .radiogroup {
  display: inline-block;
  width: 215px;
}

div.sex .radiogroup label {
  width: auto;
}

div.sex .radiogroup label.male {
  /* padding-left: 16px; */
}

div.sex .radiogroup label.female {
  /* padding-left: 13px;
   padding-right: 7px; */
}

div.sex .radiogroup label.male span,
div.sex .radiogroup label.female span {
  /* background-repeat: no-repeat; */
  /* background-position: 0 9px; */
  /* padding-left: 18px; */
  color: #888;
}

div.sex .radiogroup label.male span {
  /* background-image: url(male-bw.gif); */
}

div.sex .radiogroup label.male.ui-state-active span {
  color: #222;
  /* background-image: url(male.gif); */
}

div.sex .radiogroup label.female span {
  /* background-image: url(female-bw.gif); */
}

div.sex .radiogroup label.female.ui-state-active span {
  color: #222;
  /* background-image: url(female.gif); */
}

label.radio {
  display: inline;
}

.ui-buttonset label.radio {
  display: inline-block;
}

input.submit,
a.submit {
  box-shadow: 2px 2px 10px #666;
  color: #fff;
  border: 1px solid #3079ed;
  background-color: #4d90fe;
  border-radius: 2px;
  text-decoration: none;
}

input.submit:hover,
a.submit:hover {
  background-color: #357ae8;
}

input.submit:active,
a.submit:active {
  border: 2px solid #2769d2;
  padding: 4px 9px;
  position: relative;
  top: 1px;
  left: 1px;
}

a.submit {
  display: inline-block;
}

.validationError {
  position: absolute;
  top: 8px;
  color: #ff4848;
  padding-left: 10px;
  font-size: 0.9em;
  white-space: nowrap;
}

html[dir="rtl"] .validationError {
  padding: 0 10px 0 0;
}

.index .validationError {
  position: static;
}

.buttons {
  margin-top: 15px;
}

.welcome-text {
  text-align: justify;
}

.ui-datepicker {
  font-size: 1em !important;
}

/* INDEX */
body.index header h2 {
  margin: 0;
  padding-bottom: 40px;
  font-size: 3em;
  color: #d14836;
}

body.index label,
body.index span.input {
  float: none;
  display: block;
}

body.index label {
  width: auto;
  text-align: center;
}

body.index span.input {
  padding: 0;
}

body.index span.input input {
  text-align: center;
}

/* PERSONAL INFO */
body.personal-information .dataProcessingAgreement .validationError {
  position: static;
  padding: 0;
  text-align: center;
}

/* INSTRUCTION */

body.instructions #content {
  text-align: left;
}

html[dir="rtl"] body.instructions #content {
  text-align: right;
}

body.instructions form {
  text-align: center;
}

body.instructions h2 {
  padding-bottom: 0;
}

body.instructions h3 {
  color: #444;
  font-size: 1.4em;
}

body.instructions ul li {
  color: #666;
}

/* THANK YOU */

body.thanks .buttons {
  margin-top: 40px;
}

/* ERROR */
body.error h1 {
  margin: 0;
  text-transform: uppercase;
  color: #d14836;
}

body.error .email {
  margin-bottom: 10px;
}

body.error .email a,
body.error .telephone span {
  padding-left: 20px;
  background-repeat: no-repeat;
  background-position: 0 0px;
}

html[dir="rtl"] body.error .email a,
html[dir="rtl"] body.error .telephone span {
  padding: 0 20px 0 0;
  background-position: right 0;
}

body.error .email a {
  padding-left: 22px;
  background-image: url(https://cdn2.iconfinder.com/data/icons/ledicons/email_open.png);
}

html[dir="rtl"] body.error .email a {
  padding: 0 22px 0 0;
}

body.error .telephone span {
  background-image: url(https://cdn2.iconfinder.com/data/icons/ledicons/mobile_phone.png);
}

.center {
  text-align: center;
}

/** POPUPS */
.popup {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.popup.visible {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup .popup-overlay {
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(50, 50, 50, 0.3);
  width: 100%;
  height: 100%;
}

.popup .popup-content-wrap {
  position: absolute;
  background: #fff;
  width: 800px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  margin: 5em 0;
  padding: 2em;
  overflow: hidden;
}

.popup .popup-content-wrap .controls {
  float: right;
  font-weight: bold;
}

.popup .popup-content-wrap .controls a {
  text-decoration: none;
}

.popup .popup-content-wrap .buttons {
  margin: 1em 0;
  text-align: center;
}

.popup .popup-content {
  padding: 1em;
}

.popup .popup-content p::first-letter {
  padding-left: 0;
}
