body {
  overflow-y: scroll; /* fix for dis/appearing scrollbar when toggling request form */
  background-image: url(/resources/layouts/1/img/bg.jpg);
  background-color: rgba(255,255,255,1);
  background-repeat: no-repeat;
  background-position: center top 77px;
  background-attachment: fixed;  
}
body.editing {
  background-position: center top 128px;
}
@media (max-width: 1000px) {
  body {    
    background-image: none !important;
  }
}
/* typography */
h1 {
  font-size: 24px;
}
h2 {
  font-size: 20px;  
}
h3 {
  font-size: 18px;
}
h4 {
  font-size: 16px;
}
/* common */
.page-width-container {
  display: flex;
  width: 1000px;  
  margin: 0 auto;
}
.fb-right.icon-fb {
  position: fixed;
  right: 0;
  top: 130px;
  z-index: 1;
  width: 73px;
  height: 73px;
}
@media (max-width: 1000px) {
  .page-width-container {
    width: 100%;
  }
  .fb-right.icon-fb {
    display: none;
  }
}
/* editing */
.admin-panel {
  position: fixed;  
  width: 100%;
  top: 0;  
  z-index: 1050;
}
.editing #top-panel {
  top: 51px;/* .admin-panel height */
}
.editing #middle-panel {
  margin-top: 128px; /* .admin-panel height + #top-panel height */
}
/* #top-panel */
#top-panel {
  position: fixed;
  width: 100%;
  top: 0;  
  z-index: 1;  
  background-color: rgba(255,255,255,1);
}
#top-panel .logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50%;
  height: 77px;
  text-align: left;      
  background-image: url(/resources/layouts/1/img/logo.jpg);
  background-position: left center;
  background-repeat: no-repeat;
  overflow: hidden;
}
#top-panel .logo .content {      
  max-height: 100%;
  width: 100%;
  font-size: 50px;
  overflow: hidden;
}
#top-panel .quick-contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 50%;
  height: 77px;
  text-align: right;
}
#top-panel .quick-contact .content {  
  max-height: 100%;
  flex: 1 0 0;  
  font-size: 28px;
  overflow: hidden;
  color: #828282;
}
#top-panel .quick-contact .icon-fb {
  width: 46px;
  height: 46px;
  margin-left: 10px;
}
#top-panel .quick-contact .btn-request-form {  
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 15px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #e32323;
  cursor: pointer;
  margin-left: 15px;    
}
#top-panel .quick-contact .btn-request-form:hover {
  background-color: #cc1414;  
}
#top-panel .quick-contact .btn-request-form .icon {
  display: none;
}

@media (max-width: 1000px) {
  #top-panel {
    position: relative;
  }
  #top-panel .page-width-container {
    display: block;
  }
  #top-panel .logo {
    width: 100%;
    padding-left: 10px;
    background-position-x: 10px;
  }  
  #top-panel .quick-contact {
    display: block;
    width: 100%;
    height: auto;
  }
  #top-panel .quick-contact .content {
    display: none;
  }
  #top-panel .quick-contact .btn-request-form {    
    width: 100%;   
    margin: 0;           
  }
  #top-panel .quick-contact .btn-request-form .icon {
    /* display: block */
  }
  #top-panel .quick-contact .btn-request-form:before {
    content: "";
    display: block;  
    z-index: 1;
    position: absolute;
    left: 0;
    right: 0;  
    top: -4px;
    height: 4px;
    /* background: linear-gradient(rgba(192,192,192,0), rgba(192,192,192,0.9)); */
    /* background: linear-gradient(rgba(102,102,102,0), rgba(102,102,102,0.6)); */
  }
  #top-panel .quick-contact .icon-fb {
    display: none;
  }
}
/* request-form */
#request-form-panel {
  position: relative;
  background-color: rgba(102,102,102,1);
}
.request-form-container {  
  padding: 10px;
  position: relative;
}
.request-form-container .close.btn-close {
  position: absolute;
  top: 3px;
  right: 12px;
  cursor: pointer;
  font-size: 40px;
  float: none;
  outline: none;
  opacity: 0.3;
}
.request-form-container .close.btn-close:hover {
  opacity: 0.55;
}

.request-form {   
  width: 100%;
}
.request-form .control {
  margin: 15px 0;
}
.request-form .control label {
  display: block;
  color: #fff; 
  text-transform: uppercase;
}
.request-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.request-form textarea {
  display: block;
  width: 100%;
  border: 0;
  padding: 3px 10px;
}
.request-form .control-checkbox label > * {
  vertical-align: middle;
  display: inline-block;  
}
.request-form .control-checkbox input[type=checkbox] {
  margin: 0 10px 0 5px;
  border-radius: 0;
}
.request-form .control.has-error input:not([type=checkbox]):not([type=radio]),
.request-form .control.has-error textarea {  
  box-shadow: inset 0 0 7px #e32323;    
}
.request-form input:focus,
.request-form textarea:focus {
  outline: none;
}
.request-form textarea {
  resize: vertical;
}
.request-form input[type="submit"] {
  color: #fff;
  background-color: #e32323;  
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0;  
  width: 100%;
  border: 0;  
}
.request-form input[type="submit"]:hover {
  background-color: #cc1414;  
}
.request-form .control .errors p {  
  background-color: #cc1414;
  color: #fff;
  padding: 2px 7px;
  margin: 2px 0;  
}
.request-form .flashes {
  margin-top: 34px;
}
.request-form .flashes p {
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
}
.request-form .flashes p.error {
  background-color: #cc1414;  
}
.request-form .flashes p.success {
  background-color: #4f9f2b;
}
.request-form .privacy-text-container .toggler {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  padding: 10px 0;
  margin: 0;
  background: #5bc0de;
  border-color: #46b8da;
}
.request-form .privacy-text-container .toggler:hover {
  background: #31b0d5;
  border-color: #269abc;   
}

.request-form .privacy-text-container .toggler .glyphicon {
  font-size: 17px;
  vertical-align: middle;
  margin: 0 15px;
}
.request-form .privacy-text-container .privacy-text {
  background: #fff;
  padding: 15px;
  margin: 0;
  text-align: justify;
  display: none;
  font-style: italic;
}

/* #middle-panel */
#middle-panel {
  position: relative;      
  z-index: 0;
  padding-top: 29px;
  margin-top: 77px; /* #top-panel height */  
  padding-bottom: 119px; /* #bottom-panel height + 50px space */
}
#middle-panel h1 {
  margin-bottom: 20px;
}
/* slogan */
#middle-panel .slogan-container {
  position: relative;  
  height: 448px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-repeat: no-repeat;
  background-position: center center; 
  border: 13px solid #fff;
  margin: 0 auto 66px auto;
  box-shadow: rgba(0,0,0,0.8) 0 0 20px;
}
#middle-panel .slogan-container .content-slogan {
  max-height: 100%;
  width: 100%;
  font-size: 50px;
  overflow: hidden;
  min-height: 71px;
}
@media (max-width: 1000px) {
  #middle-panel {
    padding-top: 0;
  }
  #middle-panel .slogan-container {
    display: none;
  }
}
#middle-panel .content-container {
  line-height: 24px; 
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
#middle-panel .content-container p {
  margin-bottom: 20px;
}
/* contact */
#middle-panel .contact {
  position: relative;
  box-sizing: border-box;
  color: #fff;
  width: 254px;    
  padding: 25px 25px 30px 25px;  
  background-color: rgba(227, 35, 35, 0.65);
  box-shadow: rgba(0,0,0,0.8) 0 0 20px;
}
#middle-panel .contact address {
  line-height: 23px;
}
#middle-panel .contact address .address {
  padding: 0px 0 15px 0;  
}
#middle-panel .contact address .address .content {
  min-height: 69px; /* 3 lines */
}
#middle-panel .contact a {
  color: #fff;
  text-decoration: none;
}
#middle-panel .contact a:hover {  
  text-decoration: underline;
}
#middle-panel .contact .content-with-icon {
  display: flex;  
  margin-bottom: 4px;
}
#middle-panel .content-with-icon .content {
  flex: 1 0 0; 
}
#middle-panel .content-with-icon .content p {
  margin: 0;
  padding: 0;
}
#middle-panel .content-with-icon .glyphicon {
  margin: 0 12px 0px 0px;  
  top: 3px;
  font-size: 16px; 
}
/* .main-content */
#middle-panel .main-content {
  position: relative;
  padding: 25px 60px 45px 60px;
  text-align: justify;
  width: 710px;
  background-color: rgba(255,255,255,0.85);
  color: #000;
  box-shadow: rgba(0,0,0,0.8) 0 0 20px;
}
#middle-panel .main-content .content {
  min-height: 240px;
}
#middle-panel .main-content a {
  color: #e32323;
}
@media (max-width: 1000px) {
  #middle-panel {
    background-image: none !important; 
    padding-bottom: 0;
    margin-top: 0;   
    min-width: 0;
    
  }
  #middle-panel .content-container {
    flex-direction: column;
  }
  #middle-panel .contact {
    width: 100%;
    padding: 0px 10px 10px 10px;
    box-shadow: none;    
    background-color: rgba(227, 35, 35, 1);
  }
  #middle-panel .main-content {
    width: 100%;
    padding: 10px 10px 10px 10px;    
    box-shadow: none;
  }
}
/* #bottom-panel */
#bottom-panel {
  position: fixed;
  width: 100%;  
  bottom: 0;
  z-index: 1;
  background-color: rgba(255,255,255,1);  
}
#bottom-panel .copyright {
  position: relative;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 69px;
  color: #3c4b6b;
}
#bottom-panel .copyright .content {
  flex: 1 0 0;
  max-height: 100%;
  overflow: hidden;
}
#bottom-panel .creator {  
  position: relative;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;  
}
#bottom-panel .creator a {
  color: #e32323;
}
#bottom-panel .icon-fb {
  width: 46px;
  height: 46px;
  margin-right: 15px;
}
@media (max-width: 1000px) {
  #bottom-panel {
    position: relative;
  }
  #bottom-panel .footer-container {
    display: block;
    padding: 0 10px;
  }
  #bottom-panel .copyright {
    width: 100%;
    height: auto;
    padding: 10px 0;
  }
  #bottom-panel .copyright .content {
    
  }
  #bottom-panel .creator {
    width: 100%;    
    height: auto;
    padding: 0 0 10px 0;    
  }
  #bottom-panel .icon-fb.mobile-show {
    display: block;
  }
}

