/* okienko zachęcające do subskrypcji */
#new-visitor-encouragement, #download-approvals {
  height: 100%;
  padding: 2em;
  box-sizing: border-box;
  font-size: 18px;
  overflow: auto;
}

#new-visitor-encouragement h1, #new-visitor-success h1,
#new-visitor-encouragement h2, #new-visitor-success h2 {
  text-transform: uppercase;
  font-weight: 100;
  text-align: center;
}

#new-visitor-encouragement h1, #new-visitor-success h1 {
  margin: 0 0 10px 0;
  font-size: 30px;
}

#new-visitor-encouragement h2, #new-visitor-success h2 {
  margin: 0 0 1rem 0;
  font-size: 20px;
}

#new-visitor-encouragement form {
  display: block;
  max-width: 600px;
  width: 100%;
  margin: auto;
}

#new-visitor-encouragement .row, #download-approvals .row {
  clear: both;
  margin: 5px 0;
  font-weight: 100;
}

#new-visitor-encouragement label {
  display: block;
  box-sizing: border-box;
}

#new-visitor-encouragement .nice-checkbox label {
  height: auto;
}

#new-visitor-encouragement input[type="text"], #new-visitor-encouragement input[type="email"] {
  display: block;
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

#new-visitor-encouragement input[type="checkbox"] + span, #download-approvals input[type="checkbox"] + label {
  display: block;
  vertical-align: top;
  font-weight: normal;
}

#new-visitor-encouragement .buttons {
  display: flex;
  justify-content: space-around;
}

#new-visitor-encouragement .buttons input, #new-visitor-encouragement .buttons button {
  margin: 0;
}

#download-approvals input[type="checkbox"] + label {
  width: 90%;
  margin: 0 5%;
}

#new-visitor-encouragement .error, #download-approvals .error {
  margin-left: 155px;
  color: #f00;
  font-size: 13px;
  font-weight: normal;
}

#new-visitor-encouragement input[type="submit"], #download-approvals input[type="submit"] {
  display: inline-block;
  padding: 5px 10px;
  background-color: #ca1d61;
  border: 0 none;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.4s;
}

#new-visitor-encouragement input[type="submit"]:hover, #download-approvals input[type="submit"]:hover {
  opacity: 0.75;
}

#new-visitor-encouragement .discount-note {
  margin: 10px 0 0 0;
  font-size: 13px;
  font-weight: 100;
}

#new-visitor-success {
  display: table;
  width: 100%;
  height: 100%;
}

#new-visitor-success h1 {
  display: table-cell;
  padding: 20px;
  vertical-align: middle;
}

#new-visitor-success h1 button {
  width: auto;
  padding: 5px 10px;
  background: #ca1d61;
  border: none;
  color: #fff;
  text-transform: uppercase;
  font: inherit;
  cursor: pointer;
}

#subscription-success {
  display: table;
  width: 100%;
  height: 100%;
}

#subscription-success h1 {
  display: table-cell;
  padding: 20px;
  vertical-align: middle;
}

#subscription-success h1 button {
  width: auto;
  padding: 5px 10px;
  background: #ca1d61;
  border: none;
  color: #fff;
  text-transform: uppercase;
  font: inherit;
  cursor: pointer;
}

.popup-message-sent {
  padding: 25px;
  font: bold 14px 'Open Sans', Arial, sans-serif;
  text-align: center;
}

.popup-confirmation-btn {
  cursor: pointer;
  display: inline-block;
  border: 1px solid black;
  padding:5px;
  margin-left: 2em;
  text-align: center;

}

/* formularze popup */
.popup-form h1 {
  font-family: Montserrat, 'Open Sans', sans-serif;
  margin: 0;
  padding: 15px 20px;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

.popup-form h1 strong { font-weight: bold; color: #ca1d61; }

.popup-form h2 {
  padding: 10px 0;
  font-size: 15px;
  font-weight: bold;
  color: #ca1d61;
}

.popup-form fieldset {
  padding: 10px 25px;
  font-size: 13px;
}

.popup-form .row {
  display: block;
  position: relative;
  padding: 5px 0;
  margin: 0;
}

.popup-form label {
  display: inline-block;
  width: 176px;
}

.popup-form .row.block label { display: block; width: auto; padding-bottom: 3px; }

.popup-form .checkbox label { width: auto; }

.popup-form input, .popup-form textarea {
  width: 300px;
  border-radius: 5px;
  border: 0;
  background-color: #f6f6f6;
  box-sizing: border-box;
  padding: 1rem 1.5rem;
  font-size: 16px;
  outline: none;
}

.popup-form input[type="checkbox"]:focus {
  outline: 1px solid #000;
}

.popup-form textarea {
  max-width: 300px;
  max-height: 100px;
  resize: none;
  vertical-align: top;
  height: 100px;
}

.popup-form .row.block input, .popup-form .row.block textarea { max-width: 500px; width: 100%; }
.popup-form .row.error input, .popup-form .row.error textarea { border: 1px solid #f00; }
.popup-form .checkbox input, .popup-form input[type="checkbox"] { width: auto; border: 0 none; margin-right: 5px; vertical-align: middle; }
.popup-form .row.checkbox.error label { color: #f00; }

.popup-form .sign-or-login, #ask-for-loan-form .ask_for_loan_content {
  padding: 5px 0;
  font-weight: bold;
  font-size: 14px;
}

.popup-form .login {
  display: inline-block;
  padding: 4px 8px;
  background-color: #ca1d61;
  border-radius: 5px;
  border: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.popup-form .sign-or-login a:hover { background: #000; }
.popup-form .submit .legend { font-size: 12px; }
.popup-form .submit span { display: none; }

.popup-form .submit .legend .required { padding-bottom: 5px; color: #f00; }

.popup-form .submit button {
  padding: 1rem 1.5rem;
  background-color: #ca1d61;
  border-radius: 5px;
  border: 1px solid #ca1d61;
  color: #fff;
  font: bold 16px/1.5 Montserrat, 'Open Sans';
  cursor: pointer;
  text-decoration: none;
}

.popup-form .submit button:focus {
  border: 1px dotted #fff;
  text-decoration: underline;
}

.popup-form .submit button:hover {
  opacity: 0.75;
}

.popup-form span.required {
  color: #f00;
}

.popup-message-sent {
  padding: 25px;
  font: bold 14px 'Open Sans', Arial, sans-serif;
  text-align: center;
}

.popup-form .row.checkbox.agreement label { width: 275px; vertical-align: top; }
.popup-form .requirement-info {
  position: absolute;
  top: 80px;
  right: 40px;
  font-size: 12px;
  color: #f4498b;
}

@media (min-width: 576px) {
  .popup-form .submit button {
    font-size: 18px;
  }

  #new-visitor-encouragement .nice-checkbox {
    margin-left: 145px;
  }

  #new-visitor-encouragement :not(.nice-checkbox) > label {
    display: inline-block;
    width: 150px;
  }
  #new-visitor-encouragement input[type="text"], #new-visitor-encouragement input[type="email"] {
    display: inline-block;
    width: calc(100% - 150px);
  }

  .popup-form .row.checkbox input { margin-left: 180px; }

  .popup-form .requirement-info {
    top: 54px;
    right: 60px;
  }
}
