@import 'checbox.css';

.main-form {
  display: flex;
  flex-direction: row;
}

.main-form label {
  display: block;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.main input {
  background-color: #ffffff;
  border: 1px solid #9fb7df;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 16px;
  color: var(--comment-font-color);
  padding: 14px 1.4em 14px 15px;
  display: block;
  width: 100%;
  font-weight: normal;
}

.main textarea {
  background-color: #ffffff;
  border: 1px solid #9fb7df;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 16px;
  color: var(--comment-font-color);
  padding: 14px 1.4em 14px 15px;
  display: block;
  width: 100%;
}

input[type='date'] {
  background-image: url(../images/calendar.png);
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  padding: 14px 10px 14px 15px;
  height: 50px;
  min-width: 160px;
}

[type='date']::-webkit-inner-spin-button {
  display: none;
}

[type='date']::-webkit-calendar-picker-indicator {
  opacity: 0;
}

.select-css {
  display: block;
  font-size: 16px;
  font-weight: normal;
  color: var(--comment-font-color);
  line-height: 1.3;
  padding: 14px 1.4em 14px 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url('../images/select.svg');
  background-repeat: no-repeat, repeat;
  background-position: right 22px top 50%, 0 0;
  border: 1px solid #9fb7df;
  box-sizing: border-box;
  border-radius: 8px;
}

input.time-display {
  padding: 14px 10px 14px 15px;
  height: 50px;
  text-align: left;
}

.date-input {
  position: relative;
}

.date-input button {
  border: none;
  background: transparent;
  position: absolute;
  cursor: pointer;
  padding: 15px;
  top: calc(50% - 11px);
}

.date-input button.quotations-prev {
  left: 0;
}

.date-input button.quotations-next {
  right: 0;
}

.select-css::-ms-expand {
  display: none;
}

.select-css:focus {
  color: var(--comment-font-color);
  outline: none;
}

.select-css option {
  font-weight: normal;
  color: var(--comment-font-color);
}

.form-field.error input,
.form-field.error textarea,
.form-field .error input,
.form-field .error textarea {
  border-color: #eb2417;
}

/* Formularz anonimowych zgłoszeń (zglos.php / inc/whistleblowing.php) */
.whistleblowing-box + .whistleblowing-box {
  margin-top: 64px;
}

.whistleblowing-label {
  display: block;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-font-color);
}

.whistleblowing textarea {
  margin-top: 0;
}

.whistleblowing-hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--comment-font-color);
}

/* honeypot: poza ekranem, nie display:none (część botów to sprawdza) */
.whistleblowing-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.whistleblowing .captcha-holder {
  margin-top: 24px;
}

.whistleblowing .more {
  margin-top: 32px;
  text-align: left;
}

.whistleblowing .more button:disabled {
  opacity: 0.6;
}

.whistleblowing-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 16px;
  margin: 16px 0 0;
}

.whistleblowing-message--success {
  background-color: #e6f6ee;
  color: var(--other-success);
  border: 1px solid var(--other-success);
}

.whistleblowing-message--error {
  background-color: #fdecea;
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

@media only screen and (max-width: 1024px) {
  .date-input button {
    padding: 15px 5px;
  }
}

@media only screen and (max-width: 768px) {
  .main-form {
    flex-direction: column;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 30px;
  }

  .main-form > div,
  .main-form > div:last-child {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .date-input button {
    padding: 15px;
  }
}
