.application-progress {
    flex: 1;
}

.progress-steps {
    position: sticky;
    top: 5.208vw; /* 100px -> 5.208vw */
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 1.563vw; /* 30px -> 1.563vw */
    color: #9FA7AA;
    transition: all 0.3s ease;
    gap: 0.833vw; /* 16px -> 0.833vw */
    position: relative;
}
.char-counter {
  color: #9FA7AA;
  position: absolute;
  bottom: 0.833vw;
  right: 1.25vw;
}
.step:after {
  content: "";
  color: #9FA7AA;
  position: absolute;
  left: 0.833vw; /* 16px -> 0.833vw */
  bottom: -1.563vw; /* -30px -> -1.563vw */
  border-left: 1px solid #9FA7AA;
  height: 1.563vw; /* 30px -> 1.563vw */
}
.step.completed:after {
  border-left: 1px solid var(--orange);
}
.step:nth-child(4):after {
  border:none;
}
.step.active {
    color: var(--light);
}

.step.completed .step-number {
    font-size: 0;
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7.95783 12.625L15.0203 5.5625C15.187 5.39583 15.3814 5.3125 15.6037 5.3125C15.8259 5.3125 16.0203 5.39583 16.187 5.5625C16.3537 5.72917 16.437 5.92722 16.437 6.15667C16.437 6.38611 16.3537 6.58389 16.187 6.75L8.54117 14.4167C8.3745 14.5833 8.18005 14.6667 7.95783 14.6667C7.73561 14.6667 7.54117 14.5833 7.3745 14.4167L3.79117 10.8333C3.6245 10.6667 3.5445 10.4689 3.55117 10.24C3.55783 10.0111 3.64478 9.81306 3.812 9.64583C3.97922 9.47861 4.17728 9.39528 4.40617 9.39583C4.63505 9.39639 4.83283 9.47972 4.9995 9.64583L7.95783 12.625Z' fill='%23F2F3F4'/%3E%3C/svg%3E") no-repeat center center;
}

.step.completed .step-number::after {
/* content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7.95783 12.625L15.0203 5.5625C15.187 5.39583 15.3814 5.3125 15.6037 5.3125C15.8259 5.3125 16.0203 5.39583 16.187 5.5625C16.3537 5.72917 16.437 5.92722 16.437 6.15667C16.437 6.38611 16.3537 6.58389 16.187 6.75L8.54117 14.4167C8.3745 14.5833 8.18005 14.6667 7.95783 14.6667C7.73561 14.6667 7.54117 14.5833 7.3745 14.4167L3.79117 10.8333C3.6245 10.6667 3.5445 10.4689 3.55117 10.24C3.55783 10.0111 3.64478 9.81306 3.812 9.64583C3.97922 9.47861 4.17728 9.39528 4.40617 9.39583C4.63505 9.39639 4.83283 9.47972 4.9995 9.64583L7.95783 12.625Z' fill='%23F2F3F4'/%3E%3C/svg%3E");
   display: flex;
      width: 1.667vw;
      min-width: 1.667vw; */
}

.step-number {
    width: 1.667vw; /* 32px -> 1.667vw */
    min-width: 1.667vw;
    height: 1.667vw; /* 32px -> 1.667vw */
    border-radius: 50%;
    display: flex;
    background: #9FA7AA;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.938vw; /* 18px -> 0.938vw */
    font-weight: 500;
    letter-spacing: -0.0375vw; /* -0.72px -> -0.0375vw */
    color:#fff;
    padding: 0.104vw 0.104vw 0 0; /* 2px -> 0.104vw */
    z-index: 3;
    position: relative;
}

.step.active .step-number {
    background: var(--orange);
    color: white;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: flex;
}
.success-step p span {
    color: var(--orange);
}

.back-to-home {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 0.781vw 2.083vw; /* 15px 40px -> 0.781vw 2.083vw */
    text-decoration: none;
    border-radius: 0.26vw; /* 5px -> 0.26vw */
    font-size: 0.833vw; /* 16px -> 0.833vw */
    transition: background 0.3s ease;
}
.form-step.success-step {
  align-items: flex-start;
}
.form-group {
    margin-bottom: 1.667vw; /* 32px -> 1.667vw */
}
.form-group label {
    display: block;
    margin-bottom: 0.833vw; /* 16px -> 0.833vw */
    font-weight: 400;
    color: var(--light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.833vw 1.25vw; /* 16px 24px -> 0.833vw 1.25vw */
    border: 1px solid rgba(242, 243, 244, 0.30);
    font-size: 0.833vw; /* 16px -> 0.833vw */
    transition: border 0.3s ease;
    background: transparent;
    color: var(--light);
}
.h4 {
  text-transform: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--light);
    outline: none;
}

.duration-inputs {
    display: flex;
    align-items: center;
    gap: 0.521vw; /* 10px -> 0.521vw */
}

.duration-inputs input {
    width: 5.208vw; /* 100px -> 5.208vw */
}

.roles-container {
    margin-bottom: 0.781vw; /* 15px -> 0.781vw */
}

.role-item {
    margin-bottom: 0.521vw; 
    position: relative;/* 10px -> 0.521vw */
}

.add-role-btn {
    border: none;
    padding: 0.521vw 1.042vw; /* 10px 20px -> 0.521vw 1.042vw */
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 0.417vw; /* 8px -> 0.417vw */
    bottom: 0.417vw; /* 8px -> 0.417vw */
}
.submit-btn {
  border: none;
}
.success-step h2 {
  font-weight: 400;
}
.upload-area {
  border: 1px solid rgba(242, 243, 244, 0.30);
  padding: 0.833vw; /* 16px -> 0.833vw */
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.upload-area:hover, .upload-area.dragover {
    border-color: #fff;
}
.upload-placeholder {
    pointer-events: none;
}
.upload-icon {
    font-size: 2.5vw; /* 48px -> 2.5vw */
    margin-bottom: 0.781vw; /* 15px -> 0.781vw */
}

.upload-hint {
    color: #999;
    font-size: 0.729vw; /* 14px -> 0.729vw */
    margin-top: 0.26vw; /* 5px -> 0.26vw */
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.uploaded-files {
    margin-top: 1.042vw; /* 20px -> 1.042vw */
    display: flex;
    flex-wrap: wrap;
    gap: 0.521vw; /* 10px -> 0.521vw */
}

.uploaded-file {
    padding: 0.417vw 0.781vw; /* 8px 15px -> 0.417vw 0.781vw */
    font-size: 0.729vw; /* 14px -> 0.729vw */
    display: flex;
    align-items: center;
    gap: 0.521vw; /* 10px -> 0.521vw */
    border: 1px solid rgba(242, 243, 244, 0.30);
}
#film-application-form select {
    background-color: #000000;
    color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9' fill='none'%3E%3Cpath d='M14.5737 0.706604L7.64036 8.17327L0.707031 0.706604' stroke='%23F2F3F4' stroke-linecap='square'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.781vw center; /* 15px -> 0.781vw */
    background-size: 0.833vw 0.469vw; /* 16px 9px -> 0.833vw 0.469vw */
}
.remove-file {
    color: #ff4444;
  cursor: pointer;
  font-weight: 400;
  font-size: 1.25vw; /* 24px -> 1.25vw */
  z-index: 8;
}
.form-navigation {
    display: flex;
    margin-top: 1.823vw; /* 35px -> 1.823vw */
}
.form-errors {
    margin-top: 1.042vw; /* 20px -> 1.042vw */
    display: none;
}
.remove-role-btn {
  background: transparent;
  color: #fff;
  font-size: 1.342vw;
  border: none;
  position: absolute;
  cursor: pointer;
  right: 0.3vw;
  top: 0;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1.042vw); } /* 20px -> 1.042vw */
    to { opacity: 1; transform: translateY(0); }
}
/* календарь */   
    .datepicker-input {
        cursor: pointer;
    }
    
    .calendar {
        background: #000;
        border: 1px solid rgba(242, 243, 244, 0.30);
        width: 280px;
        padding: 10px;
        z-index: 1000;
    }
    
    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .calendar-header .nav-btn {
         background: none;
         cursor: pointer;
         padding: 2px 8px;
         color: var(--light);
         border: 1px solid rgba(242, 243, 244, 0.30);
    }
    
    .calendar-header .nav-btn:hover {
        background-color: rgba(242, 243, 244, 0.30);
    }
    .days-header {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        margin-bottom: 5px;
    }
    
    .days-header span {
        text-align: center;
        font-weight: bold;
        font-size: 12px;
        padding: 5px 0;
    }
    
    .days-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }
    
    .day {
        text-align: center;
        padding: 8px 0;
        cursor: pointer;
        border-radius: 3px;
        font-size: 14px;
    }
    .day.selected {
        background-color: var(--blue);
        color:  var(--light);
    }
    
    .day.today {
        border: 1px solid rgba(242, 243, 244, 0.30);
    }
    .day.disabled {
        color: #787878;
        cursor: not-allowed;
    }   
@media (max-width: 1100px) {
.add-role-btn {
  padding: 12px; 
}
.remove-role-btn {
    font-size: 25px;
    right: 0.658vw;
}
    .step-number {
     width: 32px;
     min-width: 32px;
     height: 32px;
     font-size: 16px;
    }
    .step::after {
       left: 16px;
       height: 20px;
       bottom: -20px;
    }
    .form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group input[type="number"], .form-group input[type="url"], .form-group select, .form-group textarea {
       font-size: 14px;
      padding: 16px 24px;
     }
    .form-group label {
        margin-bottom: 15px;
    }
}
@media (max-width: 680px) {
.add-role-btn {
    font-size: 14px;
    padding: 13.5px;
    bottom: 3px;
}
.form-group, .roles-container, .role-item {
  margin-bottom: 16px;
}
    .step {
       gap: 16px;
    }
   .film-application-container {
     flex-direction: column;
   }
   .step {                
      margin-bottom: 15px;
   }
}