/* ==========================================================================
   simplelinks-quote.html styles
   ========================================================================== */

/* --- Page layout and carrier blocks --- */
#smart_form_page .page_smart_form2 .smart_form_box .item {
  width: 31%;
  margin-bottom: 15px;
}

.choose-blocks.bg-white.choose-blocks__header {
  margin-bottom: 25px;
  padding: 20px;
}

.firstRow .imageWrap {
  margin-bottom: 20px;
  width: 19.7%;
  margin-left: 10px;
  margin-right: 10px;
  border: 2px solid black;
}

.bg_smart_form_2 .smart_form .item {
  width: 31%;
  margin-bottom: 15px;
  margin-left: 6px;
  margin-right: 6px;
  overflow: hidden;
  border: 2px solid #000;
}

.bg_smart_form_2 .smart_form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 8%;
}

.box_2_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

p:last-child {
  margin-bottom: 0;
  font-size: 20px;
}

#smart_form_page .page_smart_form2 .smart_form_box .item .item_in {
  padding: 10px;
  display: flex;
  align-items: center;
  border: 2px solid #000;
  position: relative;
  border-radius: 0px;
}

.firstRow {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center !important;
  margin-bottom: 0;
}

.box_2_box a {
  width: 26%;
  margin-left: 12px;
  margin-right: 12px;
}

.simon-account-btn {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 15px 0px;
}

.simon-account-btn a {
  font-size: 20px;
  line-height: 25px;
  background-color: #50235a;
  padding: 15px;
  color: white;
}

.simon-account-btn a:hover {
  background-color: #16bba9;
}

#quote .mainTitle {
  font-size: 25px;
  margin-bottom: 40px;
  margin-top: 20px;
}

.short-form img {
  width: 80px;
  position: absolute;
  left: 125px;
  margin-top: -30px;
  margin-right: 15px;
}

#quote .mainTitle p {
  margin-left: 40px;
  margin-right: 40px;
}

a.btn1 {
  display: block;
  background: #50235a;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  color: #FFF;
  padding: 20px 50px;
  font-size: 20px;
  margin: 0px auto;
  text-transform: uppercase;
}

.choose-blocks-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 84%;
  margin: auto;
  padding: 20px 0px;
}

.choose-block-logo {
  max-width: 300px;
  width: 100%;
  margin-right: 20px;
  border-right: solid 1px #000000;
  padding: 0px 20px 0px 0px;
}

.choose-block-link {
  width: 100%;
  max-width: calc(100% - 340px);
}

.choose-blocks-header-min {
  padding: 0 !important;
}

@media screen and (max-width: 900px) {
  .choose-blocks-row {
    display: block;
  }

  .choose-block-link {
    width: 100%;
    max-width: 100%;
  }

  a.btn1 {
    font-size: 18px;
    line-height: 22px;
  }

  .choose-block-logo {
    max-width: 250px;
    width: 100%;
    margin-right: 0px;
    border-right: solid 0px #000000;
    padding: 10px 0px 10px 0px;
    margin: auto;
  }
}

/* Flip cards */
.js-flip {
  perspective: 1000px;
}

.js-flip .flip-inner {
  display: grid;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}

.flip-front {
  display: flex;
  align-items: center;
}

.js-flip * {
  box-sizing: border-box;
}

.js-flip .flip-back {
  max-height: 125px;
}

.js-flip:hover .flip-inner {
  transform: rotateY(180deg);
}

.js-flip .flip-front,
.js-flip .flip-back {
  grid-area: 1 / 1 / 2 / 2;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.js-flip .flip-front,
.js-flip .flip-front img {
  display: block;
  width: 100%;
}

.js-flip .flip-back {
  transform: rotateY(180deg);
  background: #16bba9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  border: 1px solid #000;
}

.js-flip .flip-back:hover {
  background: #50235a;
}

@media only screen and (max-width: 812px) {
  .js-flip .flip-back {
    font-size: 12px;
    padding: 8px;
  }
}

a.company__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.firstRow .imageWrap.js-flip {
  padding: 0px !important;
}

.js-flip .flip-front {
  padding: 10px;
}

.flip-back {
  padding: 10px;
}

.flip-back-text {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
  min-height: 100%;
  flex-direction: column;
}

.flip-back-text:not(:scroll) {
  justify-content: center;
}

.flip-back-text.has-scroll {
  justify-content: flex-start;
}

/* --- Homeowners section --- */
.mainLogo {
  text-align: center;
}

.bg_smart_form_2 .smart_form .item:nth-of-type(n+5) {
  margin-top: 0px;
}

.mainLogo img {
  max-width: 50%;
}

.mainTitle {
  background: #50235a;
  text-align: center;
  line-height: 37px;
  font-weight: bold;
  text-transform: uppercase;
  color: #FFF;
  padding: 7px 20px;
  font-size: 30px;
  width: 84%;
  margin: 0px auto;
}

.secondRow .imageWrap {
  width: 45%;
  margin-left: 2.5%;
  margin-right: 2%;
  margin-bottom: 20px;
  padding: 10px 0;
  overflow: hidden;
}

.thirdRow .imageWrap {
  width: 29%;
  margin-left: 2.5%;
  margin-right: 1%;
  padding: 20px 0;
}

.imageWrap {
  text-align: center;
  display: inline-block;
  align-items: center;
  border: 1px solid #000;
}

.secondRow .imageWrap a,
.secondRow .imageWrap img {
  height: 66px;
  display: block;
  text-align: center;
  margin: 0 auto;
}

.thirdRow .imageWrap img {
  height: 100px;
}

.mainLink {
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.secondRow {
  margin-top: 40px;
}

.thirdRow {
  margin-bottom: 30px;
  margin-top: 10px;
}

@media only screen and (max-width: 1024px) {

  .secondRow .imageWrap a,
  .secondRow .imageWrap img {
    height: 60px;
  }

  .short-form img {
    width: 80px;
    position: absolute;
    left: 10px;
    margin-top: -30px;
  }

  .mainTitle {
    width: 100%;
  }

  #quote .mainTitle p {
    font-size: 16px;
  }
}

@media only screen and (max-width: 812px) {

  .secondRow .imageWrap a,
  .secondRow .imageWrap img {
    height: 45px;
  }

  .thirdRow .imageWrap img {
    height: 80px;
  }

  #smart_form_page .page_smart_form2 .smart_form_box .item:nth-of-type(n+3) {
    margin-top: 0px !important;
  }

  .bg_smart_form_2 .smart_form .item {
    width: 30%;
  }

  .box_2_box a:nth-of-type(2) {
    margin-top: 0px !important;
  }

  .short-form img {
    width: 80px;
    left: 20px;
    margin-top: -30px;
    margin-right: 15px;
  }
}

@media only screen and (max-width: 768px) {
  .choose-blocks__header {
    padding: 10px;
  }

  .mainTitle {
    font-size: 17px;
    line-height: normal;
  }

  .thirdRow {
    text-align: center;
  }

  .thirdRow .imageWrap {
    margin-left: 15px;
    margin-right: 15px;
  }

  .thirdRow .imageWrap:first-child {
    margin-left: 0;
  }

  .thirdRow .imageWrap img {
    height: 60px;
    max-width: 100%;
  }

  .secondRow .imageWrap a,
  .secondRow .imageWrap img {
    height: 45px;
    max-width: 100%;
  }

  .secondRow .imageWrap {
    height: auto;
  }
}

@media only screen and (max-width: 667px) {
  .secondRow .imageWrap {
    margin-left: 2.45%;
  }

  .secondRow .imageWrap a,
  .secondRow .imageWrap img {
    height: 40px;
  }
}

@media only screen and (max-width: 640px) {

  .secondRow .imageWrap,
  .thirdRow .imageWrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
    padding: 5px 0;
  }

  .secondRow .imageWrap img,
  .thirdRow .imageWrap img {
    max-width: 100%;
  }

  .secondRow .imageWrap {
    height: auto;
  }

  .secondRow .imageWrap img {
    max-width: 70%;
  }

  .secondRow .imageWrap a,
  .secondRow .imageWrap img {
    height: 45px;
  }
}

/* --- Smart form boxes --- */
#greenBox {
  padding-top: 0;
  padding-bottom: 0;
  cursor: pointer;
}

#bottomButtonWrap {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 60px;
}

#greenBox .choose-blocks__header {
  background: #50235a;
  color: #FFF;
  font-size: 20px;
  text-align: center;
  font-weight: normal;
}

#greenBox ul {
  padding: 0;
  width: 19.5%;
  display: inline-table;
}

#greenBox a {
  color: #FFF;
}

.bottomButton,
.bottomButton:hover {
  background: #50235a;
  color: #FFF;
  border-radius: 50px;
  width: 50%;
  display: inline-block;
  padding: 20px 0;
  padding: 20px 10%;
  font-weight: bold;
  font-size: 20px;
}

@media only screen and (max-width: 960px) {
  #greenBox ul {
    width: 32.5%;
  }

  .bottomButton,
  .bottomButton:hover {
    width: 80%;
  }
}

@media only screen and (max-width: 580px) {
  #greenBox ul {
    width: 100%;
  }

  #greenBox .choose-blocks__header {
    font-size: 18px;
  }

  .bottomButton,
  .bottomButton:hover {
    width: 100%;
    font-size: 18px;
    font-weight: normal;
  }

  #greenBox .choose-blocks__header {
    padding-left: 10px;
    padding-right: 10px;
  }

  p:last-child {
    margin-bottom: 0;
    font-size: 13px;
  }

  #smart_form_page .page_smart_form2 .smart_form_box .item {
    width: 100%;
  }

  .firstRow .imageWrap {
    width: 100%;
  }

  .bg_smart_form_2 .smart_form .item {
    width: 100%;
  }

  .box_2_box a {
    width: 100%;
  }

  .short-form img {
    width: 60px;
    left: 20px;
    margin-top: -18px;
    margin-right: 15px;
  }
}

@media only screen and (max-width: 440px) {
  #greenBox {
    overflow-wrap: break-word;
  }

  #quote .mainTitle {
    font-size: 25px;
    line-height: 20px;
  }
}

/* --- Hartford appetite check modal --- */
body.noScroll {
  overflow: hidden;
}

#appetite-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#appetite-modal-overlay.is-open {
  display: flex;
}

#appetite-modal-overlay .appetite-modal-box {
  position: relative;
  width: 600px;
  max-width: 92vw;
  max-height: 88vh;
  background: #fff;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

#appetite-modal-overlay .appetite-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

#appetite-modal-overlay .appetite-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

#appetite-modal-overlay .appetite-panel-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
}

#appetite-modal-overlay h1 {
  font-size: 20px;
  margin: 0 0 24px;
}

.appetite-form-group {
  margin-bottom: 20px;
}

.appetite-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.appetite-form-group select {
  width: 100%;
  height: 35px;
  padding: 0 10px;
}

#check-appetite-btn {
  width: 100%;
  padding: 12px;
  background: #16bba9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#check-appetite-btn:disabled {
  background: #50235a;
  cursor: not-allowed;
  opacity: .7;
}

.appetite-badge-warning {
  display: inline-block;
  background: #fcebeb;
  color: #791f1f;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

.select2-result-code {
  font-size: 12px;
  color: #777;
  margin-left: 6px;
}

.appetite-class-notice {
  margin: -8px 0 20px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fcebeb;
  color: #501313;
  font-size: 13px;
}

#result-area {
  margin-top: 20px;
  padding: 16px;
  border-radius: 6px;
  display: none;
}

#result-area:not(:empty) {
  display: block;
}

#result-area.result-loading {
  background: #f0f0f0;
  color: #555;
  font-style: italic;
}

#result-area.result-green {
  background: #eaf3de;
  color: #173404;
}

#result-area.result-red {
  background: #fcebeb;
  color: #501313;
}

#result-area.result-error {
  background: #fdf3e1;
  color: #5c3d00;
  border: 1px solid #f0c674;
}

.result-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.result-icon {
  font-size: 16px;
}

.result-note {
  display: block;
  font-weight: 400;
  font-size: 12px;
  margin-top: 4px;
  flex-basis: 100%;
}

.result-breakdown {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.result-breakdown li.breakdown-red {
  color: #a11f1f;
  font-weight: 600;
}

.select2-container--default .select2-selection--single {
  height: 35px;
  border: 1px solid #ccc;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 35px;
  padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 35px;
}

#open-appetite-modal-btn:hover {
  cursor: pointer;
}
