.job-opening-container {
  min-height: 100vh;
  background: #f5f7fa;
  padding: 8px;

  // ===================== UNIFIED HEADER =====================
  // Single white card: [← Back]  [Title + Subtitle]  [Wizard|Form]
  .header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    // LEFT: Back button
    .back-button {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 14px;
      color: #333;
      border-radius: 6px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background 0.2s;

      &:hover {
        background: #f5f7fa;
      }

      .back-icon {
        font-size: 18px;
        line-height: 1;
      }
    }

    // CENTER: Title & Subtitle
    .header-content {
      flex: 1;

      h1 {
        margin: 0;
        font-size: 26px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.2;
      }

      .subtitle {
        margin: 2px 0 0 0;
        color: #666;
        font-size: 13px;
      }
    }

    // RIGHT: Wizard / Form toggle
    .mode-toggle {
      display: flex;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      overflow: hidden;
      flex-shrink: 0;

      .toggle-btn {
        padding: 8px 20px;
        border: none;
        background: white;
        cursor: pointer;
        font-size: 14px;
        color: #666;
        transition: all 0.2s;

        &.active {
          background: var(--action-primary-default);
          color: white;
        }

        &:hover:not(.active) {
          background: #f5f7fa;
        }
      }
    }
  }

  .steptest {
    color: #1A1A1ADE;
    font-weight: 700;
  }

  // ===================== FORM MODE =====================
  .form-mode {
    .tab-navigation {
      display: flex;
      gap: 0;
      background: white;
      padding: 0 24px;
      border-radius: 8px 8px 0 0;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      overflow-x: auto;

      .tab-button {
        padding: 16px 24px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 14px;
        color: #666;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
        white-space: nowrap;

        &.active {
          color: var(--action-primary-default);
          border-bottom-color: var(--action-primary-default);
        }

        &:hover:not(.active) {
          color: #333;
        }
      }
    }

    .form-mode-content {
      display: flex;
      gap: 24px;

      .form-section {
        width: 100%;
        max-height: 55dvh; 
        overflow-y: auto;
        padding: 24px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);


        .step-content {
          h2 {
            margin: 0 0 24px 0;
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
          }

          .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;

            h2 {
              margin: 0;
              font-size: 20px;
              font-weight: 600;
              color: #1a1a1a;
            }
          }
        }
      }

      .sidebar-container {
        width: 320px;
        display: flex;
        flex-direction: column;
        gap: 16px;

        .actions-sidebar {
          background: white;
          padding: 24px;
          border-radius: 8px;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

          h3 {
            margin: 0 0 16px 0;
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
          }

          .btn {
            width: 100%;
            padding: 12px 16px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;

            &:last-child {
              margin-bottom: 0;
            }

            &.btn-primary {
              background: var(--action-primary-default);
              color: white;

              &:hover {
                filter: brightness(0.95);
              }
            }

            &.btn-secondary {
              background: #f5f7fa;
              color: #333;

              &:hover {
                background: #e8ecf0;
              }
            }
          }
        }
      }
    }
  }

  // Responsive
  @media (max-width: 768px) {
    padding: 16px;

    .header {
      flex-wrap: wrap;

      .header-content {
        flex: 1 1 100%;
        order: 2;
      }

      .back-button {
        order: 1;
      }

      .mode-toggle {
        order: 3;
        width: 100%;

        .toggle-btn {
          flex: 1;
          text-align: center;
        }
      }
    }

    .form-mode-content {
      flex-direction: column;

      .sidebar-container {
        width: 100%;
      }
    }
  }
}