
/* ==== visually-hidden Є в загальних стилях */

/* .visually-hidden {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
} */

/* --------hero button studio---------- */
.hero-btn {
    /* box-sizing: border-box; */
    /* display: inline-block; */
    display: block;
    min-width: 100px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  
    font-family: "Roboto";
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.19;
    letter-spacing: 0.04em;
    cursor: pointer;
    color: #ffffff;
    background-color: #4d5ae5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), 
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero-btn:hover,
  .hero-btn:focus {
    background-color: #404bbf;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  }



/* -----backdrop modal-window----Unit 5- */

.backdrop {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.8);
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .backdrop.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .modal {
    position: absolute;
    width: 408px;
    height: 579px;
    padding: 48px 24px 24px 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #FCFCFC;
    border-radius: 4px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 2px 1px rgba(0, 0, 0, 0.2);
    
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .backdrop.is-hidden .modal {
    transform:  translate(-50%, -50%) scale(0.5);
    /* transform:  translate(-50%, -50%); */
    /* transform: scale(0.5); */
  }
  
  .modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /* background-color: transparent; */
    background-color: #E7E9FC;
    border: 1px solid rgba(0, 0, 0, 0.1);;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
  
    /* transition: box-shadow var(--transition-time-bezier); */
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .modal-close-btn:hover, 
  .modal-close-btn:focus {
    /* box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08); */
    background-color: #4d5ae5;
  
  
  }
  
  /* .modal-close-btn-icon {
    transition: fill var(--transition-time-bezier);
    width: 12px;
    height: 12px;
    fill: red;
  } */
  
  /* .modal-close-btn:hover .modal-close-btn-icon, 
  .modal-close-btn:focus .modal-close-btn-icon {
    fill: currentColor;
  } */
  
  .modal-close-btn-icon {
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .modal-close-btn:hover .modal-close-btn-icon, 
  .modal-close-btn:focus .modal-close-btn-icon {
    /* fill: currentColor; */
    fill: #E7E9FC;
    /* background-color: #4d5ae5; */
  }
  
  /* -----///backdrop modal-window--------------------------- */
  
  /* -------------modal-form-------------------------------- */
  
  .form-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.02em;
    color: #2E2F42;
    margin-bottom: 16px;
  }
  
  .modal-form-label-wrapper {
    display: block;
    position: relative;
  }
  
  .modal-form-label-desc {
    display: block;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.01em;
    color: #8E8F99;
    margin-bottom: 4px;
  
  }
  
  .modal-form-icon {
    position: absolute;
    fill: #2E2F42;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  
  .modal-form-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin-top: 0px;
    margin-bottom: 8px;
    padding-left: 42px;
    padding-top: 0;
    padding-bottom: 0;
    border: 1px solid rgba(33, 33, 33, 0.2);
  
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.01em;
  
    /* border: 1px solid #4D5AE5; */
    border-radius: 4px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  
  .modal-form-input:focus {
    outline: none;
    border-color: #4D5AE5;
  }
  
  .modal-form-input:focus + .modal-form-icon {
    fill: #4D5AE5;
  }
  
  
  .modal-form-comment {
    height: 120px;
    margin-bottom: 16px;
    resize: none;
    padding-left: 16px;
    padding-top: 8px;
  }

  /* .modal-form-comment:focus {
    border-color: #4D5AE5;
  } */
  
  .modal-form-input::placeholder {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.01em;
    color: rgba(117, 117, 117, 0.5);
    /* padding-top: 8px; */
  }
  
  
  .modal-form-checkbox-label {  
    display: flex;
    align-items: center;
  
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.04em;
    color: #757575;
    /* transition: opacity var(--transition-time-bezier); */
  }
  
  .modal-form-checkbox-label a {
    text-transform: capitalize;
    text-decoration: none;
  }
  
  
  .modal-form-checkbox-label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 1px solid #2E2F42;
    border-radius: 2px;
    cursor: pointer;
    margin-right: 8px;
  
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
  }
  
  .modal-form-checkbox:checked + .modal-form-checkbox-label::before {
    background-color: #4d5ae5;
    border-color: #4d5ae5;
    background-image: url(../img/checkmark-mod.svg);
    background-size: cover;
    background-origin: border-box;
    /* opacity: 1; */
  }
  
  
  .modal-form-checkbox:focus + .modal-form-checkbox-label::before {
    border-color: #4d5ae5;
    border-width: 2px;
  }
  
  .modal-form-btn {
    display: block;
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* -------------///modal-form------------------------------ */