.button--green {
    background-color: #28a745; /* Зелёный цвет */
    color: #fff; /* Белый текст */
    border: none; /* Без границы */
    padding: 10px 20px; /* Отступы */
    border-radius: 5px; /* Закруглённые углы */
    text-decoration: none; /* Убираем подчёркивание */
    cursor: pointer; /* Указатель мыши */
}

.button--green:hover {
    background-color: #218838; /* Более тёмный зелёный при наведении */
} 
.competition-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background: #1976d2;
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 30px;
  }
  
  .competition-header .title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-right: auto;
  }
  
  .header-link {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .header-link:hover {
    background-color: rgba(255,255,255,0.2);
  }
  
  /* Адаптив для шапки */
  @media (max-width: 600px) {
    .competition-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 15px;
    }
    
    .competition-header .title {
      margin-right: 0;
      margin-bottom: 5px;
    }
    
    .user-settings, 
    .user-logout {
      margin-left: auto;
    }
  }
  
  
  .contest-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .contest-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: #333;
  }
  
  .contest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 20px;
  }
  
  .contest-status {
    font-weight: 500;
    color: #2e7d32;
  }
  
  .contest-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .contest-date {
    display: flex;
    gap: 5px;
  }
  
  .date-label {
    font-weight: 500;
    color: #666;
  }
  
  .contest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
  }
  
  .button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .button {
    border: 1px solid #ddd;
    color: #333;
    background: #f5f5f5;
  }
  
  .button--primary {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
  }
  
  .button--primary:hover {
    background: #1565c0;
  }
  
  .button:hover {
    background: #e0e0e0;
  }
  
  .button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  @media (max-width: 768px) {
    .contest-meta {
      flex-direction: column;
      gap: 10px;
    }
    
    .contest-dates {
      flex-direction: column;
      gap: 5px;
    }
    
    .contest-actions {
      flex-direction: column;
    }
    
    .button {
      
      text-align: center;
    }
  }
  
  
  .competition-list {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    margin: 0 auto;
    margin-bottom: 30px;
  }
  .contest-declaration-form{
    margin-bottom: 30px;
  }
  .contest-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  /* Общие стили */
  :root {
    --primary-color: #1976d2;
    --primary-hover: #1565c0;
    --secondary-color: #f5f5f5;
    --border-color: #e0e0e0;
    --text-color: #333;
    --text-light: #666;
    --success-color: #2e7d32;
    --warning-color: #ed6c02;
    --error-color: #d32f2f;
  }
  
  /* Стили шапки (как в предыдущих примерах) */
  .competition-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Основные стили формы */
  .contest-application-form {
    
    margin: 0 auto; 
    color: var(--text-color);
    margin-bottom: 30px;
  }
  
  .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .form-title {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color);
  }
  
  .submission-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
  }
  
  /* Секции формы */
  .form-section {
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .section-icon {
    font-size: 1.2rem;
  }
  
  .card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
  }
  
  /* Сетки формы */
  .form-grid {
    display: block;
  }
  .form-row{ 
    display: flex;
    gap: 30px
  }
  .nominations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .form-item--wide {
    grid-column: span 2;
  }
  
  /* Элементы формы */
  .form-item {
    margin-bottom: 15px;
    width: 100%;
  }
  
  .form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
  }
  .form-item label.form-required{
    color: #e33d22fc;
  } 
  .form-item-show-diplomat{
    display: flex;
    gap: 7px;
  }
  .form-item-show-diplomat label{
    margin-bottom: 0px;
  }
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
  }
  
  input[type="text"]:focus,
  input[type="tel"]:focus,
  input[type="number"]:focus,
  input[type="date"]:focus,
  select:focus,
  textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
    box-sizing: border-box;
  }
  
  textarea {
    min-height: 100px;
    resize: vertical;
  }
  
  /* Чекбокс */
  .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .checkbox-wrapper input[type="checkbox"] {
    width: auto;
  }
  
  /* Телефоны */
  .phone-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
  }
  
  .subsection-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .phone-item {
    margin-bottom: 15px;
  }
  
  .add-phone-wrapper {
    margin-top: 15px;
  }
  
  /* Подпись ЭСФ */
  .signature-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
  }
  
  .status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
  }
  
  .status-badge--warning {
    background-color: #fff3e0;
    color: var(--warning-color);
  }
  
  /* Кнопки */
  .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .button--sign {
    background: var(--primary-color);
    color: white;
  }
  
  .button--sign:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
  }
  
  .button-icon {
    font-size: 1.1rem;
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .form-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    
    
    
    .nominations-grid {
      grid-template-columns: 1fr;
    }
    
    .form-item--wide {
      grid-column: span 1;
    }
    
    .form-actions {
      flex-direction: column;
    }
  }
  
  @media (max-width: 600px) {
    .competition-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }
  /* Добавляем стили в шаблон */
  .contest-apply-details-form {
    
    margin: 30px auto;
    
  }
  
  .form-title {
    font-size: 2rem;
    margin: 0 0 30px 0;
    color: #1976d2;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .form-section {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin: 0 0 25px 0;
    color: #1976d2;
    font-weight: 500;
  }
  
  .file-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .file-upload-wrapper {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
  }
  
  .file-upload-wrapper:hover {
    border-color: #1976d2;
    background: #e3f2fd;
  }
  
  .file-description {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
  }
  
  .form-download-docs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
  }
  
  .download-doc {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
  }
  
  .download-doc:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #1976d2;
  }
  
  .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
  }
  
  @media (max-width: 768px) {
    .file-attachments-grid {
      grid-template-columns: 1fr;
    }
    
    .form-actions {
      flex-direction: column;
    }
    
    .form-download-docs {
      flex-direction: column;
    }
  }
  /* Основные стили для загрузки файлов */
  .file-upload-wrapper {
    display: block;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    cursor: pointer;
    .description{
      display: none;
    }
    .form-item--error-message{
      display: none;
    }
    input[name="report_attachment_remove_button"], input[name="report_file_remove_button"]{ 
      margin-top: 10px;
      display: block;
      margin-left: auto;
      margin-right: auto;
  
    }
  }
  
  .file-upload-wrapper:hover {
    border-color: #1976d2;
    background: #f8faff;
  }
  
  .file-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #1976d2;
    color: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-bottom: 15px;
    border: none;
  }
  
  .file-upload-wrapper:hover .file-upload-label {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .file-upload-icon {
    font-size: 1.2em;
  }
  
  .file-upload-fieldname {
    font-weight: 600;
    margin-left: 8px;
  }
  
  .file-status {
    min-height: 24px;
    margin-bottom: 10px;
  }
  
  .file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  .file-not-selected {
    color: #666;
    font-size: 0.9em;
  }
  
  .file-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff;
    padding: 8px 12px;
    border-radius: 6px;
    color: #1976d2;
    font-size: 0.9em;
    margin-top: 5px;
  }
  
  .file-remove {
    color: #d32f2f;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 8px;
  }
  
  .file-requirements {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
  }
  
  .file-error-message {
    color: #d32f2f;
    font-size: 0.85em;
    margin-top: 10px;
  }
  
  /* Стили для загруженного файла */
  .file-uploaded .file-upload-label {
    background: #4caf50;
  }
  
  .file-uploaded .file-upload-label:hover {
    background: #3d8b40;
  }
  
  /* Стили при ошибке */
  .has-error {
    border-color: #ffcdd2;
    background: #ffebee;
  }
  
  .has-error .file-upload-label {
    background: #f44336;
  }
  
  .has-error .file-upload-label:hover {
    background: #d32f2f;
  }
  
  /* Скрываем оригинальный input */
  .file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
  }
  .form-item-checkbox{
    margin-bottom: 0px;
    .form-type-checkbox{
      display: flex;
      gap: 10px;
      margin-bottom: 0px;
      label{
        margin-bottom: 0px;
      }
    }
  }
  .contest-report-form{
    margin-bottom: 30px;
    #edit-history-format-help-about, 
    .form-item-history-format, 
    #edit-products-format-help-about, 
    .form-item-products-format,
    .form-item-structure-format,
    #edit-structure-format-help-about,
    #edit-product-quality-format-help-about, 
    .form-item-product-quality-format,
    #edit-information-format-help-about,
    .form-item-information-format, 
    .form-item-product-features-format, 
    #edit-product-features-format-help-about,
    #edit-other-information-format-help-about,
    .form-item-other-information-format
    {
      display: none; 
    }
  }
  .form-section-repot-files{
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .report_file_description{
    margin-top: 10px;
    label{
      font-size: 1.1rem;
    }
  }
  @media(max-width: 930px){
    .form-row{
      display: block;
    }
  }
  .contest-report-form .form-row{
    align-items: end;
  } 

  [data-drupal-format-id="restricted_html"] {
    display: none;
  }
  
  .contest-participants-filter-form{
    
      padding: 0px;
      border: 0px;
      background: none;
      padding-top: 10px;
      padding-bottom: 7px;
      
        display: flex;
        gap: 7px;
        align-items: center;
        .button{
          display: block;
          margin-top: 10px;
        }
      
    
  }
  .participants-actions{
    margin-bottom: 20px;
  }