.oc-container {
  margin: 0 auto;
  width: 800px;
  max-width: 100%;
}

.oc-affitti-search-form {
  display: block;
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #c0c0c0;
}

.oc-affitti-search-form h3 {
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
  color: #808080;
}

.oc-input-wrapper {
  display: block;
  position: relative;
  margin: 1em 0;
}

.oc-input-wrapper input {
  width: 100%;
  line-height: 1em;
  padding: 1.25em 1.5em 0.75em 1.5em;
  height: unset;
}

.oc-input-wrapper .oc-label {
  position: absolute;
  top: 0.1em;
  left: 0.2em;
  margin: 0;
  font-size: 0.75em;
}

.oc-submit {
  display: block;
  margin: 0 auto;
  background-color: #ed7237;
  border: 0;
  color: #ffffff;
  padding: 0.5em 1em;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.oc-submit:hover {
  background-color: #f4a986;
}

.oc-affitti-map {
  width: 100%;
  height: 400px;
  max-height: 30vh;
}

.oc-search-date-filters {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.oc-search-date-filters .oc-input-wrapper {
  width: 280px;
  max-width: 100%;
  margin: 0.5rem;
}

.oc-search-appartamenti {
  margin: 0 1em;
}

.oc-search-appartamento {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 2rem 0;
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 5px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: box-shadow 0.4s ease-in-out;
}

.oc-search-appartamento:hover {
  box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.oc-search-appartamento-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 180px;
}

.oc-search-appartamento-content {
  flex: 1;
  padding: 1rem;
  width: 100%;
}

.oc-search-appartamento-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}

.oc-search-appartamento-description {
  position: relative;
  height: 3em;
  overflow: hidden;
  margin: 1em 0 2em;
  font-size: 1rem;
}

.oc-search-appartamento-description::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1em;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
}

.oc-search-appartamento-data-table,
.oc-appartamento-data-table {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 1rem 0;
}

.oc-search-appartamento-data,
.oc-appartamento-data {
  padding: 0.5rem;
  text-align: center;
}

.oc-search-appartamento-data-title,
.oc-appartamento-data-title {
  margin-bottom: 0.5rem;
}

.oc-search-appartamento-price-title {
  text-align: right;
  font-weight: bold;
  font-size: 1.2rem;
}

.oc-search-appartamento-price {
  text-align: right;
  font-size: 1.2rem;
}

.oc-error-page {
  padding: 8rem 0;
}

.oc-error-page p.oc-error-heading {
  font-size: 5rem;
  margin: 0.5em;
}

.oc-error-page p {
  text-align: center;
  font-weight: bold;
  font-size: 3rem;
}

.oc-apartment-slide-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.oc-apartment-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oc-apartment-slider .slick-prev {
  left: 15px;
  z-index: 1;
}

.oc-apartment-slider .slick-next {
  right: 15px;
  z-index: 1;
}

.slick-prev:before, .slick-next:before {
  color: #000000;
}

.oc-apartment-title {
  font-size: 2rem;
  font-weight: bold;
  color: #205189;
}

.oc-apartment-content {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f0f0f0;
  box-shadow:
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 2px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.oc-apartment-section {
  padding: 1rem 0;
  border-bottom: 1px solid #c0c0c0;
}

.oc-apartment-section:last-child {
  border-bottom: 0;
}

.oc-apartment-address {
  margin: 0;
}

.oc-apartment-content-heading {
  color: #ed7237;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.oc-apartment-content-description {
  white-space: pre-line;
}

.oc-appartamento-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.oc-appartamento-footer,
.oc-appartamento-footer-margin {
  height: 48px;
}

.oc-appartamento-footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.oc-appartamento-footer-section {
  margin: 0 1rem;
}

.oc-appartamento-footer-price {
  font-weight: bold;
}

.oc-appartamento-prenota-button {
  background-color: #ed7237;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 5px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.oc-appartamento-prenota-button:hover {
  box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.oc-agreement-preheader {
  font-weight: bold;
  font-size: 1.4rem;
  text-align: center;
}

.oc-agreement-container {
  padding: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  box-shadow:
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 2px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.oc-agreement-title {
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  margin: 0;
  padding-bottom: 1rem;
}

.oc-agreement-section {
  border-top: 1px solid #c0c0c0;
  padding: 1rem 0;
}

.oc-agreement-subtitle {
  margin: 1em 0;
  font-size: 1.2rem;
}

.oc-agreement-subsection {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}

.oc-agreement-subsection-title {
  flex-shrink: 0;
  width: 100px;
  text-align: right;
  padding: 0 0.5rem;
}

.oc-agreement-subsection-content {
  flex-grow: 1;
}

.oc-agreement-form-fields {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100%;
}

.oc-agreement-form-cell-half {
  width: 50%;
}

.oc-agreement-form-cell-full {
  width: 100%;
}

.oc-agreement-form-cell-half,
.oc-agreement-form-cell-full {
  padding: 0 0.5rem;
}

.oc-agreement-form-fields .oc-input-wrapper {
  margin: 0.5rem 0;
}

.oc-agreement-bank-details {
  margin: 1rem 0;
}

.oc-agreement-bank-details p {
  margin: 0;
}

.oc-agreement-flag-field {
  display: block;
  padding: 0 1rem;
  border: 2px solid #205189;
  border-radius: 1rem;
  margin: 0.5rem 0;
  cursor: pointer;
}

.oc-agreement-flag-description {
  margin: 1rem 0;
}

.oc-agreement-flag-description p {
  margin: 0;
}

.oc-agreement-flag-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.oc-agreement-flag-field input[type="checkbox"] {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.oc-agreement-parts {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

button.oc-agreement-submit {
  display: block;
  margin-left: auto;
  border: 0;
  background-color: var(--secondary-color);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 5px 0 rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.4s ease-in-out;
  cursor: pointer;
}

button.oc-agreement-submit:hover {
  box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

button.oc-agreement-submit:disabled {
  background-color: #777777;
  cursor: default;
}
button.oc-agreement-submit:disabled:hover {
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.oc-agreement-error {
  display: none;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background-color: #ffcccc;
  border: 1px solid #7f0000;
  color: #7f0000;
}

.oc-agreement-error.show {
  display: block;
}

.oc-cost-detail-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0.5em 0;
}

.oc-cost-detail-total-row {
  font-size: 1.25rem;
  border-top: 1px solid #777777;
  padding-top: 0.5rem;
}

.oc-cost-detail-subitem {
  padding-left: 2rem;
}

.oc-thank-you-wrapper {
  position: relative;
  margin: 2rem 0;
  padding: 2rem;
  border: 3px solid #205189;
  border-bottom: 0;
}

h2.oc-thank-you-title {
  position: absolute;
  top: -1rem;
  left: 50%;
  margin: 0;
  translate: -50% 0;
  color: #205189;
  background-color: white;
  padding: 0 1rem;
}

.oc-thank-you-contacts {
  margin: 3rem auto;
}

.oc-thank-you-contacts-title {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5rem;
}

.oc-thank-you-contacts-field {
  text-align: center;
  margin: 0.5rem 0;
}

/* home slider */
.oc-home-slide {
  background-position: center;
  background-size: cover;
  padding-top: 20rem;
  padding-right: 1rem;
  padding-left: 1rem;
  padding-bottom: 1rem;

}
.oc-home-slide-inner {
  display: block;
  margin-right: 0;
  margin-left: auto;
  width: 480px;
  max-width: 100%;
  text-decoration: none;
  color: #000000;
  background-color: #ffffff;
  box-shadow:
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 2px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);
}
.oc-home-slide-inner:hover {
  opacity: 0.9;
  box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px 0 rgba(0, 0, 0, 0.2);
}
.oc-home-apartment-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 1rem;
  gap: 1rem;
}
.oc-home-apartment-name {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}
.oc-home-apartment-address {
  padding: 1rem;
  margin: 0;
  color: #777777;
}
.oc-home-slide .oc-appartamento-data-table {
  flex: 1;
  padding: 1rem;
  margin: 0;
}
.oc-home-apartment-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.oc-home-apartment-price-header {
  margin: 0;
}
.oc-home-apartment-price-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}
.oc-home-apartment-footer {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}
/* END home slider */

@media screen and (min-width: 576px) {

  .oc-affitti-map {
    width: 100%;
    height: 400px;
    max-height: 50vh;
  }

  .oc-search-appartamento {
    flex-direction: row;
  }

  .oc-search-appartamento-image {
    width: 30%;
    height: unset;
  }

  .oc-search-appartamento-content {
    width: 70%;
  }

}