.rc-wrap {
  max-width: 980px;
}

.rc-panel {
  position: relative;
  border: 1px solid #dee2e6;
  padding: 24px;
  
   border-radius: 25px;
    background-color: #F8F7F5;
}


.form-select {
      font-size: 1.6rem;
    padding: 11px 18px;
    border: none;
    background-color: #fff;
    border-radius: 10px;
    color: #444450;
}

.rc-field {
  border-top: 1px solid #eef0f2;
  padding-top: 16px;
}

.rc-field .form-label {
  display: block;
  margin-bottom: 6px;
}

.rc-field .form-control,
.rc-field .form-select {
  width: 100%;
}

.rc-field:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rc-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.rc-summary {
  position: sticky;
  top: 18px;
}

.rc-contact-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e7e2da;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(68, 68, 80, .08);
}

.rc-contact-text {
  margin-bottom: 10px;
  color: #444450;
  line-height: 1.35;
}

.rc-contact-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: opacity .18s ease, transform .18s ease;
}

.rc-contact-btn:hover,
.rc-contact-btn:focus {
  opacity: .92;
  text-decoration: none;
}

.rc-contact-phone {
  background: #444450;
  color: #fff;
}

.rc-contact-max {
  border: 1px solid #cfe2ff;
  background: #eef5ff;
  color: #1557a6;
}

.rc-total {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.rc-total strong {
  font-size: 1.5rem;
}

.rc-summary.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.rc-inline-summary {
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eef0f2;
}

.rc-inline-summary .rc-total {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.rc-hidden {
  display: none !important;
}

.rc-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1080;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
  color: #fff;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.rc-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.rc-toast-danger {
  background: #b42318;
}

.rc-toast-success {
  background: #247a35;
}

@media (max-width: 767.98px) {
  .rc-wrap {
    padding-bottom: 310px;
  }

  .rc-panel {
    padding: 18px;
  }

  .rc-form-layout {
    grid-template-columns: 1fr;
  }

  .rc-summary {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 1040;
    display: block;
    padding: 12px;
    border: 1px solid #e7e2da;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(68, 68, 80, .2);
  }

  .rc-summary.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
  }

  .rc-summary .rc-total {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .rc-summary .rc-total strong {
    font-size: 1.2rem;
  }

  .rc-summary .rc-contact-card {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: none;
  }

  .rc-summary .rc-contact-text {
    margin-bottom: 8px;
    font-size: 1.4rem;

  }

  .rc-summary .btn-primary {
display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  .rc-summary .rc-contact-btn {
    padding: 9px 10px;
  }

  .rc-inline-summary {
    display: block;
  }
  .rc-inline-summary {
      max-width: 100%!important;
    margin: 0 auto;
}
}

.rc-inline-summary .btn-primary {
display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
  }

.rc-inline-summary {
      max-width: 50%;
    margin: 0 auto;
}